Closed guylepage3 closed 5 years ago
Review Bootstrap's package.json
file to see how they compile, minify and replace their css for publishing in their dist
directory.
More specifically, review the following:
"css": "npm-run-all --parallel css-lint* css-compile* --sequential css-prefix* css-minify*",
"css-main": "npm-run-all --parallel css-lint css-compile --sequential css-prefix css-minify css-copy",
"css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-grid.scss dist/css/bootstrap-grid.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-reboot.scss dist/css/bootstrap-reboot.css",
"css-copy": "shx mkdir -p site/docs/4.1/dist/ && shx cp -r dist/css/ site/docs/4.1/dist/",
Deprecated. We are not doing this and letting the end user compile the sass. If someone requests a css minified version we'll add it to the build script.
Description We should add css and minified css to the
@unimeta/meta
npm package for more compatibility.Tasks
Bootstrap
handles theirpackage.json
scripting.dist/
directory in rootcss/
directory inside the./dist
directory.scripts
inpackage.json
that;node_modules/bootstrap/scss/bootstrap.scss
andsrc/scss/meta.scss
that saves and replaces;meta.css
and places it indist/css
.meta.css
and places it indist/css
.files
to be included into the published npm package.Structure