-
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.
First commit, most of it coming from the typescript-tidbits repositor…
…y. The Fween class is still ES6-ified.
- Loading branch information
0 parents
commit 11bb802
Showing
17 changed files
with
2,935 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
js-es5/* linguist-vendored | ||
js-es6/* linguist-vendored | ||
js-min/* linguist-vendored |
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,2 @@ | ||
.tscache | ||
node_modules |
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 @@ | ||
# Fween |
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,55 @@ | ||
var gulp = require('gulp'); | ||
var ts = require('gulp-typescript'); | ||
var del = require('del'); | ||
var uglify = require("gulp-uglify"); | ||
var concat = require("gulp-concat"); | ||
var sourcemaps = require('gulp-sourcemaps'); | ||
|
||
gulp.task('clean', function (cb) { | ||
del(['js/**/*', 'js-min/**/*'], cb); | ||
}); | ||
|
||
gulp.task('compile-es5', function() { | ||
gulp.src('ts/**/*.ts') | ||
.pipe(sourcemaps.init()) | ||
.pipe(ts({ | ||
declarationFiles: true, | ||
noExternalResolve: true, | ||
removeComments: false, | ||
target: "es5", | ||
module: "amd", // commonjs, amd, system, umd | ||
noImplicitAny: false, | ||
})) | ||
.pipe(sourcemaps.write()) | ||
.pipe(gulp.dest('js-es5')); | ||
}); | ||
|
||
gulp.task('compile-es6', function() { | ||
gulp.src('ts/**/*.ts') | ||
.pipe(sourcemaps.init()) | ||
.pipe(ts({ | ||
declarationFiles: true, | ||
noExternalResolve: true, | ||
removeComments: false, | ||
target: "es6", | ||
noImplicitAny: false, | ||
})) | ||
.pipe(sourcemaps.write()) | ||
.pipe(gulp.dest('js-es6')); | ||
}); | ||
|
||
gulp.task('minify', function () { | ||
gulp.src('js-es5/**/*.js') | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('js-min')) | ||
.pipe(concat('all.js')) | ||
.pipe(gulp.dest('js-min')); | ||
}); | ||
|
||
gulp.task('build', ['clean', 'compile-es5', 'compile-es6']); | ||
|
||
gulp.task('watch', ['build'], function () { | ||
gulp.watch(['ts/**/*.ts'], ['build']); | ||
}); | ||
|
||
gulp.task('default', ['build']); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.