mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
parent
735bd23c19
commit
3b9ace3d98
@ -17,6 +17,7 @@ gulp.task('clean', function () {
|
|||||||
gulp.task('copy:assets', ['clean'], function() {
|
gulp.task('copy:assets', ['clean'], function() {
|
||||||
return gulp.src(['app/**/*',
|
return gulp.src(['app/**/*',
|
||||||
'index.html',
|
'index.html',
|
||||||
|
'typings.json',
|
||||||
'!app/**/*.ts'], { base : './' })
|
'!app/**/*.ts'], { base : './' })
|
||||||
.pipe(gulp.dest('dist'))
|
.pipe(gulp.dest('dist'))
|
||||||
});
|
});
|
||||||
@ -29,6 +30,14 @@ gulp.task('copy:libs', ['clean'], function() {
|
|||||||
.pipe(gulp.dest('dist/node_modules'))
|
.pipe(gulp.dest('dist/node_modules'))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// copy typings
|
||||||
|
gulp.task('copy:typings', ['clean'], function() {
|
||||||
|
return gulp.src([
|
||||||
|
'typings/**/*'
|
||||||
|
])
|
||||||
|
.pipe(gulp.dest('dist/typings'))
|
||||||
|
});
|
||||||
|
|
||||||
// linting
|
// linting
|
||||||
gulp.task('tslint', function() {
|
gulp.task('tslint', function() {
|
||||||
return gulp.src('app/**/*.ts')
|
return gulp.src('app/**/*.ts')
|
||||||
@ -66,6 +75,6 @@ gulp.task('serve', ['build'], function() {
|
|||||||
gulp.watch(['app/**/*', 'index.html'], ['buildAndReload']);
|
gulp.watch(['app/**/*', 'index.html'], ['buildAndReload']);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('build', ['tslint', 'compile', 'copy:assets', 'copy:libs', ]);
|
gulp.task('build', ['tslint', 'copy:assets', 'copy:libs', 'copy:typings', 'compile']);
|
||||||
gulp.task('dev', ['build', 'serve'], reload);
|
gulp.task('dev', ['build', 'serve'], reload);
|
||||||
gulp.task('default', ['build']);
|
gulp.task('default', ['build']);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es6",
|
"target": "es5",
|
||||||
"outDir": "dist/app",
|
"outDir": "dist/app",
|
||||||
"module": "system",
|
"module": "system",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user