Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: CLI for quick scaffolding #277

Merged
merged 20 commits into from
Nov 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update
antfu committed Oct 24, 2023
commit 2712a77e1d229c6173ee9646a5335113a89b0238
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -79,3 +79,5 @@ dist

*.lerna_backup
_fixtures

.temp
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node

import { cli } from '../dist/cli/index.mjs'
import { runCli } from '../dist/cli.js'

cli()
runCli()
21 changes: 0 additions & 21 deletions build.config.ts

This file was deleted.

2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check
import styleMigrate from '@stylistic/eslint-plugin-migrate'
import antfu from './dist/index.mjs'
import antfu from './dist/index.js'

export default antfu(
{
24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -13,25 +13,25 @@
],
"exports": {
".": {
"import": "./dist/index.mjs",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.mjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": "./bin/index.js",
"files": [
"bin",
"dist"
],
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub",
"dev": "unbuild --stub --watch & eslint-flat-config-viewer",
"lint": "pnpm run build && eslint .",
"build": "tsup --format esm,cjs --clean --dts",
"stub": "tsup --format esm",
"dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
"lint": "pnpm run stub && eslint .",
"prepack": "nr build",
"release": "bumpp && pnpm publish",
"test": "vitest --run --reporter verbose",
"test": "vitest",
"typecheck": "tsc --noEmit",
"prepare": "simple-git-hooks"
},
@@ -58,9 +58,13 @@
"eslint-plugin-vitest": "^0.3.8",
"eslint-plugin-vue": "^9.17.0",
"eslint-plugin-yml": "^1.10.0",
"execa": "^8.0.1",
"globals": "^13.23.0",
"jsonc-eslint-parser": "^2.3.0",
"local-pkg": "^0.5.0",
"parse-gitignore": "^2.0.0",
"picocolors": "^1.0.0",
"prompts": "^2.4.2",
"vue-eslint-parser": "^9.3.2",
"yaml-eslint-parser": "^1.2.2"
},
@@ -76,19 +80,13 @@
"eslint": "^8.52.0",
"eslint-flat-config-viewer": "^0.1.0",
"esno": "^0.17.0",
"execa": "^8.0.1",
"fast-glob": "^3.3.1",
"fs-extra": "^11.1.1",
"kleur": "^4.1.5",
"lint-staged": "^15.0.2",
"parse-gitignore": "^2.0.0",
"prompts": "^2.4.2",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.9.0",
"sucrase": "^3.34.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vitest": "^0.34.6"
},
"simple-git-hooks": {
Loading