angular2 test
This commit is contained in:
@@ -15,4 +15,5 @@ module.exports = function(grunt) {
|
||||
]);
|
||||
|
||||
grunt.registerTask('test', ['default', 'karma:test']);
|
||||
|
||||
};
|
||||
|
||||
@@ -13,6 +13,21 @@ module.exports = function(config) {
|
||||
expand: true,
|
||||
src: ['**/*', '!**/*.less'],
|
||||
dest: '<%= genDir %>'
|
||||
},
|
||||
|
||||
node_modules: {
|
||||
cwd: './node_modules',
|
||||
expand: true,
|
||||
src: [
|
||||
'angular2/bundles/**/*',
|
||||
'systemjs/**/*',
|
||||
'es6-promise/**/*',
|
||||
'es6-shim/**/*',
|
||||
'reflect-metadata/**/*',
|
||||
'rxjs/**/*',
|
||||
'zone/**/*',
|
||||
],
|
||||
dest: '<%= srcDir %>/vendor/jspm'
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -3,14 +3,13 @@ module.exports = function() {
|
||||
|
||||
return {
|
||||
build: {
|
||||
src: ['public/**/*.ts', 'public/test/**/*.ts', "!public/vendor/**/*.ts"],
|
||||
src: ['public/app/**/*.ts', "!public/vendor/**/*.ts", "!**/*_specs.ts"],
|
||||
dest: 'public_gen/',
|
||||
options: {
|
||||
module: 'system', //or commonjs
|
||||
target: 'es5', //or es3
|
||||
rootDir: 'public/',
|
||||
sourceRoot: 'public/',
|
||||
declaration: true,
|
||||
"moduleResolution": "node",
|
||||
emitDecoratorMetadata: true,
|
||||
experimentalDecorators: true,
|
||||
sourceMap: true,
|
||||
|
||||
Reference in New Issue
Block a user