Search

1/22/2015

Javascript in 2015 - YouTube

1. npm install -g jspm 2. cd ~/dev/jspm; jspm init 3. npm install -g live-server 4. live-server . 5. vim index.htm, add 6. vim ./lib/main.js, add import RedditApi from './Reddit-api' export default {} 7. vim ./lib/Reddit-api.js, add class RedditApi { load() { console.log('todo') } } export default new RedditApi() 8. jspm install npm:jsonp 9. jspm bundle --minify lib/main
tag: systemJS

沒有留言: