Skip to content

Commit

Permalink
First commit, most of it coming from the typescript-tidbits repositor…
Browse files Browse the repository at this point in the history
…y. The Fween class is still ES6-ified.
  • Loading branch information
zeh committed Aug 15, 2015
0 parents commit 11bb802
Show file tree
Hide file tree
Showing 17 changed files with 2,935 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.tscache
node_modules
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fween
55 changes: 55 additions & 0 deletions gulpfile.js
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']);
62 changes: 62 additions & 0 deletions js-es5/signals/SimpleSignal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 11bb802

Please sign in to comment.