Skip to content

Commit

Permalink
added cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
avigoldman committed Oct 25, 2017
1 parent c21ed8e commit 04f152c
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 23 deletions.
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'
// Inspired by https://github.com/babel/minify/blob/master/gulpfile.babel.js

const del = require('del')
const through = require('through2')
const newer = require('gulp-newer')
const babel = require('gulp-babel')
Expand All @@ -11,6 +12,7 @@ const path = require('path')
const { cyan } = util.colors

const scripts = './packages/*/src/**/*.js'
const builds = './packages/*/build'
const dest = 'packages'

let srcEx, libFragment
Expand Down Expand Up @@ -45,3 +47,7 @@ gulp.task('build', build)
gulp.task('watch', ['build'], function () {
gulp.watch(scripts, { debounceDelay: 200 }, build)
})

gulp.task('clean', () => {
return del(builds)
})
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "0.0.0"
"version": "1.0.0"
}
68 changes: 48 additions & 20 deletions package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
"scripts": {
"lint": "standard 'packages/**/src/**/*.js' --fix",
"precommit": "npm run lint",
"build": "gulp build",
"watch": "gulp watch"
"bootstrap": "lerna bootstrap",
"clean": "gulp clean && lerna clean --yes",
"build": "gulp build",
"watch": "gulp watch",
"publish": "npm run lint && npm run build && lerna publish"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand All @@ -13,6 +16,7 @@
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-babel": "^7.0.0",
"gulp-newer": "^1.3.0",
Expand Down

0 comments on commit 04f152c

Please sign in to comment.