-
Notifications
You must be signed in to change notification settings - Fork 187
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
move commands to yarn #1
Conversation
# End of https://www.gitignore.io/api/node | ||
|
||
packages/examples/*/yarn.lock | ||
packages/examples/*/package-lock.json |
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.
we didn't have lockfiles in the old example apps, so I figured we shouldn't here either
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.
That would mean the entire monorepo wouldn't have a lockfile? That makes me a little nervous. Does this .gitignore get applied to all example apps?
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.
nope, the monorepo itself will still have a lockfile checked in! this only affects stuff down in the examples
directory, where we don't want to push users either way.
"add": "git add exported-schema.json README.md docs", | ||
"precommit": "npm run build && npm run add && lint-staged" | ||
"build": "yarn docs && yarn export", | ||
"git-add": "git add exported-schema.json README.md docs", |
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.
this is the only command that actually changed names
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.
# End of https://www.gitignore.io/api/node | ||
|
||
packages/examples/*/yarn.lock | ||
packages/examples/*/package-lock.json |
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.
That would mean the entire monorepo wouldn't have a lockfile? That makes me a little nervous. Does this .gitignore get applied to all example apps?
"scripts": { | ||
"preversion": "git pull && npm test", | ||
"version": "node bin/bump-dependencies.js && npm install && git add package.json package-lock.json", | ||
"version": | ||
"node bin/bump-dependencies.js && npm install && git add package.json package-lock.json", |
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.
Do we want to use yarn
in this script?
"/lib/**/*.js", | ||
"/schema.js" | ||
], | ||
"files": ["/exported-schema.json", "/lib/**/*.js", "/schema.js"], | ||
"scripts": { | ||
"preversion": "git pull && npm test", |
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.
Should we use yarn test
?
Re the multiple lock files, there should only be one at the root of the project (cf. Yarn workspaces). I'm not exactly sure how Yarn behaves with one lock file per workspace. |
Swap commands to use
yarn
instead ofnpm
.the only substantive change here is that instances of
npm run x
have swapped toyarn x
. There's also one command that's been renamed since it conflicts with the already existingyarn add
.