-
Notifications
You must be signed in to change notification settings - Fork 2
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 15e8655
Showing
15 changed files
with
5,719 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,13 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
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,5 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": ["dist"], | ||
"extends": ["@varlet/eslint-config"] | ||
} |
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,37 @@ | ||
name: CHECK | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Set node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: pnpm | ||
|
||
- name: Ls | ||
run: ls -a | ||
|
||
- name: Setup | ||
run: npm i -g @antfu/ni | ||
|
||
- name: Install | ||
run: ni --frozen | ||
|
||
- name: Lint | ||
run: nr check |
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 @@ | ||
node_modules | ||
dist |
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,7 @@ | ||
dist/** | ||
|
||
*.md | ||
.github/** | ||
.history/** | ||
|
||
pnpm-lock.yaml |
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,5 @@ | ||
{ | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"semi": false | ||
} |
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 @@ | ||
#!/usr/bin/env node | ||
import { releaseCommand, changelogCommand } from '../dist/index.js' | ||
import { Command } from 'commander' | ||
|
||
const program = new Command() | ||
|
||
releaseCommand(program) | ||
changelogCommand(program) | ||
|
||
program.parse() |
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,57 @@ | ||
{ | ||
"name": "@varlet/release", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"description": "", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"bin": { | ||
"vr": "bin/index.mjs" | ||
}, | ||
"scripts": { | ||
"build": "tsc --noEmit && tsup", | ||
"dev": "node bin/index.mjs", | ||
"test": "pnpm run build && pnpm run dev", | ||
"check": "tsc --noEmit && eslint --ext .ts,.mjs" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "MIT", | ||
"packageManager": "pnpm@8.7.5", | ||
"engines": { | ||
"node": ">=16.0.0", | ||
"pnpm": ">=8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/conventional-changelog": "^3.1.5", | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/inquirer": "^9.0.7", | ||
"@types/node": "^20.9.0", | ||
"@types/semver": "^7.5.5", | ||
"@varlet/eslint-config": "^2.18.4", | ||
"eslint": "^8.53.0", | ||
"prettier": "^3.1.0", | ||
"typescript": "^5.2.2", | ||
"unbuild": "^2.0.0" | ||
}, | ||
"dependencies": { | ||
"commander": "^11.1.0", | ||
"conventional-changelog": "^5.1.0", | ||
"execa": "^8.0.1", | ||
"fs-extra": "^11.1.1", | ||
"glob": "^10.3.10", | ||
"inquirer": "^9.2.12", | ||
"nanospinner": "^1.1.0", | ||
"rslog": "^1.1.0", | ||
"semver": "^7.5.4", | ||
"tsup": "^7.2.0" | ||
} | ||
} |
Oops, something went wrong.