mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
chore(deps-dev): replace node-sass with sass, upgrade autoprefixer, postcss (#497)
This commit is contained in:
parent
63ef51209d
commit
3e7511e3f8
5 changed files with 185 additions and 1769 deletions
|
@ -11,19 +11,19 @@
|
|||
"devDependencies": {
|
||||
"@carbon/themes": "10.26.0",
|
||||
"@sveltech/routify": "^1.9.9",
|
||||
"autoprefixer": "^10.0.1",
|
||||
"autoprefixer": "^10.2.3",
|
||||
"carbon-components": "10.27.0",
|
||||
"carbon-components-svelte": "../",
|
||||
"clipboard-copy": "^3.1.0",
|
||||
"mdsvex": "^0.8.8",
|
||||
"node-sass": "^4.14.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss": "^8.1.1",
|
||||
"postcss": "^8.2.4",
|
||||
"prettier": "^2.1.2",
|
||||
"prettier-plugin-svelte": "^1.4.1",
|
||||
"prism-svelte": "^0.4.7",
|
||||
"prismjs": "^1.21.0",
|
||||
"remark-slug": "^6.0.0",
|
||||
"sass": "^1.32.5",
|
||||
"svelte": "3.29.0",
|
||||
"svelte-hmr": "0.11.1",
|
||||
"svelte-preprocess": "^4.3.2",
|
||||
|
|
808
docs/yarn.lock
808
docs/yarn.lock
File diff suppressed because it is too large
Load diff
|
@ -26,19 +26,19 @@
|
|||
"@rollup/plugin-commonjs": "^16.0.0",
|
||||
"@rollup/plugin-node-resolve": "^10.0.0",
|
||||
"@tsconfig/svelte": "^1.0.10",
|
||||
"autoprefixer": "^9.8.6",
|
||||
"autoprefixer": "^10.2.3",
|
||||
"carbon-components-10.27": "npm:carbon-components@10.27.0",
|
||||
"gh-pages": "^3.1.0",
|
||||
"husky": "^4.3.8",
|
||||
"lint-staged": "^10.5.3",
|
||||
"node-sass": "^4.14.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss": "^7.0.32",
|
||||
"postcss": "^8.2.4",
|
||||
"prettier": "^2.2.0",
|
||||
"prettier-plugin-svelte": "^1.4.1",
|
||||
"rollup": "^2.38.0",
|
||||
"rollup-plugin-svelte": "^7.1.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"sass": "^1.32.5",
|
||||
"sveld": "0.3.0",
|
||||
"svelte": "^3.32.0",
|
||||
"svelte-check": "^1.1.28",
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
const fs = require("fs");
|
||||
const sass = require("node-sass");
|
||||
const sass = require("sass");
|
||||
const autoprefixer = require("autoprefixer");
|
||||
const postcss = require("postcss");
|
||||
const path = require("path");
|
||||
const { promisify } = require("util");
|
||||
|
||||
const writeFile = promisify(fs.writeFile);
|
||||
const sassRender = promisify(sass.render);
|
||||
|
||||
const shared = {
|
||||
globals: `
|
||||
|
@ -74,9 +73,9 @@ async function buildCss() {
|
|||
Object.keys(themes).forEach(async (theme) => {
|
||||
try {
|
||||
const outFile = path.resolve("css", theme + ".css");
|
||||
const { css } = await sassRender({
|
||||
const { css } = sass.renderSync({
|
||||
data: `
|
||||
@import "node_modules/@carbon/themes/scss/themes";
|
||||
@import "node_modules/@carbon/themes/scss/themes";
|
||||
|
||||
$feature-flags: (
|
||||
enable-css-custom-properties: ${theme === "all"},
|
||||
|
@ -88,7 +87,7 @@ async function buildCss() {
|
|||
${shared.components}
|
||||
`,
|
||||
outFile,
|
||||
outputStyle: "compact",
|
||||
outputStyle: "compressed",
|
||||
omitSourceMapUrl: true,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue