Skip to content

Commit

Permalink
fix: remove es6
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Dec 16, 2016
1 parent 937ac03 commit a97f338
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 2,337 deletions.
4 changes: 0 additions & 4 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ npm install;

### Develop

> Code in .es6 files
### Validate

> Build
```sh
Expand Down
41 changes: 2 additions & 39 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
var gulp = require('gulp')
var fs = require('fs')
var sourcemaps = require('gulp-sourcemaps')
var babel = require('gulp-babel')
var standard = require('gulp-standard')

// primary tasks
gulp.task('predev', ['setupDev', 'babel', 'lint'])
gulp.task('prerelease', ['setupNpm', 'babel', 'lint'])
gulp.task('predev', ['setupDev', 'lint'])
gulp.task('prerelease', ['setupNpm', 'lint'])
gulp.task('lint', ['standard'])

// secondary tasks
Expand Down Expand Up @@ -117,39 +116,3 @@ function emitFiles (path) {
ret.push('')
return ret
}

// --------------------------------------------------
// Babel
// --------------------------------------------------
gulp.task('babel', babelTasks)

var babelTasks = []
function babelize (taskName, dir) {
// copy resources and compile es6 from corresponding directories
// list of all babel tasks so we can build all of them

babelTasks.push(taskName + '-babel')
if (!dir) {
dir = taskName
}
var srcDir = dir + '.es6/'
var srcPattern = dir + '.es6/**/*.js'
var destDir = dir + '/'
gulp.task(taskName + '-copy', function () {
return gulp.src(srcDir + '**/*.*').pipe(gulp.dest(destDir))
})
gulp.task(taskName + '-babel', [ taskName + '-copy' ], function () {
return gulp.src(srcPattern)
.pipe(sourcemaps.init())
.pipe(babel({
presets: [ 'es2015', 'stage-2' ]
}))
.pipe(gulp.dest(destDir))
})
}

babelize('hooks')
babelize('www')
babelize('tests')
babelize('testbed', 'testbed/www/js')

79 changes: 0 additions & 79 deletions hooks.es6/afterPrepareHook.js

This file was deleted.

97 changes: 0 additions & 97 deletions hooks.es6/beforePluginInstallHook.js

This file was deleted.

78 changes: 0 additions & 78 deletions hooks.es6/iosBeforePrepareHook.js

This file was deleted.

Loading

0 comments on commit a97f338

Please sign in to comment.