Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

Commit 2280f66

Browse files
committed
Add gulpfile to build lib (#11)
1 parent 872550b commit 2280f66

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

gulpfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const gulp = require('gulp');
2+
const babel = require('gulp-babel');
3+
4+
gulp.task('build', () => {
5+
return gulp.src('src/react-tree.js')
6+
.pipe(babel({
7+
presets: ['es2015', 'react']
8+
}))
9+
.pipe(gulp.dest('lib'));
10+
});

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "./lib/react-tree.js",
66
"scripts": {
77
"start": "webpack-dev-server --port=3000",
8-
"test": "jest"
8+
"test": "jest",
9+
"build": "gulp build"
910
},
1011
"repository": {
1112
"type": "git",
@@ -37,12 +38,12 @@
3738
"gulp": "^3.9.1",
3839
"gulp-babel": "^6.1.2",
3940
"jest-cli": "^14.1.0",
40-
"jstree": "^3.3.1",
4141
"react-addons-test-utils": "^15.3.0",
4242
"webpack": "^1.13.1",
4343
"webpack-dev-server": "^1.14.1"
4444
},
4545
"dependencies": {
46+
"jstree": "^3.3.1",
4647
"react": "^15.3.0",
4748
"react-dom": "^15.3.0"
4849
},

0 commit comments

Comments
 (0)