-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
002bfe1
commit 0371bb6
Showing
20 changed files
with
6,832 additions
and
4,762 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,35 @@ | ||
node_modules | ||
# log files | ||
yarn.lock | ||
package-lock.json | ||
examples/*/pnpm-lock.yaml | ||
|
||
# build output | ||
dist | ||
pnpm-lock.yaml | ||
lib | ||
|
||
# generated types | ||
.astro | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
# others | ||
.nyc_output | ||
demo | ||
*.rar | ||
*.zip |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm exec commit $1 |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm exec lint-staged --concurrent 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,4 @@ | ||
{ | ||
"cSpell.words": ["taze", "tsup"], | ||
"eslint.useFlatConfig": 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
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,16 @@ | ||
// @ts-check | ||
import { defineFlatConfig, js, typescript } from '@bassist/eslint' | ||
|
||
export default defineFlatConfig([ | ||
...js, | ||
...typescript, | ||
{ | ||
rules: { | ||
'no-console': 'off', | ||
'require-await': 'off', | ||
}, | ||
}, | ||
{ | ||
ignores: ['dist', 'lib', 'types', 'test'], | ||
}, | ||
]) |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"name": "vite-plugin-banner", | ||
"description": "A banner plugin for Vite. Adds a banner to the top of each generated chunk.", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"author": "chengpeiquan <[email protected]>", | ||
"type": "module", | ||
"license": "MIT", | ||
"homepage": "https://github.com/chengpeiquan/vite-plugin-banner", | ||
"files": [ | ||
|
@@ -13,71 +14,53 @@ | |
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c rollup.config.ts && esno scripts/buildTypes", | ||
"build": "tsup", | ||
"test": "jest --no-cache --detectOpenHandles", | ||
"lint": "eslint src --ext .js,.ts", | ||
"lint": "eslint .", | ||
"format": "prettier --write .", | ||
"backup": "git add . && git commit -m \"chore: backup\" && git push", | ||
"up": "npx npm-check-updates -u" | ||
"up": "npx taze minor -r -f -w -i", | ||
"prepare": "husky" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/chengpeiquan/vite-plugin-banner.git" | ||
"url": "https://github.com/chengpeiquan/vite-plugin-banner" | ||
}, | ||
"keywords": [ | ||
"vite-plugin", | ||
"vite plugin", | ||
"vite banner" | ||
], | ||
"devDependencies": { | ||
"@babel/core": "^7.18.10", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/preset-env": "^7.18.10", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@types/babel__core": "^7.1.19", | ||
"@types/jest": "^28.1.7", | ||
"@types/node": "^18.7.8", | ||
"@typescript-eslint/eslint-plugin": "^5.33.1", | ||
"@typescript-eslint/parser": "^5.33.1", | ||
"babel-jest": "^28.1.3", | ||
"dts-bundle-generator": "^6.12.0", | ||
"eslint": "^8.22.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"esno": "^0.16.3", | ||
"@bassist/commit": "^0.1.1", | ||
"@bassist/eslint": "^0.7.0", | ||
"@bassist/node-utils": "^0.4.1", | ||
"@bassist/tsconfig": "^0.1.1", | ||
"@types/jest": "^28.1.8", | ||
"@types/node": "^20.16.3", | ||
"eslint": "^8.57.0", | ||
"husky": "^9.1.5", | ||
"jest": "^28.1.3", | ||
"lint-staged": "^13.0.3", | ||
"prettier": "^2.7.1", | ||
"rollup": "^2.78.1", | ||
"rollup-plugin-banner2": "^1.2.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.33.0", | ||
"lint-staged": "^15.2.10", | ||
"prettier": "^3.3.3", | ||
"ts-jest": "^28.0.8", | ||
"ts-node": "^10.9.1", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.4", | ||
"vite": "^3.0.9", | ||
"yorkie": "^2.0.0" | ||
}, | ||
"gitHooks": { | ||
"pre-commit": "lint-staged", | ||
"commit-msg": "esno scripts/verifyCommit.ts" | ||
"tsup": "^8.2.4", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.4.3" | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"prettier --write" | ||
], | ||
"*.ts?(x)": [ | ||
"prettier --parser=typescript --write" | ||
"*.{js,ts}": [ | ||
"prettier --write", | ||
"eslint --fix" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.