automattic / newspack-scripts Goto Github PK
View Code? Open in Web Editor NEWTooling for Newspack
Tooling for Newspack
Due to issue with dependency resolving, you might end up a different version of prettier
in project's node_modules
and node_modules/newspack-scripts/node_modules
.
To fix this and make newspack-scripts
use to "root" version of prettier
, remove the offending prettier
version in a postinstall
hook script:
"postinstall": "rm -rf node_modules/newspack-scripts/node_modules/prettier"
This might be caused by version resolving being thrown off by aliasing prettier
to wp-prettier
as npm:[email protected]
.
Technically it seems like the overrides
option should take care of that, but I did not have any luck with using it.
The post-release script tries to determine if the release if a hotfix, or a regular release.
alpha
branch will be updated with the latest (hotfix) release, so that it contains both what was on alpha
and the hotfixalpha
-> release
), the alpha
branch will be reset on top of release
, to provide a clean slate for next alpha releaseThe detection does not seem to work, though - see this post-release run.
Also, perhaps related: the post-release master
sync (so that the master
branch has the latest version numbers in package.json
and other files) resulted in alpha version being merged โ Automattic/newspack-plugin@4a9c3fc
The post-fix merge is too aggressive. The assumption behind it is that the changes on master
are already on release
, and so a --strategy-option=theirs
(a "force our changes" merge) is ok.
However, if the changes on release
are from a hotfix, that is directly commited (not from master
, via alpha
, as is the usual way), the delta will be different โ and if a file was both
master
after last releasethen the post-release merge will overwrite the changes from master
. Example.
The post-release script should
master
package.json
etc) from release
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.