-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade and update everything
- Loading branch information
Jesse Zhang
committed
Feb 16, 2018
1 parent
ed8cd72
commit 44ddec0
Showing
13 changed files
with
182 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
*~ | ||
*.log | ||
.npmrc | ||
package-lock.json | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,46 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.insertSpaces": false, | ||
"editor.detectIndentation": false, | ||
"editor.renderIndentGuides": false, | ||
"editor.renderWhitespace": "boundary", | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/.DS_Store": true, | ||
"**/coverage": true, | ||
"**/dist": true, | ||
"**/node_modules": true, | ||
"**/typings": true, | ||
"**/coverage": true | ||
"**/node_modules": true | ||
}, | ||
"files.watcherExclude": { | ||
"**/.git/**": true, | ||
"**/coverage/**": true, | ||
"**/dist/**": true, | ||
"**/node_modules/**": true | ||
}, | ||
"search.exclude": { | ||
"**/coverage": true, | ||
"**/dist": true, | ||
"**/node_modules": true | ||
}, | ||
"tslint.exclude": [ | ||
"**/scripts/**/*.js" | ||
], | ||
"vsicons.presets.angular": false, | ||
"tslint.enable": true | ||
"TodoParser": { | ||
"include": [ | ||
"ts", | ||
"js", | ||
"html", | ||
"scss" | ||
], | ||
"folderExclude": [ | ||
"node_modules", | ||
".vscode" | ||
], | ||
"only": [ | ||
"src" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
const gulp = require("gulp"), | ||
ts = require("gulp-typescript"), | ||
merge = require("merge2"), | ||
plumber = require("gulp-plumber"), | ||
jestCli = require("jest-cli"), | ||
jestConfig = require("../../jest.config"); | ||
|
||
gulp.task("develop:build:package", () => { | ||
gulp.watch([ | ||
"./package.json" | ||
], gulp.series("build:package")); | ||
}); | ||
|
||
gulp.task("develop:build:ts", () => { | ||
const tsProject = ts.createProject("tsconfig.build.json", { | ||
isolatedModules: true | ||
}); | ||
|
||
const build = () => { | ||
const tsResult = gulp.src([ | ||
"./src/**/*.ts", | ||
"!./src/**/tests/**/*.ts", | ||
"!./src/**/*.spec.ts" | ||
]) | ||
.pipe(plumber()) | ||
.pipe(tsProject()); | ||
|
||
return merge([ | ||
tsResult.dts, | ||
tsResult.js | ||
]).pipe(gulp.dest("dist")); | ||
}; | ||
build.displayName = "develop:build:ts:execution"; | ||
|
||
gulp.watch([ | ||
"./src/**/*.ts", | ||
"!./src/**/tests/**/*.ts", | ||
"!./src/**/*.spec.ts" | ||
], build); | ||
}); | ||
|
||
gulp.task("develop:test:jest", () => { | ||
return jestCli.runCLI({ | ||
config: jestConfig, | ||
watchAll: true | ||
}, ["."]); | ||
}); | ||
|
||
gulp.task("develop", gulp.series( | ||
"build", | ||
gulp.parallel( | ||
"develop:build:ts", | ||
"develop:build:package" | ||
// "develop:test:jest" | ||
) | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ require("./clean"); | |
|
||
require("./build"); | ||
require("./test"); | ||
require("./tslint"); | ||
|
||
require("./develop"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const gulp = require("gulp"), | ||
tslint = require("tslint"), | ||
gulpTslint = require("gulp-tslint"); | ||
|
||
gulp.task("tslint", () => { | ||
const program = tslint.Linter.createProgram("./tsconfig.json"); | ||
return gulp.src("src/**/*.ts") | ||
.pipe(gulpTslint({ | ||
program, | ||
formatter: "verbose" | ||
})) | ||
.pipe(gulpTslint.report()) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters