Commit 93334156 authored by JC Brand's avatar JC Brand

Builds are now created from babel transpiled code

Except for the esnext builds, which use the original code.

Fixes #866
parent 40e7ee1a
# Changelog # Changelog
## 3.1.0 ((2017-07-05)) ## 3.2.0 (Unreleased)
- #866 Add babel in order to support ES2015 syntax
## 3.1.0 (2017-07-05)
### API changes ### API changes
- Deprecate the `updateSettings` method in favour of - Deprecate the `updateSettings` method in favour of
......
...@@ -150,7 +150,11 @@ watch: stamp-bundler ...@@ -150,7 +150,11 @@ watch: stamp-bundler
.PHONY: watchjs .PHONY: watchjs
watchjs: stamp-npm watchjs: stamp-npm
$(BABEL) --source-maps --watch=./src --out-dir=./build $(BABEL) --source-maps --watch=./src --out-dir=./builds
.PHONY: transpile
transpile: stamp-npm
$(BABEL) --source-maps --out-dir=./builds ./src
BUILDS = dist/converse.js \ BUILDS = dist/converse.js \
dist/converse.min.js \ dist/converse.min.js \
...@@ -169,6 +173,14 @@ dist/converse.min.js: src locale node_modules *.js ...@@ -169,6 +173,14 @@ dist/converse.min.js: src locale node_modules *.js
$(RJS) -o src/build.js include=converse out=dist/converse.min.js $(RJS) -o src/build.js include=converse out=dist/converse.min.js
dist/converse.js: src locale node_modules *.js dist/converse.js: src locale node_modules *.js
$(RJS) -o src/build.js include=converse out=dist/converse.js optimize=none $(RJS) -o src/build.js include=converse out=dist/converse.js optimize=none
dist/converse-esnext.min.js: src locale node_modules *.js transpile
$(RJS) -o src/build-esnext.js include=converse out=dist/converse-esnext.min.js
dist/converse-esnext.js: src locale node_modules *.js transpile
$(RJS) -o src/build-esnext.js include=converse out=dist/converse-esnext.js optimize=none
dist/inverse-esnext.js: src locale node_modules *.js
$(RJS) -o src/build-inverse-esnext.js include=inverse out=dist/inverse-esnext.js optimize=none
dist/inverse-esnext.min.js: src locale node_modules *.js
$(RJS) -o src/build-inverse-esnext.js include=inverse out=dist/inverse-esnext.min.js
dist/inverse.js: src locale node_modules *.js dist/inverse.js: src locale node_modules *.js
$(RJS) -o src/build-inverse.js include=inverse out=dist/inverse.js optimize=none $(RJS) -o src/build-inverse.js include=inverse out=dist/inverse.js optimize=none
dist/inverse.min.js: src locale node_modules *.js dist/inverse.min.js: src locale node_modules *.js
......
...@@ -2,6 +2,28 @@ ...@@ -2,6 +2,28 @@
baseUrl: "../", baseUrl: "../",
name: "almond", name: "almond",
mainConfigFile: 'config.js', mainConfigFile: 'config.js',
paths: {
"converse-bookmarks": "builds/converse-bookmarks",
"converse-chatview": "builds/converse-chatview",
"converse-controlbox": "builds/converse-controlbox",
"converse-core": "builds/converse-core",
"converse-dragresize": "builds/converse-dragresize",
"converse-headline": "builds/converse-headline",
"converse-inverse": "builds/converse-inverse",
"converse-mam": "builds/converse-mam",
"converse-minimize": "builds/converse-minimize",
"converse-muc": "builds/converse-muc",
"converse-muc-embedded": "builds/converse-muc-embedded",
"converse-notification": "builds/converse-notification",
"converse-otr": "builds/converse-otr",
"converse-ping": "builds/converse-ping",
"converse-register": "builds/converse-register",
"converse-roomslist": "builds/converse-roomslist",
"converse-rosterview": "builds/converse-rosterview",
"converse-singleton": "builds/converse-singleton",
"converse-vcard": "builds/converse-vcard",
"utils": "builds/utils"
},
wrap: { wrap: {
startFile: "start.frag", startFile: "start.frag",
endFile: "inverse-end.frag" endFile: "inverse-end.frag"
......
...@@ -38,6 +38,28 @@ ...@@ -38,6 +38,28 @@
"otr", "otr",
"lodash" "lodash"
], ],
paths: {
"converse-bookmarks": "builds/converse-bookmarks",
"converse-chatview": "builds/converse-chatview",
"converse-controlbox": "builds/converse-controlbox",
"converse-core": "builds/converse-core",
"converse-dragresize": "builds/converse-dragresize",
"converse-headline": "builds/converse-headline",
"converse-inverse": "builds/converse-inverse",
"converse-mam": "builds/converse-mam",
"converse-minimize": "builds/converse-minimize",
"converse-muc": "builds/converse-muc",
"converse-muc-embedded": "builds/converse-muc-embedded",
"converse-notification": "builds/converse-notification",
"converse-otr": "builds/converse-otr",
"converse-ping": "builds/converse-ping",
"converse-register": "builds/converse-register",
"converse-roomslist": "builds/converse-roomslist",
"converse-rosterview": "builds/converse-rosterview",
"converse-singleton": "builds/converse-singleton",
"converse-vcard": "builds/converse-vcard",
"utils": "builds/utils"
},
wrap: { wrap: {
startFile: "start.frag", startFile: "start.frag",
endFile: "end-no-dependencies.frag" endFile: "end-no-dependencies.frag"
......
...@@ -2,6 +2,28 @@ ...@@ -2,6 +2,28 @@
baseUrl: "../", baseUrl: "../",
name: "almond", name: "almond",
mainConfigFile: 'config.js', mainConfigFile: 'config.js',
paths: {
"converse-bookmarks": "builds/converse-bookmarks",
"converse-chatview": "builds/converse-chatview",
"converse-controlbox": "builds/converse-controlbox",
"converse-core": "builds/converse-core",
"converse-dragresize": "builds/converse-dragresize",
"converse-headline": "builds/converse-headline",
"converse-inverse": "builds/converse-inverse",
"converse-mam": "builds/converse-mam",
"converse-minimize": "builds/converse-minimize",
"converse-muc": "builds/converse-muc",
"converse-muc-embedded": "builds/converse-muc-embedded",
"converse-notification": "builds/converse-notification",
"converse-otr": "builds/converse-otr",
"converse-ping": "builds/converse-ping",
"converse-register": "builds/converse-register",
"converse-roomslist": "builds/converse-roomslist",
"converse-rosterview": "builds/converse-rosterview",
"converse-singleton": "builds/converse-singleton",
"converse-vcard": "builds/converse-vcard",
"utils": "builds/utils"
},
wrap: { wrap: {
startFile: "start.frag", startFile: "start.frag",
endFile: "end.frag" endFile: "end.frag"
......
...@@ -22,7 +22,6 @@ require.config({ ...@@ -22,7 +22,6 @@ require.config({
"backbone.noconflict": "src/backbone.noconflict", "backbone.noconflict": "src/backbone.noconflict",
"backbone.browserStorage": "node_modules/backbone.browserStorage/backbone.browserStorage", "backbone.browserStorage": "node_modules/backbone.browserStorage/backbone.browserStorage",
"backbone.overview": "node_modules/backbone.overview/backbone.overview", "backbone.overview": "node_modules/backbone.overview/backbone.overview",
"es6": "node_modules/requirejs-babel/es6",
"eventemitter": "node_modules/otr/build/dep/eventemitter", "eventemitter": "node_modules/otr/build/dep/eventemitter",
"es6-promise": "node_modules/es6-promise/dist/es6-promise", "es6-promise": "node_modules/es6-promise/dist/es6-promise",
"jquery": "node_modules/jquery/dist/jquery", "jquery": "node_modules/jquery/dist/jquery",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment