Skip to content

Commit 5bc0fdf

Browse files
committed
fix: update deps & added vite
1 parent df98bf2 commit 5bc0fdf

40 files changed

Lines changed: 8888 additions & 6705 deletions

.eslintrc.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- beta
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
actions: write
14+
issues: write
15+
pull-requests: write
16+
packages: write
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version-file: .nvmrc
26+
registry-url: 'https://npm.pkg.github.com'
27+
scope: '@chargetrip'
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Install dependencies
32+
run: npm install
33+
34+
- name: Build
35+
run: npm run build
36+
37+
- name: Prepare release
38+
run: npm run prepare:release
39+
40+
- name: Release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: npx semantic-release
46+
47+
- name: write version to var
48+
run: echo "RELEASE_VERSION=$(git describe --abbrev=0 --tags | tr -d v)" >> $GITHUB_ENV
49+
50+
- name: Version
51+
run: echo "Deployed version ${{env.RELEASE_VERSION}}" >> $GITHUB_STEP_SUMMARY

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ test/treeshake/index-src.bundle.min.js
2727
test/treeshake/stats.html
2828

2929

30-
**/node_modules
30+
release
31+
**/node_modules

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npm run lint
2+
npm run prettier

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@chargetrip:registry=https://npm.pkg.github.com

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

.parcelrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 100
6+
}

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22

33
## Install
44

5-
Install the required dependencies
5+
Install the required dependencies
6+
67
```none
78
npm i
89
```
910

1011
To start a development build and watch for changes
12+
1113
```none
1214
npm run watch
1315
```
1416

15-
To output a production build
17+
To output a production build
18+
1619
```none
1720
npm run build
1821
```

0 commit comments

Comments
 (0)