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

Switch to npm scripts #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Switch to npm scripts #37

wants to merge 1 commit into from

Conversation

BronsonQuick
Copy link
Member

Fixes #36.

Copy link
Collaborator

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

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

The NPM scripts haven't been back-ported as yet (I believe there are plans to) so this will fail if a user has an existing checkout of WordPress Develop 5.1 or earlier.

Let's hold off on this until the code is backported.

@BronsonQuick
Copy link
Member Author

How about I update it and see if I can do a version check to handle both? The provision failed for me as build --dev wouldn't work for me

@peterwilsoncc
Copy link
Collaborator

Confirmed this.

npm install is not including devDependencies during provisioning, which is what includes grunt.

I'm not sure why, whether something has changed in Core, NODE_ENV is set to production or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use npm scripts instead of grunt
2 participants