-
Notifications
You must be signed in to change notification settings - Fork 13
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 fe371da
Showing
31 changed files
with
6,148 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,3 @@ | ||
module.exports = { | ||
extends: ['soybeanjs'] | ||
}; |
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,16 @@ | ||
"*.vue" eol=lf | ||
"*.js" eol=lf | ||
"*.ts" eol=lf | ||
"*.jsx" eol=lf | ||
"*.tsx" eol=lf | ||
"*.cjs" eol=lf | ||
"*.cts" eol=lf | ||
"*.mjs" eol=lf | ||
"*.mts" eol=lf | ||
"*.json" eol=lf | ||
"*.html" eol=lf | ||
"*.css" eol=lf | ||
"*.less" eol=lf | ||
"*.scss" eol=lf | ||
"*.sass" eol=lf | ||
"*.styl" eol=lf |
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,25 @@ | ||
name: Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- run: npx githublogen | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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,34 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
coverage | ||
*.local | ||
stats.html | ||
|
||
/cypress/videos/ | ||
/cypress/screenshots/ | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
!.vscode/settings.json | ||
!.vscode/launch.json | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
package-lock.json | ||
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,2 @@ | ||
registry=https://registry.npmmirror.com/ | ||
shamefully-hoist=true |
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,26 @@ | ||
{ | ||
"recommendations": [ | ||
"afzalsayed96.icones", | ||
"antfu.iconify", | ||
"antfu.unocss", | ||
"christian-kohler.path-intellisense", | ||
"dbaeumer.vscode-eslint", | ||
"eamodio.gitlens", | ||
"editorconfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"formulahendry.auto-complete-tag", | ||
"formulahendry.auto-close-tag", | ||
"formulahendry.auto-rename-tag", | ||
"kisstkondoros.vscode-gutter-preview", | ||
"mariusalchimavicius.json-to-ts", | ||
"mhutchie.git-graph", | ||
"mikestead.dotenv", | ||
"naumovs.color-highlight", | ||
"pkief.material-icon-theme", | ||
"sdras.vue-vscode-snippets", | ||
"vue.volar", | ||
"vue.vscode-typescript-vue-plugin", | ||
"whtouche.vscode-js-console-utils", | ||
"zhuangtongfa.material-theme" | ||
] | ||
} |
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,13 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "TS debugger", | ||
"skipFiles": ["<node_internals>/**"], | ||
"runtimeArgs": ["--loader", "tsx"], | ||
"program": "${relativeFile}" | ||
} | ||
] | ||
} |
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,83 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.fontLigatures": true, | ||
"editor.formatOnSave": false, | ||
"editor.guides.bracketPairs": "active", | ||
"editor.quickSuggestions": { | ||
"strings": true | ||
}, | ||
"editor.tabSize": 2, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"json", | ||
"svelte", | ||
"astro" | ||
], | ||
"files.associations": { | ||
"*.env.*": "dotenv" | ||
}, | ||
"files.eol": "\n", | ||
"git.enableSmartCommit": true, | ||
"gutterpreview.paths": { | ||
"@": "/src", | ||
"~@": "/src" | ||
}, | ||
"material-icon-theme.activeIconPack": "angular", | ||
"material-icon-theme.files.associations": {}, | ||
"material-icon-theme.folders.associations": { | ||
"src-tauri": "src", | ||
"enum": "typescript", | ||
"enums": "typescript", | ||
"store": "context", | ||
"stores": "context", | ||
"composable": "hook", | ||
"composables": "hook", | ||
"directive": "tools", | ||
"directives": "tools", | ||
"business": "core", | ||
"request": "api" | ||
}, | ||
"path-intellisense.mappings": { | ||
"@": "${workspaceFolder}/src", | ||
"~@": "${workspaceFolder}/src" | ||
}, | ||
"terminal.integrated.cursorStyle": "line", | ||
"terminal.integrated.fontSize": 14, | ||
"terminal.integrated.fontWeight": 500, | ||
"terminal.integrated.tabs.enabled": true, | ||
"workbench.iconTheme": "material-icon-theme", | ||
"workbench.colorTheme": "One Dark Pro", | ||
"[html]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[markdown]": { | ||
"editor.defaultFormatter": "yzhang.markdown-all-in-one" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[vue]": { | ||
"editor.defaultFormatter": "Vue.volar" | ||
} | ||
} |
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 @@ | ||
# Changelog |
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,3 @@ | ||
# create-soybean | ||
|
||
SoybeanJS 的命令行, 可以创建很多类型的项目模版 |
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 @@ | ||
import { defineBuildConfig } from 'unbuild'; | ||
|
||
export default defineBuildConfig({ | ||
entries: ['src/index'], | ||
clean: true, | ||
rollup: { | ||
emitCJS: true, | ||
inlineDependencies: true | ||
} | ||
}); |
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,66 @@ | ||
{ | ||
"name": "elegent-router", | ||
"version": "0.0.1", | ||
"description": "A plugin to create router elegently", | ||
"author": { | ||
"name": "Soybean", | ||
"email": "soybeanjs@outlook.com", | ||
"url": "https://github.com/soybeanjs" | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/soybeanjs/easy-router", | ||
"repository": { | ||
"url": "https://github.com/soybeanjs/easy-router.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/soybeanjs/easy-router/issues" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "pnpm typecheck && unbuild", | ||
"dev": "tsx watch src", | ||
"lint": "eslint . --fix", | ||
"format": "soy prettier-format", | ||
"commit": "soy git-commit", | ||
"cleanup": "soy cleanup", | ||
"update-pkg": "soy update-pkg", | ||
"update-version": "bumpp --commit --push --tag", | ||
"publish-pkg": "pnpm -r publish --access public", | ||
"typecheck": "tsc --noEmit", | ||
"release": "pnpm update-version && pnpm build && pnpm publish-pkg" | ||
}, | ||
"dependencies": { | ||
"chokidar": "3.5.3", | ||
"consola": "3.2.2", | ||
"fast-glob": "3.3.0", | ||
"fs-extra": "11.1.1", | ||
"magicast": "0.2.9", | ||
"micromatch": "4.0.5" | ||
}, | ||
"devDependencies": { | ||
"@soybeanjs/cli": "0.6.2", | ||
"@types/micromatch": "^4.0.2", | ||
"@types/node": "20.3.2", | ||
"eslint": "8.43.0", | ||
"eslint-config-soybeanjs": "0.4.9", | ||
"simple-git-hooks": "2.8.1", | ||
"typescript": "5.1.6", | ||
"unbuild": "1.2.1" | ||
}, | ||
"simple-git-hooks": { | ||
"commit-msg": "pnpm soy git-commit-verify", | ||
"pre-commit": "pnpm typecheck && pnpm soy lint-staged" | ||
} | ||
} |
Oops, something went wrong.