Skip to content

Commit

Permalink
chore: 使用 vite
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Jun 19, 2021
1 parent 556c7b6 commit 8d44f81
Show file tree
Hide file tree
Showing 140 changed files with 4,270 additions and 11,830 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.js
src/renderer/types.ts
4 changes: 4 additions & 0 deletions frontend/.eslintrc.js → .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ module.exports = {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-extra-non-null-assertion': 'off',
'standard/no-callback-literal': 'off',
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'comma-dangle': 'off',
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ jobs:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 12.x
node-version: 14.x

- name: Install
run: |
yarn
yarn run download-pandoc
cd frontend
yarn
cd ..
yarn install
node scripts/download-pandoc.js
- name: Set env
if: matrix.platform == 'mac'
Expand All @@ -49,10 +46,7 @@ jobs:
- name: Build
run: |
cd frontend
yarn run build
cd ..
yarn run build
yarn build
- name: Electron-Win-Linux
if: matrix.platform != 'mac'
Expand All @@ -72,6 +66,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: true
files: |
out/Yank-Note*.*
out/latest*.yml
20 changes: 5 additions & 15 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"appId": "yank.note",
"productName": "Yank Note",
"copyright": "Copyright 2019 [email protected]",
"copyright": "Copyright 2018-2021 [email protected]",
"asar": true,
"asarUnpack": [
"bin/**/*",
"help/**/*",
"dist/resources/**/*",
"dist/main/resources/**/*",
"node_modules/plantuml-pipe/**/*"
],
"files": [
"./bin/**",
"./help/**",
"./dist/**",
"./frontend/dist/**",
"./node_modules/**"
"./dist/**"
],
"artifactName": "Yank-Note-${os}-${arch}-${version}.${ext}",
"directories": {
"app": "./",
"output": "./out/"
},
"npmRebuild": false,
Expand Down Expand Up @@ -52,15 +49,8 @@
"zip"
]
},
"afterSign": "build/notarize.js",
"afterSign": "scripts/notarize.js",
"nsis": {
"perMachine": false
},
"publish": [
{
"provider": "github",
"owner": "purocean",
"repo": "yn"
}
]
}
}
5 changes: 0 additions & 5 deletions frontend/.editorconfig

This file was deleted.

23 changes: 0 additions & 23 deletions frontend/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion frontend/.yarnrc

This file was deleted.

29 changes: 0 additions & 29 deletions frontend/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions frontend/babel.config.js

This file was deleted.

78 changes: 0 additions & 78 deletions frontend/package.json

This file was deleted.

24 changes: 0 additions & 24 deletions frontend/src/useful/plugin/build-in.ts

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/tests/unit/example.spec.ts

This file was deleted.

41 changes: 0 additions & 41 deletions frontend/tsconfig.json

This file was deleted.

29 changes: 0 additions & 29 deletions frontend/vue.config.js

This file was deleted.

Loading

0 comments on commit 8d44f81

Please sign in to comment.