Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
feat: moving local development up to npm@7 (#1318)
Browse files Browse the repository at this point in the history
* chore: upgrading the variable pkg to npm@7

* chore: updating oas-to-snippet to npm@7

* chore: updating some `variable` pkg deps to fix security issues

* chore: updating oas-to-har to npm7

* chore: updating oas-form to npm7

* chore: updating oas-extensions to npm7

* chore: updating api-logs to npm7

* chore: moving everything over to npm7

* chore: removing the need for lodash in the dev server

* fix: issue where our PHP SDK would be labeled as "Php"

* ci: updating CI to use npm7 and test on npm12/14/16

* ci: run bundlewatch with npm7

* test: fixing a broken logs test

* ci: only run tests against node14

* ci: fix the ci workflow

* ci: fix the ci workflow yaml again

* ci: using npm workspaces for builds, not lerna

* ci: fixing node-sass

* ci: rebuild node-sass before running bundles

* ci: rebuild node-sass as a postinstall stage instead
  • Loading branch information
erunion authored Jun 11, 2021
1 parent 07c99d3 commit 7738bb8
Show file tree
Hide file tree
Showing 26 changed files with 180,891 additions and 26,182 deletions.
2 changes: 2 additions & 0 deletions .github/codeql/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ paths-ignore:
- '**/node_modules/**'
- 'packages/api-explorer/dist/*'
- 'packages/api-logs/dist/*'
- 'packages/oas-form/dist/*'
- 'packages/variable/dist/*'
8 changes: 4 additions & 4 deletions .github/workflows/bundlewatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
with:
node-version: 14.x

- name: Install dependencies
run: npm ci
- name: Install npm@7
run: npm install -g npm@7

- name: Consolidate dependencies
run: npx lerna bootstrap --hoist
- name: Install deps
run: npm ci

- name: Build bundles
run: npx lerna run build
Expand Down
26 changes: 12 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,24 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x]

steps:
- uses: actions/[email protected]
- uses: actions/[email protected]

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci
- name: Install npm@7
run: npm install -g npm@7

- name: Consolidate dependencies
run: npx lerna bootstrap --hoist
- name: Install deps
run: npm ci

- name: Run tests
run: npm test
- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rm -rf example/dist
mkdir example/dist
mkdir example/dist/reference

webpack --config webpack.prod.js
npx webpack --config webpack.prod.js

# webpack-dev-server requires you to give an exact path match to it's
# bundle otherwise you'll actually be loading the regular built webpack
Expand Down
Loading

0 comments on commit 7738bb8

Please sign in to comment.