Permalink
Browse files

feat(build): es modules (#201)

  • Loading branch information...
Shyam-Chen authored and jayphelps committed Feb 20, 2017
1 parent 72fc194 commit c4318ecb1798961bfe00346716a27d935c6ae9a7
Showing with 24 additions and 3 deletions.
  1. +17 −0 gulpfile.babel.js
  2. +7 −3 package.json
@@ -0,0 +1,17 @@
import gulp from 'gulp';
import babel from 'gulp-babel';

gulp.task('build:es', () => {
gulp.src('src/**/*.js')
.pipe(babel({
babelrc: false,
presets: [
['es2015', { modules: false }]
],
plugins: [
'transform-function-bind',
'transform-object-rest-spread'
]
}))
.pipe(gulp.dest('lib/es'));
});
@@ -2,11 +2,13 @@
"name": "redux-observable",
"version": "0.13.0",
"description": "RxJS based middleware for Redux. Compose and cancel async actions and more.",
"main": "lib/index.js",
"module": "lib/es/index.js",
"main": "lib/cjs/index.js",
"scripts": {
"lint": "eslint src && eslint test",
"build": "npm run build:cjs && npm run build:umd && npm run build:umd:min",
"build:cjs": "babel src -d lib",
"build": "npm run build:es && npm run build:cjs && npm run build:umd && npm run build:umd:min",
"build:es": "gulp build:es",
"build:cjs": "babel src -d lib/cjs",
"build:umd": "cross-env NODE_ENV=development webpack src/index.js dist/redux-observable.js",
"build:umd:min": "cross-env NODE_ENV=production webpack src/index.js dist/redux-observable.min.js",
"build:tests": "rm -rf temp && babel test -d temp",
@@ -89,6 +91,8 @@
"gitbook-plugin-github": "^3.0.0",
"gitbook-plugin-prism": "^2.0.1",
"gitbook-plugin-theme-default": "^1.0.5",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"json-server": "^0.9.0",
"mocha": "^3.0.1",
"redux": "^3.5.2",

0 comments on commit c4318ec

Please sign in to comment.