mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
support for both gulp and npm/tsc runners
This commit is contained in:
parent
db34fd395d
commit
56b7a361ce
@ -25,7 +25,16 @@ gulp.task('copy:assets', ['clean'], function() {
|
||||
// copy dependencies
|
||||
gulp.task('copy:libs', ['clean'], function() {
|
||||
return gulp.src([
|
||||
'node_modules/**/*'
|
||||
'node_modules/**/*',
|
||||
'!node_modules/ng2-alfresco-*{,/**/*}'
|
||||
])
|
||||
.pipe(gulp.dest('dist/node_modules'))
|
||||
});
|
||||
|
||||
gulp.task('copy:components', ['clean'], function() {
|
||||
return gulp.src([
|
||||
'../ng2-components/**/*',
|
||||
'!../ng2-components/README.md'
|
||||
])
|
||||
.pipe(gulp.dest('dist/node_modules'))
|
||||
});
|
||||
@ -75,7 +84,7 @@ gulp.task('serve', ['build'], function() {
|
||||
gulp.watch(['app/**/*', 'index.html'], ['buildAndReload']);
|
||||
});
|
||||
|
||||
gulp.task('build', ['tslint', 'copy:assets', 'copy:libs', 'copy:typings', 'compile']);
|
||||
gulp.task('build', ['tslint', 'copy:assets', 'copy:libs', 'copy:components', 'copy:typings', 'compile']);
|
||||
gulp.task('dev', ['build', 'serve'], reload);
|
||||
gulp.task('default', ['build']);
|
||||
gulp.task('buildAndReload', ['build'], reload);
|
||||
|
@ -8,7 +8,7 @@
|
||||
"start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",
|
||||
"test": "live-server --open=tests-runner.html",
|
||||
"tsc": "tsc",
|
||||
"tsc:w": "tsc -w",
|
||||
"tsc:w": "tsc -w -p tsconfig.dev.json",
|
||||
"lite": "lite-server",
|
||||
"typings": "typings",
|
||||
"postinstall": "typings install"
|
||||
|
18
demo-shell-ng2/tsconfig.dev.json
Normal file
18
demo-shell-ng2/tsconfig.dev.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "system",
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"removeComments": false,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"exclude": [
|
||||
"dist",
|
||||
"node_modules",
|
||||
"typings/main",
|
||||
"typings/main.d.ts"
|
||||
]
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"outDir": "dist/app",
|
||||
"module": "system",
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
@ -9,6 +10,11 @@
|
||||
"removeComments": false,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"files": [
|
||||
"node_modules/angular2/typings/browser.d.ts",
|
||||
"typings/browser/ambient/jasmine/index.d.ts",
|
||||
"app/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"typings/main",
|
||||
|
Loading…
x
Reference in New Issue
Block a user