-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to gulp build * Working gulp build * add script * Remove npm install from gulp build
- Loading branch information
1 parent
62416f8
commit 69f9d6c
Showing
6 changed files
with
8,427 additions
and
677 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# Build output | ||
lib/ | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
const gulp = require('gulp'); | ||
const shell = require('gulp-shell'); | ||
const ts = require('gulp-typescript'); | ||
|
||
const tsProject = ts.createProject('tsconfig.json'); | ||
|
||
function clean(cb) { | ||
import('del') | ||
.then((del) => del.deleteSync(['dist'])) | ||
.then(() => cb()); | ||
} | ||
|
||
function compile(cb) { | ||
tsProject | ||
.src() | ||
.pipe(tsProject()).js | ||
.pipe(gulp.dest('dist')); | ||
cb(); | ||
} | ||
|
||
function copyPackageJson(cb) { | ||
gulp | ||
.src('package.json') | ||
.pipe(gulp.dest('dist')); | ||
cb(); | ||
} | ||
|
||
exports.clean = clean; | ||
exports.compile = compile; | ||
exports.build = gulp.series(clean, compile, copyPackageJson); | ||
exports.default = exports.build; |
Oops, something went wrong.