Skip to content

Conversation

@merkushin
Copy link
Contributor

Fixes #147

Changes proposed in this Pull Request

  • Adds composer.json config.
  • Adds archive and release scripts for npm.
  • Adds .zip and /vendor to .gitignore.

Testing instructions

  • Run composer install and npm install
  • Run npm run release
  • Chech directory for the syntaxhighlighter.zip

@merkushin merkushin added the [Type] Maintenance Changes to non-production files label Nov 18, 2021
@merkushin merkushin added this to the 3.6.1 milestone Nov 18, 2021
@merkushin merkushin requested a review from renatho November 18, 2021 13:30
@merkushin merkushin self-assigned this Nov 18, 2021
Copy link
Contributor

@renatho renatho left a 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"
Copy link
Contributor

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?

Copy link
Contributor Author

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!

@merkushin merkushin requested a review from renatho November 19, 2021 10:25
Copy link
Contributor

@renatho renatho left a comment

Choose a reason for hiding this comment

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

🚀

@merkushin merkushin merged commit 971daf5 into master Nov 19, 2021
@merkushin merkushin deleted the add/release-archive-preparation branch November 19, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Maintenance Changes to non-production files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create package script for deploys

3 participants