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

Luigi config meets es6 #313

Merged
merged 42 commits into from
Jan 21, 2019
Merged

Conversation

parostatkiem-zz
Copy link
Contributor

@parostatkiem-zz parostatkiem-zz commented Jan 3, 2019

Description

Important: lerna bootstrap in luigi-sample-angular folder is necessary!

If you would like to test setup commands or scripts, you have to replace for an obvious reason

https://raw.githubusercontent.com/kyma-project/Luigi/master/core/examples/luigi-sample-angular/src/luigi-config/basic/basicConfiguration.js

with

https://raw.githubusercontent.com/parostatkiem/luigi/Luigi-config-meets-ES6/core/examples/luigi-sample-angular/src/luigi-config/basic/basicConfiguration.js

Vue and OpenUI setup scripts will be fixed by #322, then immidiately updated by #341 to work with the changes from this PR.

Changes proposed in this pull request:

  • Bundle and watch for changes in configuration file with starting Angular example
  • Create separate Webpack config file for transpiling Luigi config files and make it using Babel with preset-env + class-properties plugin (important!)
  • Rewrite extendedConfiguration.js using ES6 + class properties and split it into few files
  • Add non-framework and Angular setup scripts
  • Update above setup steps in readme

Related issue(s)

#268
#323

@maxmarkus maxmarkus added the WIP Work in progress label Jan 11, 2019
…uigi-config-meets-ES6

# Conflicts:
#	core/examples/luigi-sample-angular/package-lock.json
#	core/examples/luigi-sample-angular/src/assets/extendedConfiguration.js
@parostatkiem-zz parostatkiem-zz removed the WIP Work in progress label Jan 14, 2019
…uigi-config-meets-ES6

# Conflicts:
#	core/examples/luigi-sample-angular/src/assets/extendedConfiguration.js
@y-kkamil
Copy link

y-kkamil commented Jan 16, 2019

following new step-by-step Angular 6 guide results in a page with an error Ups.. Looks like Luigi was not configured. Please use Luigi.setConfig(config) function to configure Luigi. being served.
it tries to fetch:
GET http://localhost:4200/assets/extendedConfiguration.bundle.js net::ERR_ABORTED 404 (Not Found)
but the file is not present.

EDIT: the same goes for no-framework guide - Luigi tries to fetch extendedConfiguration.bundle.js, but it is not generated.

Am I missing something?

EDIT: nevermind, i must have done something wrong, it works now!

docs/application-setup.md Outdated Show resolved Hide resolved
docs/application-setup.md Outdated Show resolved Hide resolved
…uigi-config-meets-ES6

# Conflicts:
#	core/examples/luigi-sample-angular/package-lock.json
#	core/examples/luigi-sample-angular/src/assets/extendedConfiguration.js
…uigi-config-meets-ES6

# Conflicts:
#	core/examples/luigi-sample-angular/package-lock.json
Copy link
Contributor

@bszwarc bszwarc left a comment

Choose a reason for hiding this comment

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

minor changes

docs/application-setup.md Show resolved Hide resolved
docs/application-setup.md Outdated Show resolved Hide resolved
parostatkiem-zz and others added 3 commits January 18, 2019 12:48
…uigi-config-meets-ES6

# Conflicts:
#	core/examples/luigi-sample-angular/src/assets/extendedConfiguration.js
Co-Authored-By: parostatkiem <jansudczak@gmail.com>
@maxmarkus maxmarkus merged commit c50fce3 into SAP:master Jan 21, 2019
@parostatkiem-zz parostatkiem-zz deleted the Luigi-config-meets-ES6 branch February 5, 2019 08:27
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
* Create fully-functional es6 transpiling
* Modularize config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants