Skip to content

Instantly share code, notes, and snippets.

@xmlking
Created September 4, 2015 23:59
Show Gist options
  • Save xmlking/327ebbca001b6b86b44d to your computer and use it in GitHub Desktop.
Save xmlking/327ebbca001b6b86b44d to your computer and use it in GitHub Desktop.
installing angular-new-router with JSPM without pulling unnecessary dependencies

How to install angular-new-router with JSPM without pulling unnecessary dependencies into jspm.config.js:

 jspm install npm:angular-new-router -o '{"main": "dist/router.es5", "format": "es6",  "dependencies": {"jspm:angular": "^1.4.5"}, "shim": { "dist/router.es5": {"deps": ["angular"]} } }'

Change Angular version if you are different version. with shim it also makesure angular is loaded before angular-new-router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment