Initial steps to adding babel.

This commit is contained in:
JC Brand 2016-12-07 19:13:55 +00:00
parent 2d89589b54
commit e1b745b71f
4 changed files with 16 additions and 0 deletions

9
.babelrc Normal file
View File

@ -0,0 +1,9 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "safari >= 10", "IE 11"]
}
}]
]
}

1
.gitignore vendored
View File

@ -14,6 +14,7 @@ inverse-analytics.js
.idea
eggs
.Python
build
dev-jc.html
inverse-dev.html

View File

@ -34,6 +34,9 @@
"devDependencies": {
"almond": "~0.3.3",
"awesomplete": "^1.1.1",
"babel-cli": "^6.18.0",
"babel-preset-env": "^1.5.2",
"babel-preset-latest": "^6.16.0",
"backbone": "1.3.3",
"backbone.browserStorage": "0.0.3",
"backbone.overview": "0.0.3",
@ -64,6 +67,7 @@
"pluggable.js": "https://github.com/jcbrand/pluggable.js.git#8f8c8235816f44cda0f855d6ca879445aaa486a1",
"po2json": "^0.4.4",
"requirejs": "2.3.3",
"requirejs-babel": "0.0.9",
"run-headless-chromium": "^0.1.1",
"sinon": "^2.1.0",
"snyk": "^1.21.2",

View File

@ -17,10 +17,12 @@ require.config({
paths: {
"almond": "node_modules/almond/almond",
"awesomplete": "node_modules/awesomplete/awesomplete",
"babel": "node_modules/requirejs-babel/babel-5.8.34.min",
"backbone": "node_modules/backbone/backbone",
"backbone.noconflict": "src/backbone.noconflict",
"backbone.browserStorage": "node_modules/backbone.browserStorage/backbone.browserStorage",
"backbone.overview": "node_modules/backbone.overview/backbone.overview",
"es6": "node_modules/requirejs-babel/es6",
"eventemitter": "node_modules/otr/build/dep/eventemitter",
"es6-promise": "node_modules/es6-promise/dist/es6-promise",
"jquery": "node_modules/jquery/dist/jquery",