Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Transform code to es6 #3797

Closed
wants to merge 32 commits into from
Closed

Conversation

gberaudo
Copy link
Member

@gberaudo gberaudo commented Apr 23, 2018

This PR is about moving the code base to ES6 modules and switching to a webpack buildchain.
The Google Closure Compiler buildchain is abandonned (at least for now).

  • make Travis happy;
  • rebase and reaply transform.

karma-conf.js Outdated
@@ -7,7 +7,6 @@ var isDebug = process.argv.some(function(argument) {
});

module.exports = function(config) {
var closureLibPath = 'node_modules/google-closure-library/';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be replace by the webpack version ...

@gberaudo gberaudo force-pushed the transform_code_to_es6_GSGMF-445 branch from 10d61e3 to a4357c0 Compare April 24, 2018 10:20
@ger-benjamin
Copy link
Member

ger-benjamin commented Apr 24, 2018

That's because of this kind of PR that Github statistics are so useless 😅

@gberaudo
Copy link
Member Author

+12,023 −22,632
I am a bit surprised there are 10k lines gone.

@gberaudo gberaudo added this to the 2.3 milestone Apr 24, 2018
@gberaudo gberaudo force-pushed the transform_code_to_es6_GSGMF-445 branch 3 times, most recently from 0db6d89 to 6a7b81f Compare April 25, 2018 06:53
@gberaudo gberaudo force-pushed the transform_code_to_es6_GSGMF-445 branch 2 times, most recently from 64bcbea to 17df57f Compare April 25, 2018 08:44
Use jQuery to synchronize rotation inputs
@gberaudo gberaudo force-pushed the transform_code_to_es6_GSGMF-445 branch from f0baed1 to 01d521d Compare April 25, 2018 12:36
Makefile Outdated
@@ -274,6 +276,15 @@ examples-hosted: \
examples-hosted-gmf \
examples-hosted-apps

.build/examples-hosted/%: .build/node_modules.timestamp $(FONTAWESOME_WEBFONT) $(ANGULAR_LOCALES_FILES)
NODE_ENV=dev TARGET=ngeo-examples node_modules/.bin/webpack --progress
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will run webpack for each examples ...

package.json Outdated
@@ -103,6 +103,7 @@
"walk": "2.3.13",
"webpack": "4.6.0",
"webpack-cli": "2.0.15",
"webpack-dev-server": "^3.1.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use ^

Keep output path for hosted examples
Use a timestamp to track when a build has been done.
Depend on all example files to trigger a new build on any change.
Without this comment, the rule is like ignored.
For unknown reason, OpenLayers needs rbush which needs quickselect which
is not found by webpack without adding it to our package.json.
They work locally on the dev machine.
They fail in Travis at some point.

These Travis issues should not block the migration.
The gmf apps are not yet migrated to webpack
@gberaudo gberaudo force-pushed the transform_code_to_es6_GSGMF-445 branch from 7290332 to dcd77e3 Compare April 26, 2018 07:08
sbrunner added a commit that referenced this pull request Apr 26, 2018
Simplification of Transform code to es6 #3797
@gberaudo gberaudo closed this Apr 26, 2018
@gberaudo gberaudo deleted the transform_code_to_es6_GSGMF-445 branch April 26, 2018 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants