-
Notifications
You must be signed in to change notification settings - Fork 82
Prepare release archive using composer #224
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
Conversation
renatho
left a comment
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.
Awesome! This will be super helpful! 😃
I tested installing in a clean site and it worked well!
I just added some small suggestions.
Also, probably you noticed it only works with node v10 because of the cgb-scripts right? Maybe we could take this PR opportunity to also add it to the package.json. WDYT?
package.json
Outdated
| "preinstall": "npx npm-force-resolutions" | ||
| "preinstall": "npx npm-force-resolutions", | ||
| "archive": "composer archive --file=$npm_package_name --format=zip", | ||
| "release": "npm run build && npm run archive" |
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 wonder if we could add it as part of the build script too similar to Sensei, so we keep consistency in the scripts between the projects while releasing. WDYT?
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.
Yes, that's a good idea!
renatho
left a comment
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.
🚀
Fixes #147
Changes proposed in this Pull Request
composer.jsonconfig.archiveandreleasescripts fornpm..zipand/vendorto.gitignore.Testing instructions
composer installandnpm installnpm run releasesyntaxhighlighter.zip