-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 47c9c46
Showing
86 changed files
with
2,775 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
|
||
name: 🐞 Bug report | ||
about: Create a report to help us improve | ||
title: "[Bug] the title of bug report" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
#### Describe the bug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: 🥺 Help wanted | ||
about: Confuse about the use of electron-vue-vite | ||
title: "[Help] the title of help wanted report" | ||
labels: help wanted | ||
assignees: '' | ||
|
||
--- | ||
|
||
#### Describe the problem you confuse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- Thank you for contributing! --> | ||
|
||
### Description | ||
|
||
<!-- Please insert your description here and provide especially info about the "what" this PR is solving --> | ||
|
||
### What is the purpose of this pull request? <!-- (put an "X" next to an item) --> | ||
|
||
- [ ] Bug fix | ||
- [ ] New Feature | ||
- [ ] Documentation update | ||
- [ ] Other |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "monthly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths-ignore: | ||
- "**.md" | ||
- "**.spec.js" | ||
- ".idea" | ||
- ".vscode" | ||
- ".dockerignore" | ||
- "Dockerfile" | ||
- ".gitignore" | ||
- ".github/**" | ||
- "!.github/workflows/build.yml" | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build Release Files | ||
run: npm run build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release_on_${{ matrix. os }} | ||
path: release/ | ||
retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
job1: | ||
name: Check Not Allowed File Changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
markdown_change: ${{ steps.filter_markdown.outputs.change }} | ||
markdown_files: ${{ steps.filter_markdown.outputs.change_files }} | ||
steps: | ||
|
||
- name: Check Not Allowed File Changes | ||
uses: dorny/paths-filter@v2 | ||
id: filter_not_allowed | ||
with: | ||
list-files: json | ||
filters: | | ||
change: | ||
- 'package-lock.json' | ||
- 'yarn.lock' | ||
- 'pnpm-lock.yaml' | ||
# ref: https://github.com/github/docs/blob/main/.github/workflows/triage-unallowed-contributions.yml | ||
- name: Comment About Changes We Can't Accept | ||
if: ${{ steps.filter_not_allowed.outputs.change == 'true' }} | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
let workflowFailMessage = "It looks like you've modified some files that we can't accept as contributions." | ||
try { | ||
const badFilesArr = [ | ||
'package-lock.json', | ||
'yarn.lock', | ||
'pnpm-lock.yaml', | ||
] | ||
const badFiles = badFilesArr.join('\n- ') | ||
const reviewMessage = `👋 Hey there spelunker. It looks like you've modified some files that we can't accept as contributions. The complete list of files we can't accept are:\n- ${badFiles}\n\nYou'll need to revert all of the files you changed in that list using [GitHub Desktop](https://docs.github.com/en/free-pro-team@latest/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/reverting-a-commit) or \`git checkout origin/main <file name>\`. Once you get those files reverted, we can continue with the review process. :octocat:\n\nMore discussion:\n- https://github.com/electron-vite/electron-vite-vue/issues/192` | ||
createdComment = await github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.number, | ||
body: reviewMessage, | ||
}) | ||
workflowFailMessage = `${workflowFailMessage} Please see ${createdComment.data.html_url} for details.` | ||
} catch(err) { | ||
console.log("Error creating comment.", err) | ||
} | ||
core.setFailed(workflowFailMessage) | ||
- name: Check Not Linted Markdown | ||
if: ${{ always() }} | ||
uses: dorny/paths-filter@v2 | ||
id: filter_markdown | ||
with: | ||
list-files: shell | ||
filters: | | ||
change: | ||
- added|modified: '*.md' | ||
job2: | ||
name: Lint Markdown | ||
runs-on: ubuntu-latest | ||
needs: job1 | ||
if: ${{ always() && needs.job1.outputs.markdown_change == 'true' }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Lint markdown | ||
run: npx markdownlint-cli ${{ needs.job1.outputs.markdown_files }} --ignore node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
dist-electron | ||
release | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# lockfile | ||
package-lock.json | ||
pnpm-lock.yaml | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## 2022-10-03 | ||
|
||
[v2.1.0](https://github.com/electron-vite/electron-vite-vue/pull/267) | ||
|
||
- `vite-electron-plugin` is Fast, and WYSIWYG. 🌱 | ||
- last-commit: db2e830 v2.1.0: use `vite-electron-plugin` instead `vite-plugin-electron` | ||
|
||
## 2022-06-04 | ||
|
||
[v2.0.0](https://github.com/electron-vite/electron-vite-vue/pull/156) | ||
|
||
- 🖖 Based on the `vue-ts` template created by `npm create vite`, integrate `vite-plugin-electron` | ||
- ⚡️ More simplify, is in line with Vite project structure | ||
- last-commit: a15028a (HEAD -> main) feat: hoist `process.env` | ||
|
||
## 2022-01-30 | ||
|
||
[v1.0.0](https://github.com/electron-vite/electron-vite-vue/releases/tag/v1.0.0) | ||
|
||
- ⚡️ Main、Renderer、preload, all built with vite | ||
|
||
## 2022-01-27 | ||
- Refactor the scripts part. | ||
- Remove `configs` directory. | ||
|
||
## 2021-11-11 | ||
- Refactor the project. Use vite.config.ts build `Main-process`, `Preload-script` and `Renderer-process` alternative rollup. | ||
- Scenic `Vue>=3.2.13`, `@vue/compiler-sfc` is no longer necessary. | ||
- If you prefer Rollup, Use rollup branch. | ||
|
||
```bash | ||
Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 草鞋没号 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
![image info](./src/assets/images/banner.png) | ||
|
||
# CLI TO GUI (CTG) | ||
This tool is for management framework projects by GUI instead of CLI. | ||
You could import some projects and manage them. | ||
|
||
## CLI TO GUI uses | ||
- [ElectronJs](https://www.electronjs.org/) + [Vue3](https://vuejs.org/) | ||
- [Element Plus](https://element-plus.org/) | ||
- [Remix Icon](https://remixicon.com/) | ||
|
||
# Coming Features | ||
### Backend Frameworks | ||
- [x] Laravel ([Php Artisan](https://laravel.com/docs/10.x/artisan)) | ||
- [ ] Django ([Django Admin](https://docs.djangoproject.com/en/4.1/ref/django-admin/)) | ||
- [ ] Ruby On Rails ([The Rails Command Line](https://guides.rubyonrails.org/command_line.html)) | ||
- [ ] Other frameworks | ||
|
||
### Frontend Frameworks | ||
- [ ] Vue ([Vue CLI](https://cli.vuejs.org/)) | ||
- [ ] React ([Create React App](https://create-react-app.dev/)) | ||
- [ ] Angular ([Angular CLI](https://angular.io/cli)) | ||
- [ ] Other frameworks | ||
|
||
### Other | ||
- [ ] Ability to create custom scripts for every projects | ||
- [ ] Ability to connect to remote workspaces | ||
|
||
# To do | ||
- Laravel ([Php Artisan](https://laravel.com/docs/10.x/artisan)) :construction: |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @see https://www.electron.build/configuration/configuration | ||
*/ | ||
{ | ||
"appId": "YourAppID", | ||
"asar": true, | ||
"icon": "public/favicon.ico", | ||
"directories": { | ||
"output": "release/${version}" | ||
}, | ||
"files": [ | ||
"dist-electron", | ||
"dist" | ||
], | ||
"mac": { | ||
"artifactName": "${productName}_${version}.${ext}", | ||
"target": [ | ||
"dmg" | ||
] | ||
}, | ||
"win": { | ||
"target": [ | ||
{ | ||
"target": "nsis", | ||
"arch": [ | ||
"x64" | ||
] | ||
} | ||
], | ||
"artifactName": "${productName}_${version}.${ext}" | ||
}, | ||
"nsis": { | ||
"oneClick": false, | ||
"perMachine": false, | ||
"allowToChangeInstallationDirectory": true, | ||
"deleteAppDataOnUninstall": false | ||
} | ||
} |
Oops, something went wrong.