|
30 | 30 | "start": "yarn build && yarn serve",
|
31 | 31 | "build": "yarn build-scss && yarn build-js && yarn build-class-references",
|
32 | 32 | "build-tokens": "((style-dictionary build --verbose --config ./sd.config.json) || true)",
|
33 |
| - "build-scss": "yarn build-tokens && sass --load-path=node_modules --embed-sources --style=compressed scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", |
34 |
| - "build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", |
| 33 | + "build-scss": "yarn build-tokens && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", |
| 34 | + "build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", |
35 | 35 | "build-js": "mkdir -p build/js/modules && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js build/js/modules && cp node_modules/@canonical/latest-news/dist/latest-news.js build/js/modules && cp node_modules/js-beautify/js/lib/beautify.js node_modules/js-beautify/js/lib/beautify-html.js node_modules/js-beautify/js/lib/beautify-css.js build/js/modules",
|
36 | 36 | "build-class-references": "node scripts/create-class-references.js",
|
37 | 37 | "cypress:open": "cypress open",
|
|
42 | 42 | "test": "yarn lint-scss && yarn lint-prettier && yarn test-spelling && yarn test-scss && yarn jest",
|
43 | 43 | "lint-prettier": "prettier -c .",
|
44 | 44 | "lint-scss": "stylelint 'scss/**/*.scss'",
|
45 |
| - "watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed scss:build/css --watch", |
46 |
| - "watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed scss/build.scss:build/css/build.css --watch", |
| 45 | + "watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css --watch", |
| 46 | + "watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css --watch", |
47 | 47 | "watch": "yarn build && yarn watch:scss",
|
48 | 48 | "clean": "rm -rf build docs/static/css node_modules/ yarn-error.log",
|
49 | 49 | "percy": "percy snapshot snapshots.js",
|
|
0 commit comments