Skip to content

installation

benholloway edited this page Mar 14, 2016 · 3 revisions

Do not follow the Angularity installation instructions.

Where you see Node 4.4.0 mentioned below you may substitute the latest Node 4.x.x version.

Node

Strongly consider using a Node version manager such as nvm for Mac, or nvm-windows for Windows.

Ensure NodeJS 4.x.x, meaning:

nvm install 4.4.0
nvm use 4.4.0

Additionally on MacOS you may wish to set your default Node version. Otherwise the next terminal window you will open will have reverted.

nvm alias default 4.4.0

Double check you have the correct version. The following should report 4.4.0.

node -v

Also check you have npm 3.x.x. This is less critical but we recommend npm 3 over npm 2 because that is what we have tested.

npm -v

Dependencies

All packages should be installed as local dev-dependencies.

You do not need any additional global installs if you only use npm scripts.

Install this project.

npm install --save-dev webpack-angularity-solution

Install karma-angularity-solution only if you expect to be running Unit Tests.

npm install --save-dev karma-angularity-solution

Install BabelJS dependencies only if you will be using future javascript as described below. Due to the churn in Babel it is recommended you save exact or at least pin to tilde ~ range.

npm install --save-dev --save-exact babel-preset-es2015 babel-plugin-add-module-exports
Clone this wiki locally