Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !11304

Use npm v7 with workspaces for local development and testing

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/lukekarrys/lk/dev-npm-7 into main 3 years ago
  • Overview 12
  • Commits 1
  • Pipelines 0
  • Changes 30

Created by: lukekarrys

This PR uses npm v7 (with its support of workspaces) for local development and testing. This should only affect local development, and not the generated output from create-react-app. So if I made changes that do affect the output, it is likely a mistake. :smile:

Lerna

lerna is still being used for changelog generation and publishing. These two tasks could be replaced with individual tools/scripts, now that npm is responsible for installing and linking dependencies.

Compare
  • main (base)

and
  • latest version
    a666accf
    1 commit, 2 years ago

30 files
+ 60115
- 10472

    Preferences

    File browser
    Compare changes
.github/‎workflows‎
buil‎d.yml‎ +9 -3
integra‎tion.yml‎ +6 -12
lint‎.yml‎ +9 -3
docusauru‎s/website‎
READ‎ME.md‎ +4 -4
yarn‎.lock‎ +0 -10309
pack‎ages‎
react-err‎or-overlay‎
packag‎e.json‎ +3 -2
react-scripts/fi‎xtures/…/template‎
READ‎ME.md‎ +2 -2
ta‎sks‎
cra‎.js‎ +2 -2
e2e-beh‎avior.sh‎ +1 -1
e2e-ins‎talls.sh‎ +12 -12
e2e-kitchens‎ink-eject.sh‎ +5 -11
e2e-kitch‎ensink.sh‎ +5 -8
e2e-si‎mple.sh‎ +22 -33
publi‎sh.sh‎ +2 -4
te‎st‎
fixt‎ures‎
__share‎d__/util‎
scrip‎ts.js‎ +12 -35
setu‎p.js‎ +5 -16
boostr‎ap-sass‎
.disab‎le-pnp‎ +0 -0
global-scss-as‎set-resolution‎
.disab‎le-pnp‎ +0 -0
jsco‎nfig‎
.disab‎le-pnp‎ +0 -0
types‎cript‎
.disab‎le-pnp‎ +0 -0
typescrip‎t-advanced‎
.disab‎le-pnp‎ +0 -0
typescript‎-typecheck‎
.disab‎le-pnp‎ +0 -0
webpack-messa‎ge-formatting‎
.disab‎le-pnp‎ +0 -0
READ‎ME.md‎ +1 -1
.giti‎gnore‎ +0 -1
CONTRIB‎UTING.md‎ +11 -9
azure-pipeline‎s-test-job.yml‎ +5 -2
netlif‎y.toml‎ +1 -1
package-‎lock.json‎ +59997 -0
packag‎e.json‎ +1 -1
.github/workflows/build.yml
+ 9
- 3
  • View file @ a666accf

  • Edit in single-file editor

  • Open in Web IDE


@@ -6,8 +6,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Install npm@7
run: npm i -g npm@7
- name: Install
run: yarn --no-progress --non-interactive --no-lockfile
run: npm ci --prefer-offline
- name: Build
run: yarn build
run: npm run build
.github/workflows/integration.yml
+ 6
- 12
  • View file @ a666accf

  • Edit in single-file editor

  • Open in Web IDE


@@ -18,19 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Cache dependencies
id: cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', './yarn.lock') }}
cache: 'npm'
- name: Install npm@7
run: npm i -g npm@7
- name: Install packages
if: steps.cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile --prefer-offline
run: npm ci --prefer-offline
- name: Run integration tests
run: yarn test:integration
run: npm run test:integration
.github/workflows/lint.yml
+ 9
- 3
  • View file @ a666accf

  • Edit in single-file editor

  • Open in Web IDE


@@ -6,8 +6,14 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Install npm@7
run: npm i -g npm@7
- name: Install
run: yarn --no-progress --non-interactive --no-lockfile
run: npm ci --prefer-offline
- name: Alex
run: yarn alex
run: npm run alex
docusaurus/website/README.md
+ 4
- 4
  • View file @ a666accf

  • Edit in single-file editor

  • Open in Web IDE


@@ -5,13 +5,13 @@ This website is built using Docusaurus 2, a modern static website generator.
### Installation
```
$ yarn
$ npm install
```
### Local Development
```
$ yarn start
$ npm start
```
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
@@ -19,7 +19,7 @@ This command starts a local development server and open up a browser window. Mos
### Build
```
$ yarn build
$ npm run build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
@@ -27,7 +27,7 @@ This command generates static content into the `build` directory and can be serv
### Deployment
```
$ GIT_USER=<Your GitHub username> USE_SSH=1 yarn deploy
$ GIT_USER=<Your GitHub username> USE_SSH=1 npm run deploy
```
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
docusaurus/website/yarn.lock deleted 100644 → 0
+ 0
- 10309
  • View file @ 08dc7ab0

Changes are too large to be shown.

View file @ 08dc7ab0
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
1
CLA Signed
1
CLA Signed
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: facebook/create-react-app!11837
Source branch: github/fork/lukekarrys/lk/dev-npm-7

Menu

Explore Projects Groups Snippets