The npm dependencies included in package.json are:
bulmanode-sassto compile your own Sass filepostcss-cliandautoprefixerto add support for older browsersbabel-cli,babel-preset-envandbabel-preset-es2015-iefor compiling ES6 JavaScript files
Apart from package.json, the following files are included:
.babelrcconfiguration file for Babel.gitignorecommon Git ignored filesindex.htmlthis HTML5 file_sass/main.scssa basic SCSS file that imports Bulma and explains how to customize your styles, and compiles tocss/main.css_javascript/main.jsan ES6 JavaScript that compiles tolib/main.js
npm install
npm startAs long as npm start is running, it will watch your changes. You can edit _sass/main.scss and _javascript/main.js at will. Changes are immediately compiled to their destinations, where index.html will pick them up upon reload in your browser.
Some controlling output is written to the npm start console in that process:
_javascript/main.js -> lib/main.js
=> changed: $HOME/projects/start-with-bulma/_sass/main.scss
Rendering Complete, saving .css file...
Wrote CSS to $HOME/projects/start-with-bulma/css/main.cssUse npm run to show all available commands:
Lifecycle scripts included in bulma-start:
start
npm-run-all --parallel css-watch js-watch
available via `npm run-script`:
css-build
node-sass _sass/main.scss css/main.css
css-deploy
npm run css-build && npm run css-postcss
css-postcss
postcss --use autoprefixer --output css/main.css css/main.css
css-watch
npm run css-build -- --watch
deploy
npm run css-deploy && npm run js-build
js-build
babel _javascript --out-dir lib
js-watch
npm run js-build -- --watchIf you want to learn more, follow these links: Bulma homepage and Documentation.