Skip to content

Commit

Permalink
chore: setup browserify and babel
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Cejudo committed Apr 1, 2016
1 parent e1fcd45 commit ba3d9d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

'use strict';

require("babel-es6-polyfill/polyfill");

const Modelico = require('./src/Modelico');
const ModelicoPrimitive = require('./src/Primitive');
const ModelicoMap = require('./src/Map');
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "Serialisable model classes",
"main": "index.js",
"scripts": {
"test": "gulp test"
"test": "gulp test",
"prebuild": "rm -rf dist && mkdir dist",
"build": "browserify index.js -t babelify -o dist/modelico.js",
"version": "npm run build && git add -A dist"
},
"repository": {
"type": "git",
Expand All @@ -21,6 +24,11 @@
},
"homepage": "https://github.com/javiercejudo/modelico#readme",
"devDependencies": {
"babel-es6-polyfill": "^1.0.1",
"babel-polyfill": "^6.7.4",
"babel-preset-es2015": "^6.6.0",
"babelify": "^7.2.0",
"browserify": "^13.0.0",
"gulp": "^3.9.0",
"gulp-coverage": "^0.3.38",
"gulp-coveralls": "^0.1.4",
Expand Down

0 comments on commit ba3d9d8

Please sign in to comment.