|
10 | 10 | "style": "dist/css/index.css", |
11 | 11 | "scripts": { |
12 | 12 | "prepublishOnly": "yarn generate-docs", |
13 | | - "build": "yarn build-v1 && yarn build-v2 && yarn copy-vendor-styles", |
14 | | - "build-v1": "rm -rf dist && mkdir -p dist && yarn bundle-sass && yarn copy-assets && yarn copy-styles", |
15 | | - "build-v2": "rm -rf dist/v2 && mkdir -p dist/v2/scss && yarn copy && yarn compile-to-css", |
| 13 | + "build": "rm -rf dist/v2 && mkdir -p dist/v2/scss && yarn copy && yarn copy-assets && yarn compile-to-css && yarn copy-vendor-styles", |
16 | 14 | "generate-docs": "ts-node scripts/generate-docs.ts", |
17 | 15 | "replace-docs": "ts-node scripts/replacer.ts", |
18 | 16 | "copy": "cp -R src/v2/styles/* dist/v2/scss", |
19 | 17 | "compile-to-css": "sass src/v2/styles/index.scss dist/v2/css/index.css --style=compressed --no-source-map && sass src/v2/styles/index.layout.scss dist/v2/css/index.layout.css --style=compressed --no-source-map && sass src/vendor/emoji-mart.scss dist/v2/css/emoji-mart.css --style=compressed --no-source-map && sass src/v2/styles/_emoji-replacement.scss dist/v2/css/emoji-replacement.css --style=compressed --no-source-map", |
20 | | - "bundle-sass": "echo '\u001b[34mℹ\u001b[0m Compiling scss files to css bundle' && sass src/v1/index.scss dist/css/index.css --style=compressed --no-source-map && echo '\u001b[32m✓\u001b[0m Finished bundling css'", |
| 18 | + "bundle-sass": "echo '\u001b[34mℹ\u001b[0m Compiling scss files to css bundle' && echo '\u001b[32m✓\u001b[0m Finished bundling css'", |
21 | 19 | "copy-assets": "echo '\u001b[34mℹ\u001b[0m Copying assets to distributed directory' && cp -R src/assets dist/assets && echo '\u001b[32m✓\u001b[0m Finished copying assets'", |
22 | | - "copy-styles": "echo '\u001b[34mℹ\u001b[0m Copying scss files to distributed directory' && cp -R src/v1 dist/scss && echo '\u001b[32m✓\u001b[0m Finished copying styles'", |
| 20 | + "copy-styles": "echo '\u001b[34mℹ\u001b[0m Copying scss files to distributed directory' && echo '\u001b[32m✓\u001b[0m Finished copying styles'", |
23 | 21 | "copy-vendor-styles": "echo '\u001b[34mℹ\u001b[0m Copying vendor scss files to distributed directory' && cp -R src/vendor dist/vendor && echo '\u001b[32m✓\u001b[0m Finished copying vendor styles'", |
24 | 22 | "lint": "stylelint '**/*.scss' --max-warnings 0", |
25 | 23 | "build:ci": "yarn && yarn lint && yarn build", |
26 | | - "start": "yarn build-v1 && sass --watch src/v1/index.scss dist/css/index.css", |
27 | | - "start-v2": "yarn build-v2 && yarn copy-assets && yarn copy-vendor-styles && sass --watch src/v2/styles/index.scss dist/v2/css/index.css" |
| 24 | + "start": "yarn build && sass --watch src/v2/styles/index.scss dist/v2/css/index.css" |
28 | 25 | }, |
29 | 26 | "release": { |
30 | 27 | "branches": [ |
|
0 commit comments