guylepage3 / m3

m3 is an advanced typography framework.
https://m3-one.vercel.app
MIT License
12 stars 2 forks source link

Add css and minified css to npm package #21

Closed guylepage3 closed 5 years ago

guylepage3 commented 6 years ago

Description We should add css and minified css to the @unimeta/meta npm package for more compatibility.

Tasks

Structure

meta
├── dist/
│  └── css/
|     └── meta.css
|     └── meta.css.map
|     └── meta.min.css
|     └── meta.min.css.map
├── LICENSE
├── package.json
├── README.md
└── scss/
   └── meta.scss
guylepage3 commented 6 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/",
guylepage3 commented 5 years ago

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.