-
Notifications
You must be signed in to change notification settings - Fork 23
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
Upgrade grunt to 10up-toolkit #97
Conversation
Converting to draft as it needs improvement in push-deploy GitHub Action: change .gitattributes to .distignore workflow |
The deploy process was tested with command:
@peterwilsoncc this is ready to review now |
@cadic looks like a merge conflict that needs to be resolved. @peterwilsoncc pinging you for reminder on code review here... thanks! |
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've added a few notes, the code looks good so it's mainly defensive development to protect ourselves against future errors.
Are you able to resolve the merge conflicts while making any changes?
@@ -0,0 +1,30 @@ | |||
# Directories to ignore |
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.
My understanding of the 10up WP.org deploy actions is that it observes export-ignore
from the git attributes file if it is set. Is this needed too?
This is absolutely a question rather than a passive aggressive change request!! I'm still learning about the deploy actions.
@@ -2,8 +2,11 @@ | |||
/.git export-ignore | |||
/.github export-ignore | |||
/.wordpress-org export-ignore | |||
/assets export-ignore |
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.
✅ Plugin repo guideline four (readable code) met by inclusion of the link to the GitHub repo.
@cadic some feedback for you here, if you're not able to get to this please ping the OSP for someone else to pick this up and help finish it off... thanks! |
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
…ering into change/10up-toolkit
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.
Looks good to me, thank you!
Manual testing passed.
Description of the Change
This PR changes the build tool from grunt to https://github.com/10up/10up-toolkit
dist
(added to .gitignore)npm run build
,npm run dev
andnpm run makepot
cypress
andpush-deploy
workflows to include the build stepCloses #79
Possible Drawbacks
1
Keep attention to the push-deploy GitHub Actions workflow. Before this change, compiled assets were hold in the repository and was ready to deploy without any additional steps. After this change, a build step is required.
2
Before this change, the
SCRIPT_DEBUG
php constant was used to force enqueueing the source JS. After this change, thenpm run dev
command starts the watch process, saves the debugging version of the JS and CSS files with sourcemaps. No additional setup needed for assets debugging.Verification Process
npm install
npm run build
dist
and pot file inlocalization
The push-deploy workflow was tested with a set of commands:
The resulting trunk folder contain the correct list of files.
Checklist:
Changelog Entry
Credits
Props @cadic