-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
closes #2655
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**/tsconfig.json | ||
**/webpack.config.js | ||
**/node_modules | ||
**/ng2* | ||
commonjs | ||
typings | ||
.* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"compilerOptions": { "rootDir": ".", "outDir": "../commonjs" }, | ||
"files": [ | ||
"ng1.ts", | ||
"ng1/stateEvents.ts", | ||
"../typings/es6-shim/es6-shim.d.ts" , | ||
"../typings/angularjs/angular.d.ts" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// <package>/../../src/ is copied to <package>/src | ||
// This config is then copied to <package>/src/webpack.config.js | ||
|
||
var pkg = require('../bower.json'); | ||
var banner = pkg.description + '\n' + | ||
'@version v' + pkg.version + '\n' + | ||
'@link ' + pkg.homepage + '\n' + | ||
'@license MIT License, http://www.opensource.org/licenses/MIT'; | ||
|
||
var webpack = require('webpack'); | ||
module.exports = { | ||
entry: { | ||
"angular-ui-router": "./ng1.ts", | ||
"angular-ui-router.min": "./ng1.ts", | ||
"stateEvents": "./ng1/stateEvents.ts", | ||
"stateEvents.min": "./ng1/stateEvents.ts" | ||
}, | ||
|
||
output: { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
earlyster
|
||
path: __dirname + "/../release", | ||
filename: "[name].js", | ||
libraryTarget: "umd", | ||
library: "angular-ui-router", | ||
umdNamedDefine: true | ||
}, | ||
|
||
devtool: 'source-map', | ||
|
||
resolve: { | ||
modulesDirectories: ['../../node_modules'], | ||
extensions: ['', '.js', '.ts'] | ||
}, | ||
|
||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
include: /\.min\.js$/, minimize: true | ||
}), | ||
new webpack.BannerPlugin(banner) | ||
], | ||
|
||
module: { | ||
loaders: [ | ||
{ test: /\.ts$/, loader: "ts-loader" } | ||
] | ||
} | ||
}; |
When using require js to load angular-ui-router and stateEvents ... stateEvents is never loaded because umd module has the same name as angular-ui-router.