Closed contolini closed 5 years ago
any testing instructions?
Yeah, I'll paste some here after I do a sanity check on the FEWD bi-weekly.
Hey look, I finally rebased this branch and added testing instructions! Nice job @contolini!
After this is merged I'd like to do a few test patch releases to kick the tires and confirm lerna-changelog
works how we expect. I'll record the process and add the video to our docs.
Snyk can be ignored because it's looking for the manifests in /src/
and not /packages/
. Once master is updated we'll need to delete and re-add the repo to snyk to have it pick up the new paths.
@contolini Can you tell me how to see what the generated changelog will look like?
There's a lot of repeated content in each package's meta files (CONTRIBUTING
, LICENSE
, README
, TERMS
, etc.). Are those generated from a single source and then checked in in this PR? If not, can they be?
Can you tell me how to see what the generated changelog will look like?
Unfortunately lerna-changelog
uses GH PR titles so I haven't been able to test it on this repo until we merge this PR. You can see the format over in bapital's changelog.
There's a lot of repeated content in each package's meta files (
CONTRIBUTING
,LICENSE
,README
,TERMS
, etc.). Are those generated from a single source and then checked in in this PR? If not, can they be?
This was intentional because I wanted to remove all "magic" from the publishing process. Each package exists in this repo exactly as it does in npm (and thus other project's node_modules/
directories). We rarely, if ever, update the above files so I didn't see it necessary to automate their creation. We can automate it later if it proves to be helpful. We'll likely want to implement other automation steps (like Travis publishing) down the road.
Adds Lerna for monorepo management and Yarn for it's neato workspaces and caching features.
Check out the contributing docs to see how these changes affect CF development. Spoiler alert: The only thing you'll have to do differently is remember to use
yarn
instead ofnpm
.Notable Changes
src/
directory in the project's root has been renamed topackages/
.package-lock.json
. Node modules are cached in the git repo.Testing
rm -rf node_modules/
to ensure you're starting with a clean slate.yarn
to install (no morenpm install
)yarn test
to confirm the tests pass as normal.yarn run cf-link
to link all the components/packages/cf-core/src/cf-vars.less
and set the text color on line 13 to something silly likered
.cd ~/wherever/cfgov-refresh
yarn link cf-core
gulp clean && gulp build
cf-core
.Unanswered questions