Skip to content

Commit

Permalink
chore(package.json): update scripts (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Feb 24, 2024
1 parent 7a1b3d9 commit 083e0fd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 43 deletions.
38 changes: 6 additions & 32 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Add comments if method is too complex and/or whenever you judge necessary.

# Development Setup

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

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

Expand All @@ -62,51 +62,25 @@ $ npm run bootstrap

To compile the code in watch mode:

For Oruga Next (Vue 3):

```bash
# build lib in watch mode
$ npm run build:lib:watch:oruga-next
```

For Oruga (Vue 2):

```bash
# build lib in watch mode
$ npm run build:lib:watch:oruga
$ npm run build:lib:watch
```

Then open up new bash and run the live server **concurrently** with the above command, and then start working to see your changes live on [http://localhost:8080](http://localhost:8080):

For Oruga Next (Vue 3):

```bash
# build and launch live server of docs in watch mode to see the changes (it may take a few seconds)
$ npm run build:docs-next:watch:oruga
```

For Oruga (Vue 2):

```bash
# build and launch live server of docs in watch mode to see the changes (it may take a few seconds)
$ npm run build:docs:watch:oruga
$ npm run build:docs:watch
```

After writing tests, run the following command:

For Oruga Next (Vue 3):

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

# test typescript
$ npm run test:ts:oruga-next
```

For Oruga (Vue 2):

```bash
# launch tests suite
$ npm run test:oruga
```
$ npm run test:lib:ts
```
2 changes: 1 addition & 1 deletion .github/workflows/build-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install dependencies 📦
run: npm install && npm run bootstrap
- name: Run lint and component tests 🧪
run: npm run test:oruga-next
run: npm run test:lib
- 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 @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies 📦
run: npm install && npm run bootstrap
- name: Build lib
run: npm run publish:lib:oruga-next
run: npm run publish:lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm i extract-changelog-release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ts-next-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- name: Install dependencies 📦
run: npm install && npm run bootstrap
- name: Check TS 🧐
run: npm run test:ts:oruga-next
run: npm run test:lib:ts
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"license": "MIT",
"scripts": {
"bootstrap": "lerna bootstrap",
"test:oruga-next": "lerna run test --scope @oruga-ui/oruga-next",
"test:ts:oruga-next": "lerna run test:ts --scope @oruga-ui/oruga-next",
"test:watch:oruga-next": "lerna run test:watch --scope @oruga-ui/oruga-next",
"build:docs-next:oruga": "lerna run docs:build --parallel --scope @oruga-ui/docs-next",
"build:docs-next:watch:oruga": "lerna run docs:dev --parallel --scope @oruga-ui/docs-next",
"build:lib:oruga-next": "lerna run build:lib --parallel --scope @oruga-ui/oruga-next",
"build:lib:watch:oruga-next": "lerna run build:lib:watch --parallel --scope @oruga-ui/oruga-next",
"publish:lib:oruga-next": "lerna run publish:lib --scope @oruga-ui/oruga-next",
"test:lib": "lerna run test --scope @oruga-ui/oruga-next",
"test:lib:ts": "lerna run test:ts --scope @oruga-ui/oruga-next",
"test:lib:watch": "lerna run test:watch --scope @oruga-ui/oruga-next",
"build:docs": "lerna run docs:build --parallel --scope @oruga-ui/docs-next",
"build:docs:watch": "lerna run docs:dev --parallel --scope @oruga-ui/docs-next",
"build:lib": "lerna run build:lib --parallel --scope @oruga-ui/oruga-next",
"build:lib:watch": "lerna run build:lib:watch --parallel --scope @oruga-ui/oruga-next",
"publish:lib": "lerna run publish:lib --scope @oruga-ui/oruga-next",
"test:all": "lerna run test --stream",
"version": "node .scripts/config-sync && git add . && conventional-changelog -p angular -i CHANGELOG.md -s && node .scripts/wait-confirm && git add CHANGELOG.md",
"postversion": "echo \"You can now publish your tag with 'git push --follow-tags'\""
Expand Down

0 comments on commit 083e0fd

Please sign in to comment.