-
Notifications
You must be signed in to change notification settings - Fork 680
Recommended Setup
Blendid requires at least Node 6. While you can install Node a variety of ways, we highly recommend using nvm to install and manage Node versions.
We recommend yarn
over npm
for a few reasons: yarn.lock
files are a lifesaver, modules install way faster, and yarn run
for running package.json
scripts
and node_modules/.bin
executables is a nice convenience. It's just better.
Once you have made sure you are using the correct version of Node and have Yarn installed, in a new directory run:
yarn init
This will generate a package.json
file. Follow the prompts, entering the appropriate information.
Once that is complete run:
yarn add blendid
yarn run blendid init
This will add the blendid package to your project and run an the init task to build out a template file structure, adding a src/
directory a config/
directory and a few .
prefixed files to your root directory.
Once you have run the init file, you can simply run:
yarn run blendid
This will watch your files, compile them and live reload in the browser.
Check out the Commands tab for the full list of Blendid commands.
Visit code.viget.com to see more projects from Viget.