-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update Package Generator for NIM. #166
base: master
Are you sure you want to change the base?
Conversation
…thods of installations.
…o-legacy-templates Fix (generator): Allow to build plugin with potentially used external `ckeditor5-premium-features`. Closes #000.
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.
The build:dist
script in non-legacy TS package using yarn shows some kind of warning:
$ yarn run build:dist
yarn run v1.22.19
$ node ./scripts/build-dist.mjs
1/2: Generating NPM build...
2/2: Generating browser build...
No name was provided for external module "ckeditor5" in "output.globals" – guessing "ckeditor5".
Done in 5.36s.
Other than that, everything seems to work properly.
@@ -0,0 +1,16 @@ | |||
/** |
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.
This is JSON file, not JSON with comments. Should this comment be here? Perhaps we could change the format? That might require some additional packages though. Consider moving such comments to README.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.
Will remove it from here and will mention about it in docs for package-generator
and in migration guide.
@@ -68,7 +71,7 @@ function copyTemplate( templatePath, packagePath, data ) { | |||
|
|||
const processedTemplatePath = templatePath | |||
// Remove sub-directory inside templates to merge results into one directory. | |||
.replace( /^(?:common|js|ts)(?:\\|\/)/, '' ) | |||
.replace( /^(?:common|js|ts|legacy-js|legacy-ts)(?:\\|\/)/, '' ) |
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.
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.
Fully agree. Addressed in 9b05427
Co-authored-by: przemyslaw-zan <69513154+przemyslaw-zan@users.noreply.github.com>
Yes, it's on out todo list to fix in |
…o keys: 'module' and 'exports'.
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.
LGTM 👍
…--without-legacy-methods' will be generate package with only NIM support.
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.
I think we should rename the cli option, to something like:
--without-legacy-methods
=> --use-new-installation-methods
The changes work as expected! 🎉
@przemyslaw-zan we decided to name the flag |
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.
LGTM 👍
Changes from this branch have been released: https://github.com/ckeditor/ckeditor5-package-generator/releases/tag/v2.0.0-alpha.0. |
Suggested merge commit message (convention)
Feature (generator): New flag
--use-only-new-installation-methods
that should allow to generate package without support for DLLs. See ckeditor/ckeditor5#15502, ckeditor/ckeditor5#15739ℹ️ After approved review we would like to release alpha version - to make it available for tests. ℹ️
Additional information
ckeditor5
andckeditor5-premium-features
are usingnightly
,Supported scopes
generator
→ https://www.npmjs.com/package/ckeditor5-package-generator*
→ https://www.npmjs.com/package/@ckeditor/ckeditor5-package-*