-
Notifications
You must be signed in to change notification settings - Fork 116
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
Showing
37 changed files
with
7,081 additions
and
1 deletion.
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,25 @@ | ||
name: autofix.ci # needed to securely identify the workflow | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: ['main', 'next'] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
autofix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
- run: pnpm install | ||
- run: pnpm lint:fix | ||
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c | ||
with: | ||
commit-message: 'chore: apply automated updates' |
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,27 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- next | ||
pull_request: | ||
branches: | ||
- main | ||
- next | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
- run: pnpm install | ||
- run: pnpm lint | ||
- run: pnpm test:types | ||
- run: pnpm build | ||
- run: pnpm vitest --coverage |
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
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,19 @@ | ||
import unjs from 'eslint-config-unjs' | ||
|
||
export default unjs({ | ||
ignores: [ | ||
// ignore paths | ||
'tmp', | ||
], | ||
rules: { | ||
// rule overrides | ||
'unicorn/no-array-reduce': 'off', | ||
'unicorn/no-process-exit': 'off', | ||
'unicorn/prefer-top-level-await': 'off', | ||
}, | ||
markdown: { | ||
rules: { | ||
// markdown rule overrides | ||
}, | ||
}, | ||
}) |
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,64 @@ | ||
{ | ||
"name": "create-sd", | ||
"version": "0.0.4", | ||
"description": "", | ||
"repository": "unjs/create-sd", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"type": "module", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"bin": { | ||
"create-sd": "./dist/bin/index.cjs" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"build:watch": "unbuild --watch", | ||
"dev": "vitest dev", | ||
"lint": "eslint . && prettier -c .", | ||
"lint:fix": "automd && eslint . --fix && prettier -w .", | ||
"prepack": "pnpm build", | ||
"play": "jiti playground", | ||
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags", | ||
"test": "pnpm lint && pnpm test:types && vitest run --coverage", | ||
"test:types": "tsc --noEmit --skipLibCheck" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.1.0", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
"automd": "^0.3.8", | ||
"changelogen": "^0.5.5", | ||
"eslint": "^9.8.0", | ||
"eslint-config-unjs": "^0.3.2", | ||
"jiti": "^2.0.0-beta.3", | ||
"prettier": "^3.3.3", | ||
"typescript": "^5.5.4", | ||
"unbuild": "^3.0.0-rc.7", | ||
"vitest": "^2.0.5" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@changesets/cli": "^2.27.8", | ||
"@clack/prompts": "^0.7.0", | ||
"commander": "^12.1.0", | ||
"execa": "^9.3.1", | ||
"giget": "^1.2.3", | ||
"mock-fs": "^5.2.0", | ||
"picocolors": "^1.0.1", | ||
"zod": "^3.23.8" | ||
} | ||
} |
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 @@ | ||
import { test } from '../src' | ||
|
||
console.log(test()) |
Oops, something went wrong.