-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2148 from ably/npm-to-yarn-1.x
chore: migrate npm to Yarn 1 for inter-repo package manager consistency
- Loading branch information
Showing
18 changed files
with
18,367 additions
and
61,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
|
||
npm install | ||
yarn | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
npm run lint-staged | ||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ruby 3.0.0 | ||
nodejs 18.12.0 | ||
yarn 1.22.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ This is a static site generated using [Gatsby](https://www.gatsbyjs.com/) and do | |
|
||
## Run | ||
|
||
Install node & npm. | ||
Install node & yarn. | ||
|
||
If you use [ASDF](https://github.com/asdf-vm/asdf) or compatible tooling to manage your Ruby runtime versions, we have included a [`.tool-versions`](.tool-versions) file - where the dependencies within can be installed with `asdf install` from the project root. | ||
|
||
|
@@ -24,37 +24,35 @@ brew install [email protected] | |
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])" asdf install ruby | ||
``` | ||
|
||
Note that if you `brew install`ed your asdf installation instead of `git clone`ing it, npm [may not be installed correctly](https://youtrack.jetbrains.com/issue/WEB-51052). | ||
|
||
`npm i` | ||
`yarn` | ||
|
||
If Gatsby CLI is not already installed: | ||
|
||
`npm install -g gatsby-cli` | ||
`yarn global add gatsby-cli` | ||
|
||
**Environment variables setup** | ||
|
||
If you have not yet [set up your local .env.development environment variables](#environment-variables), run: | ||
|
||
`npm run develop:env-setup` | ||
`yarn develop:env-setup` | ||
|
||
**Editors:** | ||
|
||
`npm run edit` | ||
`yarn edit` | ||
|
||
**Developers:** | ||
|
||
To develop locally run: | ||
|
||
`npm run develop` | ||
`yarn develop` | ||
|
||
Visit `localhost:8000` for homepage. | ||
|
||
Visit `localhost:8000/docs/${relativePath}` for documentation pages, e.g. `localhost:8000/docs/client-lib-development-guide/documentation-formatting-guide`. | ||
|
||
To build and serve locally: | ||
|
||
`npm run rebuild` | ||
`yarn rebuild` | ||
|
||
Visit `localhost:8000` for homepage. | ||
|
||
|
@@ -114,7 +112,7 @@ We have selected folder-level README files instead of the alternative of a dedic | |
|
||
## Optional Setup Steps | ||
|
||
If you would like to run linting and tests automatically before every commit and run npm install automatically after every branch checkout, run `npm run repo-githooks`. If you would like to remove this behaviour, run `npm run no-githooks`. | ||
If you would like to run linting and tests automatically before every commit and run yarn install automatically after every branch checkout, run `yarn repo-githooks`. If you would like to remove this behaviour, run `yarn no-githooks`. | ||
|
||
To understand the data ingestion and parsing steps, please check the READMEs in the [/data folder](./data/README.md). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -666,7 +666,7 @@ And run the APIs | |
|
||
```[sh] | ||
$ cd api | ||
$ npm run start | ||
$ yarn start | ||
``` | ||
|
||
h2. Next Steps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.