Skip to content

Commit cefa740

Browse files
committed
Add build
1 parent 37b99df commit cefa740

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/node_modules/
22
.DS_Store
33
npm-debug.log
4+
build/
5+
coverage/

gulpfile.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
var gulp = require('gulp')
2+
3+
gulp.task('clean', function () {
4+
var del = require('del')
5+
return del('build')
6+
})
7+
8+
gulp.task('scripts', ['clean'], function () {
9+
return gulp.src(['lib/**/*', 'hookRequire.js', 'index.js'], { base: process.cwd() })
10+
.pipe(gulp.dest('build'))
11+
})
12+
13+
gulp.task('docs', ['clean'], function () {
14+
return gulp.src(['README.md', 'LICENSE', 'package.json'])
15+
.pipe(gulp.dest('build'))
16+
})
17+
18+
gulp.task('build', ['scripts', 'docs'])
19+
20+
gulp.task('default', ['build'])
21+

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"postcss": "^5.0.10"
2626
},
2727
"devDependencies": {
28+
"del": "^2.0.2",
29+
"gulp": "^3.9.0",
2830
"tap": "^2.2.0"
2931
}
3032
}

0 commit comments

Comments
 (0)