File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ loadTasks(PROJECT_TASKS_DIR);
10
10
// --------------
11
11
// Build dev.
12
12
gulp . task ( 'build.dev' , ( done : any ) =>
13
- runSequence ( 'clean.dev' ,
14
- 'tslint' ,
15
- 'css-lint' ,
13
+ runSequence ( // 'clean.dev',
14
+ // 'tslint',
15
+ // 'css-lint',
16
16
'build.assets.dev' ,
17
17
'build.html_css' ,
18
18
'build.js.dev' ,
Original file line number Diff line number Diff line change 1
1
import * as gulp from 'gulp' ;
2
2
import * as gulpLoadPlugins from 'gulp-load-plugins' ;
3
+ import * as merge from 'merge-stream' ;
3
4
import { join } from 'path' ;
4
5
import { APP_SRC , APP_DEST , TOOLS_DIR } from '../../config' ;
5
6
import { templateLocals , makeTsProject } from '../../utils' ;
6
7
const plugins = < any > gulpLoadPlugins ( ) ;
7
8
8
9
export = ( ) => {
9
10
let tsProject = makeTsProject ( ) ;
10
- let src = [
11
+ let typings = gulp . src ( [
11
12
'typings/browser.d.ts' ,
12
- TOOLS_DIR + '/manual_typings/**/*.d.ts' ,
13
+ TOOLS_DIR + '/manual_typings/**/*.d.ts'
14
+ ] ) ;
15
+ let src = [
13
16
join ( APP_SRC , '**/*.ts' ) ,
14
17
'!' + join ( APP_SRC , '**/*.spec.ts' ) ,
15
18
'!' + join ( APP_SRC , '**/*.e2e.ts' )
16
19
] ;
17
- let result = gulp . src ( src )
20
+
21
+ let projectFiles = gulp . src ( src ) . pipe ( plugins . cached ( ) ) ;
22
+ let result = merge ( typings , projectFiles )
18
23
. pipe ( plugins . plumber ( ) )
19
24
. pipe ( plugins . sourcemaps . init ( ) )
20
25
. pipe ( plugins . typescript ( tsProject ) ) ;
21
26
27
+
22
28
return result . js
23
29
. pipe ( plugins . sourcemaps . write ( ) )
24
30
. pipe ( plugins . template ( templateLocals ( ) ) )
You can’t perform that action at this time.
0 commit comments