Skip to content

Commit

Permalink
build: update root dependencies & version script (#807)
Browse files Browse the repository at this point in the history
* build: update root dependencies

* build: update version script

* build: update git workflows

* chore: remove lerna file

* chore: add rimraf
  • Loading branch information
mlmoravek authored Feb 25, 2024
1 parent 6fee930 commit f97da5b
Show file tree
Hide file tree
Showing 10 changed files with 26,827 additions and 11,432 deletions.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ Add comments if method is too complex and/or whenever you judge necessary.

You need at least [Node.js](http://nodejs.org/) **version 20.10.0**.

After cloning the repository, install the dependencies and then run:
After cloning the repository, install the dependencies:

```bash
$ npm run bootstrap
$ npm install
```

**Common used NPM scripts: (Quick Start)**
Expand All @@ -79,8 +79,8 @@ After writing tests, run the following command:

```bash
# launch tests suite
$ npm run test:lib
$ npm run test

# test typescript
$ npm run test:lib:ts
$ npm run test:ts
```
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies 📦
run: npm install && npm run bootstrap
- name: Run lint and component tests 🧪
run: npm run test:lib
run: npm install
- name: Run component tests 🧪
run: npm run test
- name: Upload coverage 📈
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install dependencies 📦
run: npm install && npm run bootstrap
run: npm install
- name: Build lib
run: npm run publish:lib
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ts-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies 📦
run: npm install && npm run bootstrap
run: npm install
- name: Check TS 🧐
run: npm run test:lib:ts
run: npm run test:ts
10 changes: 5 additions & 5 deletions .scripts/config-sync.js → .scripts/sync-version.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ const version = require('../package.json').version

const configJsonOptions = {
files: jsonPaths,
from: /"version": .+/i,
to: `"version": "${version}",`,
from: /"name": "@oruga-ui\/(.*)-next",([^"]*)"version": .+/ig,
to: (match) =>
match.replace(/"version": .+/i, `"version": "${version}",`),
}

const replaceInFile = (config) => {
return replace.sync(config).map((el) => el.file)
}
const replaceInFile = (config) =>
replace.sync(config).map((el) => el.file);

try {
const changedFiles = replaceInFile(configJsonOptions)
Expand Down
7 changes: 0 additions & 7 deletions lerna.json

This file was deleted.

Loading

0 comments on commit f97da5b

Please sign in to comment.