Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
a145789 committed Nov 14, 2023
0 parents commit 15e8655
Show file tree
Hide file tree
Showing 15 changed files with 5,719 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
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
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"root": true,
"ignorePatterns": ["dist"],
"extends": ["@varlet/eslint-config"]
}
37 changes: 37 additions & 0 deletions .github/workflows/check.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dist/**

*.md
.github/**
.history/**

pnpm-lock.yaml
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"singleQuote": true,
"semi": false
}
10 changes: 10 additions & 0 deletions bin/index.mjs
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()
57 changes: 57 additions & 0 deletions package.json
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"
}
}
Loading

0 comments on commit 15e8655

Please sign in to comment.