Skip to content
This repository was archived by the owner on Apr 11, 2018. It is now read-only.

Commit 463bebd

Browse files
committed
Fix some npm install ugliness
1 parent 6e880f0 commit 463bebd

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ $ cd swig
3333
$ make
3434
```
3535

36+
```sh
37+
# Ensure your $NODE_PATH is set
38+
# Place this in your ~/.bash_profile
39+
export NODE_PATH=$(npm -g root 2>/dev/null)
40+
```
41+
3642
```sh
3743
# Run the documentation test environment
3844
$ make docs

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ BIN = node_modules/.bin
1010
PWD = $(shell pwd | sed -e 's/[\/&]/\\&/g')
1111

1212
all:
13-
@npm install -d
13+
@echo "Installing packages"
14+
@npm install --depth=100 --loglevel=error
15+
@npm link &>/dev/null
1416
@cp scripts/githooks/* .git/hooks/
1517
@chmod -R +x .git/hooks/
1618

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@
1818
},
1919
"author": "Paul Armstrong <[email protected]>",
2020
"dependencies": {
21-
"uglify-js": "~2.3",
22-
"optimist": "~0.6.0"
21+
"uglify-js": "2.4.0",
22+
"optimist": "0.6.0"
2323
},
2424
"devDependencies": {
2525
"lodash": "~1.3.1",
2626
"express": "~3",
2727
"nodelint": "~0.6",
2828
"mocha": "1.12.0",
2929
"expect.js": "~0.2",
30-
"swig": "~1",
3130
"still": "0.0.7",
3231
"less": "~1.4",
3332
"mocha-phantomjs": "~3.1",

0 commit comments

Comments
 (0)