Skip to content

Instantly share code, notes, and snippets.

View unional's full-sized avatar
🏎️
just-web!!!

Homa Wong unional

🏎️
just-web!!!
View GitHub Profile
@unional
unional / typings.js
Created February 2, 2016 18:50
Temp fix for using typings/tsd in jspm module: system environment
// Run this after you update your typings.
const gulp = require('gulp');
const replace = require('gulp-replace');
gulp.task('es6-typings', () => {
var srcPath = 'typings/browser/**/*'; // or 'typings/main/**/*' or 'typings/**/*' if you use `tsd`
gulp.src(srcPath, { base: './' })
.pipe(replace('export =', 'export default'))
.pipe(gulp.dest('./'));
});