Skip to content

Commit

Permalink
remove bower in favor of jspm
Browse files Browse the repository at this point in the history
  • Loading branch information
lookfirst committed Feb 28, 2015
1 parent 0cd65ac commit 83c246e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 63 deletions.
15 changes: 0 additions & 15 deletions bower.json

This file was deleted.

3 changes: 0 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,13 @@ module.exports = function(config) {
loadFiles: ['test/**/*.js'],
serveFiles: [
'src/**/**',
'bower_components/**/*.js',
'bower_components/**/*.css',
'jspm_packages/**/*.js',
'jspm_packages/**/*.css'
]
},

proxies: {
'/base/app': '/base/src/app',
'/bower_components': '/base/bower_components',
'/jspm_packages': '/base/jspm_packages'
},

Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@
},
"configFile": "src/system.config.js",
"dependencies": {
"angular": "npm:angular@^1.3.14",
"angular-mocks": "npm:angular-mocks@^1.3.14",
"angular-ui-router": "npm:angular-ui-router@^0.2.13",
"css": "github:systemjs/plugin-css@^0.1.5",
"json": "github:systemjs/plugin-json@^0.1.0"
"json": "github:systemjs/plugin-json@^0.1.0",
"oclazyload": "npm:oclazyload@^0.6.0",
"ui-router-extras": "npm:ui-router-extras@^0.0.13"
}
},
"repository": {
"type": "git",
"url": "https://github.com/lookfirst/systemjs-seed.git"
},
"scripts": {
"postinstall": "bower install && jspm install"
"postinstall": "jspm install"
}
}
2 changes: 1 addition & 1 deletion src/app/app.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
`import angular from 'angular'`
`import 'angular-ui-router'`
`import 'ocLazyLoad'`
`import 'oclazyload'`
`import routing from 'common/utils/routing'`

module = angular.module('seed', ['ui.router', 'oc.lazyLoad'])
Expand Down
63 changes: 21 additions & 42 deletions src/system.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ System.config({
"transpiler": "babel",
"paths": {
"*": "*.js",
"bower_components/*": "../bower_components/*.js",
"github:*": "../jspm_packages/github/*.js",
"npm:*": "../jspm_packages/npm/*.js",
"systemjs-seed/*": "../src/*.js"
Expand All @@ -12,53 +11,17 @@ System.config({
"separateCSS": false
});

System.config({
"meta": {
"bower_components/angular/angular": {
"format": "global",
"exports": "angular"
},
"bower_components/angular-mocks/angular-mocks": {
"deps": [
"angular"
]
},
"bower_components/angular-ui-router/release/angular-ui-router": {
"deps": [
"angular"
]
},
"bower_components/ocLazyLoad/dist/ocLazyLoad": {
"deps": [
"angular"
]
},
"bower_components/ui-router-extras/release/modular/ct-ui-router-extras.core": {
"format": "global",
"deps": [
"angular"
]
},
"bower_components/ui-router-extras/release/modular/ct-ui-router-extras.future": {
"format": "global",
"deps": [
"bower_components/ui-router-extras/release/modular/ct-ui-router-extras.core"
]
}
}
});

System.config({
"map": {
"angular": "bower_components/angular/angular",
"angular-mocks": "bower_components/angular-mocks/angular-mocks",
"angular-ui-router": "bower_components/angular-ui-router/release/angular-ui-router",
"angular": "npm:angular@1.3.14",
"angular-mocks": "npm:angular-mocks@1.3.14",
"angular-ui-router": "npm:angular-ui-router@0.2.13",
"css": "github:systemjs/plugin-css@0.1.5",
"json": "github:systemjs/plugin-json@0.1.0",
"ocLazyLoad": "bower_components/ocLazyLoad/dist/ocLazyLoad",
"oclazyload": "npm:oclazyload@0.6.0",
"plugin-css": "github:systemjs/plugin-css@0.1.5",
"plugin-json": "github:systemjs/plugin-json@0.1.0",
"ui-router-extras": "bower_components/ui-router-extras/release/modular/ct-ui-router-extras.future",
"ui-router-extras": "npm:ui-router-extras@0.0.13",
"github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:assert@1.3.0"
},
Expand Down Expand Up @@ -110,6 +73,12 @@ System.config({
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.1"
},
"npm:angular-ui-router@0.2.13": {
"process": "github:jspm/nodelibs-process@0.1.1"
},
"npm:angular@1.3.14": {
"process": "github:jspm/nodelibs-process@0.1.1"
},
"npm:assert@1.3.0": {
"util": "npm:util@0.10.3"
},
Expand Down Expand Up @@ -149,6 +118,12 @@ System.config({
"npm:inherits@2.0.1": {
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:oclazyload@0.6.0": {
"child_process": "github:jspm/nodelibs-child_process@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.1",
"process": "github:jspm/nodelibs-process@0.1.1",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:os-browserify@0.1.2": {
"os": "github:jspm/nodelibs-os@0.1.0"
},
Expand Down Expand Up @@ -183,6 +158,9 @@ System.config({
"npm:string_decoder@0.10.31": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:ui-router-extras@0.0.13": {
"process": "github:jspm/nodelibs-process@0.1.1"
},
"npm:url@0.10.2": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"punycode": "npm:punycode@1.3.2",
Expand All @@ -195,3 +173,4 @@ System.config({
}
}
});

0 comments on commit 83c246e

Please sign in to comment.