Demo for Drupal Camp Atlanta talk on KSS Node 2016.
If you haven't yet, install nvm: https://github.com/creationix/nvm
nvm use
This command will look at your .nvmrc
file and use the version node.js specified in it. This ensures all developers use the same version of node for consistency.
nvm install
npm install
This command looks at package.json
and installs all the npm dependencies specified in it. Some of the dependencies include gulp, autoprefixer, gulp-sass and others.
npm run build
This will run whatever the default task is.
npm run compile
This will perform a one-time Sass compilation.
npm run watch
This is ideal when you are doing a lot of Sass changes and you want to make sure every time a change is saved it automatically gets compiled to CSS
npm run clean
This will perform a one-time deletion of all compiled files within the dist/ directory.
npm run styleguide
This will generate a style guide using KSS within the dist/ directory.