Run this command from your project root directory to download the project's dependencies:
npm i
After the steps above, you're ready to go. The main commands needed to generate the dist/
are npm run build
and npm run assemble:build
(in two seperate terminal tabs). For more specific tasks see Build Scripts for more information.
There are a variety of build scripts provided in the package.json
that can be run directly in your terminal window. All scripts can be run via npm run <scriptName>
, with the exception of npm start
.
Runs a watch script on you CSS and JS paths, as well as all files. Does not copy any files, but does build CSS and JS once before starting the watch script.
Build CSS and JS and copy all files.
Copies all files, aside from CSS and JS, from src/
to dist/
.
Watches all files, aside from CSS and JS, for changes and copies changed files from src/
to dist/
.
Runs a watch task on your javascripts and CSS sheets.
Builds your javascript bundle and CSS sheet once.
Builds your javascript bundle once using production variables if available.
Runs a watch task on your javascripts. On change events, runs [js:build]
.
Compiles and prefixes your CSS using Libass, POSTCSS and Autoprefixer.
Runs a watch task on your CSS. On change events, runs [css:build]
.
Generate html files in dist/
from assemble files (.hbs) in src/
.
Watches assemble files (.hbs) for changes and generate html from changed files in dist/
.
Make sure your node environment is updated. You're using Homebrew for this, right?
# check kegs and brew version
brew update
# update node
brew upgrade node