0.1.10 • Published 7 months ago

@charles-evolv/yml-min v0.1.10

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

yml-min

Applies post-processing and minification to scripts and styles contained in Evolv metamodel files.

Post Processing

JS

  • Babel
  • Terser

CSS

  • Post CSS
  • sort-media-queries plugin
  • cssnano plugin

Getting started

Install from NPM

npm install @charles-evolv/yml-min

Usage

After running you will find your minified yml in the base folder near your original file. A folder will also be created with all the code for all of your contexts and variants can be found there for easy code review.

Run once

npx yml-min <metamodel.yml>

Watch for changes

yml-min installs with nodemon by default, to automatically update your minified file every time your original yml is saved, paste this into the scripts section of your package.json file.

"watch": "nodemon --watch <metamodel.yml> --exec \"yml-min <metamodel.yml>\""

and run with:

npm run watch
0.1.10

7 months ago

0.1.9

7 months ago

0.1.8

7 months ago

0.1.7

7 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago