-
Notifications
You must be signed in to change notification settings - Fork 16
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
chore: use newspack-scripts #286
Conversation
@miguelpeixe I could use your help with a build error that I'm encountering with this branch. After installing
Removing the
It's either one or the other. How do we resolve this conflict so we can both build and lint? |
@miguelpeixe would 53f1d85 fix it? Since we're bundling prebid files with their own separate entrypoint, if we only apply the prebid.js Babel presets and plugins to that entrypoint, would that keep things separate enough? This change lets me both build and lint successfully, and things seem to still run okay. UPDATE: Confirmed that this does not fix the issue. From Miguel:
Reverted 53f1d85. |
ccb6835
to
a2f2369
Compare
Rebased this branch, so please re-pull from the remote. In order to avoid these errors, we're not using the instance of |
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.
Don't know exactly why, but commitlint
is not being installed:
$ git commit -m "message"
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
.git/hooks/commit-msg: line 3: ./node_modules/.bin/commitlint: No such file or directory
Scratch that, I think we were missing a commitlint config file. 6cd7025 adds that—any luck now? |
Using The commit command is working now but it's also allowing me to commit with an unstructured commit message. Is your hook working properly? |
Confirmed—the hook is not running. The following also outputs nothing:
Updating
So we may as well use |
cc @adekbadek in case you have some insight here, too. |
There's a solution to resolve the conflict between I sent a PR with the fix. Meanwhile, I believe we should keep our own copy of this small babel plugin. WDYT @adekbadek @dkoo ? |
|
I can confirm that @miguelpeixe's fix with the local |
Adding a fix for Automattic/newspack-scripts#50 in 1dcb33e |
9b680d6 should resolve the |
🎉 This PR is included in version 1.26.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.26.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Update CI images and use
newspack-scripts
as implemented in Automattic/newspack-plugin#1368 and https://github.com/Automattic/newspack-new-plugin-boilerplate/pull/3.Also implements Dependabot, which was somehow missed during our last round adding it to all Newspack repos.
How to test the changes in this Pull Request:
npm start
(this is an alias fornpm ci && npm run watch
)npm run build
npm run lint:js
npm run lint:scss
npm run cm
– a prompt for a structured commit message should appear, just line on mastercommit-msg
hook does lint the commit message:composer install
git commit -m "hehe"
) and observe it failing.