Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit e6b6467

Browse files
devversionThomasBurleson
authored andcommitted
chore(): use local node modules for jspm (#155)
* Rather than forcing the user to install a JSPM binary with NPMg lobally, we should add JSPM as a dev-dependency. This ensures that each user has the *same* environment and same conditions. * Notice that JSPM will automatically install the packages when running `npm install`, because it's listed in the `postinstall` script.
1 parent 2c709d6 commit e6b6467

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,10 @@ installed.
109109
Clone this repository and execute the following commands in a terminal:
110110

111111
* `git checkout master`
112-
* `npm install jspm live-server -g`
113-
* `jspm update`
114-
* `live-server --open=app`
112+
* `npm install`
113+
* `npm run serve`
115114

116-
> **Note:** You should use a web-server (like live-server above) to view your app in the browser. Open
117-
the dev console to see any warnings and browse the elements.
115+
> **Note:** Open the dev console to see any warnings and browse the elements.
118116
119117
###### Layout
120118

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
}
2929
},
3030
"devDependencies": {
31+
"jspm": "^0.16.46",
3132
"live-server": "^0.9.2"
3233
},
3334
"scripts": {
34-
"postinstall": "jspm install"
35+
"postinstall": "jspm install",
36+
"serve": "live-server ./app"
3537
}
3638
}

0 commit comments

Comments
 (0)