Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Williams committed Feb 19, 2016
1 parent f40c024 commit 0eb3dcd
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions panoramix/assets/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,28 @@ managed with npm.
Using npm to generate bundled files
-----------------------------------

To install third party libraries defined in package.json, run the following within this directory
#### npm
First, npm must be available in your environment. If it is not you can run the following commands
(taken from [this source](https://gist.github.com/DanHerbert/9520689))
```
brew install node --without-npm
echo prefix=~/.npm-packages >> ~/.npmrc
curl -L https://www.npmjs.com/install.sh | sh
```

The final step is to add ```~/.node/bin``` to your ```PATH``` so commands you install globally are usable. Add something like this to your ```.bashrc``` or ```.zshrc``` file.
```
export PATH="$HOME/.node/bin:$PATH"
```

#### npm packages
To install third party libraries defined in ```package.json```, run the following within this directory which will install them in a new ```node_modules/``` folder within ```assets/```.

```
npm install
```

To parse and generate bundled files, run either of the following. The dev flag will keep the npm script running
and re-run upon any changes within the dev directory
To parse and generate bundled files for panoramix, run either of the following commands. The ```dev``` flag will keep the npm script running and re-run it upon any changes within the assets directory.

```
npm run prod
Expand Down

0 comments on commit 0eb3dcd

Please sign in to comment.