-
Notifications
You must be signed in to change notification settings - Fork 174
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
Webpack for LuigiClient #325
Webpack for LuigiClient #325
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, we should probably publish only the transpiled /public
folder, so we need package.json
and readme.md
there as well (look how it's solved in core).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add the client/public
to the lerna.json file.
@@ -2,8 +2,10 @@ | |||
"name": "@kyma-project/luigi-client", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the name of this package. It won't be the @kyma-project/luigi-client
package anymore, the transpiled version will be.
…ebpack-for-Client # Conflicts: # core/examples/luigi-sample-angular/package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment
client/public/README.md
Outdated
|
||
If you want to try Luigi out, see the [examples](https://github.com/kyma-project/luigi/tree/master/core/examples). | ||
|
||
For documentation on Luigi Core, see [Luigi documentation](https://github.com/kyma-project/luigi/tree/master/docs). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can change it to:
For more documentation on Luigi framework, see [Luigi documentation](https://github.com/kyma-project/luigi/tree/master/docs).
because it is not only about Luigi Core. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I get
GET http://localhost:4200/luigi-client/luigi-client.bundle.js net::ERR_ABORTED 404 (Not Found)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docu generation is not working, rest is fine.
client/package.json
Outdated
"scripts": { | ||
"bundle": "webpack --mode production", | ||
"bundle-develop": "webpack --mode development --watch", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"docu": "npm run docu:validate && npm run docu:generate:section", | ||
"docu:generate:new-file": "documentation build luigi-client.js -f md --markdown-toc=false -o ../docs/luigi-client-api.md", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation is not working (path references and some babel errors)
…ebpack-for-Client # Conflicts: # client/luigi-client.js
…ebpack-for-Client # Conflicts: # client/package-lock.json # core/package-lock.json
The output file is now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now we are publishing regular luigi client + bundled luigi client. I don't think that's a good approach.
client/.npmignore
Outdated
@@ -0,0 +1 @@ | |||
/luigi-client.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But.. we want to publish luigi-client.js
. We don't want to publish /src
.
client/package.json
Outdated
@@ -16,6 +16,7 @@ | |||
], | |||
"main": "luigi-client.js", | |||
"scripts": { | |||
"install": "npm run bundle", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this script for?
…ebpack-for-Client # Conflicts: # core/examples/luigi-sample-angular/package-lock.json # core/package-lock.json
…ebpack-for-Client # Conflicts: # core/examples/luigi-sample-angular/package-lock.json # core/examples/luigi-sample-angular/package.json # core/package-lock.json
docs/luigi-client-api.md
Outdated
@@ -205,4 +211,4 @@ This method informs the main application that there are unsaved changes in the c | |||
|
|||
#### Parameters | |||
|
|||
- `isDirty` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** indicates if there are any unsaved changes on the current page or in the component | |||
- `isDirty` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** tells if there are any unsaved changes on the current page or component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert to the original version in the js file:
`isDirty` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** indicates if there are any unsaved changes on the current page or in the component
* Bundle LuigiClient with Babel * Bump luigi-client version * Update documentation * remove object.assign polyfill * Update path in external views * Update package-locks & gitignore * Make only bundled version to be published on NPM
Description
lerna bootstrap
required in/client
Changes proposed in this pull request:
preset-env
npm run bundle
andnpm run bundle-develop
Related issue(s)