Skip to content

Commit

Permalink
chore(dev): replace del-cli with rimraf
Browse files Browse the repository at this point in the history
* replace del-cli with rimraf in package scripts
to reduce dependencies and speed up build

According to bundlephobia del-cli and dependencies weight 2.37MB
del already depends on rimraf, and adds a Promise API but
we do not use it programmatically so we don't need it.
  • Loading branch information
ludofischer committed Jun 5, 2021
1 parent b60f54b commit 8c8ba10
Show file tree
Hide file tree
Showing 39 changed files with 44 additions and 122 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,7 +36,6 @@
"chalk": "^4.1.0",
"cross-env": "^7.0.3",
"css-color-names": "^1.0.1",
"del-cli": "^3.0.1",
"diff": "^5.0.0",
"dox": "^0.9.0",
"eslint": "^7.27.0",
Expand Down Expand Up @@ -71,6 +70,7 @@
"remark-html": "^13.0.1",
"remark-license": "^5.0.1",
"remark-toc": "^7.2.0",
"rimraf": "^3.0.2",
"stringify-object": "^3.3.0",
"toml": "^3.0.0",
"tomlify-j0.4": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-size/package.json
Expand Up @@ -8,7 +8,7 @@
"css-size": "dist/cli.js"
},
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cssnano-preset-advanced/package.json
Expand Up @@ -4,7 +4,7 @@
"main": "dist/index.js",
"description": "Advanced optimisations for cssnano; may or may not break your CSS!",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cssnano-preset-default/package.json
Expand Up @@ -4,7 +4,7 @@
"main": "dist/index.js",
"description": "Safe defaults for cssnano which require minimal configuration.",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cssnano-preset-lite/package.json
Expand Up @@ -4,7 +4,7 @@
"main": "dist/index.js",
"description": "Safe and minimum transformation",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cssnano-utils/package.json
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"description": "Utility methods and plugin for cssnano projects",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cssnano/package.json
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"bundle-size": "webpack --json --config src/__tests__/_webpack.config.js | webpack-bundle-size-analyzer",
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-colormin/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-convert-values/package.json
Expand Up @@ -8,7 +8,7 @@
"dist"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-discard-comments/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-discard-duplicates/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-discard-empty/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-discard-overridden/package.json
Expand Up @@ -23,7 +23,7 @@
},
"homepage": "https://github.com/cssnano/cssnano",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-discard-unused/package.json
Expand Up @@ -9,7 +9,7 @@
"dist"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-merge-idents/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-merge-longhand/package.json
Expand Up @@ -8,7 +8,7 @@
"dist"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-merge-rules/package.json
Expand Up @@ -8,7 +8,7 @@
"dist"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-minify-font-values/package.json
Expand Up @@ -25,7 +25,7 @@
},
"homepage": "https://github.com/cssnano/cssnano",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-minify-gradients/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Minify gradient parameters with PostCSS.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-minify-params/package.json
Expand Up @@ -29,7 +29,7 @@
"uniqs": "^2.0.0"
},
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-minify-selectors/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-charset/package.json
Expand Up @@ -20,7 +20,7 @@
"homepage": "https://github.com/cssnano/cssnano",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-display-values/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Normalize multiple value display syntaxes into single values.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-positions/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-repeat-style/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Convert two value syntax for repeat-style into one value.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-string/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-timing-functions/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Normalize CSS animation/transition timing functions.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-unicode/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-url/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-normalize-whitespace/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-ordered-values/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\" && node script/buildListStyleType.js",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-reduce-idents/package.json
Expand Up @@ -8,7 +8,7 @@
"LICENSE-MIT"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-reduce-initial/package.json
Expand Up @@ -10,7 +10,7 @@
],
"scripts": {
"acquire": "node ./src/acquire.mjs",
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore '**/__tests__/,src/acquire.mjs'",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-reduce-transforms/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Reduce transform functions with PostCSS.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-svgo/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Optimise inline SVG with PostCSS.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-unique-selectors/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Ensure CSS selectors are unique.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-zindex/package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Reduce z-index values with PostCSS.",
"main": "dist/index.js",
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/stylehacks/package.json
Expand Up @@ -8,7 +8,7 @@
"dist"
],
"scripts": {
"prebuild": "del-cli dist",
"prebuild": "rimraf dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepare": "yarn build"
},
Expand Down

0 comments on commit 8c8ba10

Please sign in to comment.