Skip to content

Commit

Permalink
chore: migrate to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem committed Dec 8, 2023
1 parent e6ec10c commit 746ffe0
Show file tree
Hide file tree
Showing 11 changed files with 6,680 additions and 6,436 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
cache: npm
node-version: '20.x'
- run: yarn --immutable
- run: yarn lint
- run: yarn format:check
- run: yarn test --coverage
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm test -- --coverage
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d #v3.1.4
with:
file: coverage/lcov.info
- run: yarn build
- run: yarn docs
- run: npm run build
- run: npm run docs
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: yarn
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: yarn --immutable
- run: npm ci
- name: npm version
working-directory: src
run: |
Expand All @@ -31,8 +31,8 @@ jobs:
git commit -m v${{ inputs.version }}
git tag v${{ inputs.version }}
- run: git show HEAD
- run: yarn build
- run: yarn docs
- run: npm run build
- run: npm run docs
- run: |
npm whoami
npm publish --access=public --provenance
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: yarn set version stable
- run: yarn install --no-immutable
- run: yarn up --caret '**'
- run: yarn up -R '**'
- run: npx npm-check-updates -u
- run: npm install --ignore-scripts
- run: npm update --ignore-scripts
- name: Create pull request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
Expand Down
10 changes: 0 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,4 @@ node_modules
dist
temp
coverage
yarn-error.log
.angular

# cf https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored (not using Zero-Installs) :
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ temp
*.md
coverage
.angular
.yarn
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

14 changes: 7 additions & 7 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Run:

- `yarn test` to execute unit tests.
- `yarn tdd` or `yarn tdd:ui` to execute unit tests in the TDD mode (tests are re-run on each change).
- `yarn build` to build the lib
- `yarn format:check` to check that files are correctly formatted
- `yarn format:fix` to reformat files
- `yarn api` to run the api-extractor
- `yarn docs` to run api-documenter based on the api-extractor result. It will generate the tsdoc markdown files.
- `npm test` to execute unit tests.
- `npm run tdd` or `npm run tdd:ui` to execute unit tests in the TDD mode (tests are re-run on each change).
- `npm run build` to build the lib
- `npm run format:check` to check that files are correctly formatted
- `npm run format:fix` to reformat files
- `npm run api` to run the api-extractor
- `npm run docs` to run api-documenter based on the api-extractor result. It will generate the tsdoc markdown files.
Loading

0 comments on commit 746ffe0

Please sign in to comment.