-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
40 additions
and
130 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[install] | ||
registry = "https://registry.npmmirror.com" | ||
[test] | ||
preload = "./test/happydom.test.ts" |
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 @@ | ||
import { defineConfig } from '@nubuild/cli' | ||
|
||
export default defineConfig({ | ||
entrypoints: ['./src/index.ts'], | ||
clean: true, | ||
dts: true, | ||
naming: '[name].[ext]', | ||
splitting: true, | ||
minify: true, | ||
format: 'esm', | ||
swc: { jsc: { target: 'es2015' } }, | ||
sourcemap: 'external', | ||
}) |
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,50 +1,44 @@ | ||
{ | ||
"name": "@renzp/utils", | ||
"version": "0.3.8", | ||
"description": "一款零依赖、实用的Javascript/Typescript工具库", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"types": "dist/index.d.ts", | ||
"author": "renzp <1074720760.qq.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/renzp94/utils.git" | ||
}, | ||
"homepage": "https://github.com/renzp94/utils#readme", | ||
"main": "dist/index.js", | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.8.1", | ||
"@happy-dom/global-registrator": "^14.12.0", | ||
"@nubuild/cli": "^0.0.3", | ||
"@type-challenges/utils": "^0.1.1", | ||
"@types/bun": "^1.1.4", | ||
"vitepress": "^1.2.3" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.4.5" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/renzp94/utils/issues" | ||
}, | ||
"keywords": [ | ||
"utils" | ||
], | ||
"description": "一款零依赖、实用的Javascript/Typescript工具库", | ||
"files": ["dist"], | ||
"homepage": "https://github.com/renzp94/utils#readme", | ||
"keywords": ["utils"], | ||
"license": "MIT", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org", | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "bun run scripts/build.ts", | ||
"build:es6": "tsup", | ||
"build": "nubuild build", | ||
"pub:npm": "bun run scripts/pub-npm.ts", | ||
"pub:jsr": "bun run scripts/pub-jsr.ts", | ||
"pub:all": "bun run scripts/pub-all.ts", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs", | ||
"docs:preview": "vitepress preview docs" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.8.1", | ||
"@happy-dom/global-registrator": "^14.12.0", | ||
"@type-challenges/utils": "^0.1.1", | ||
"@types/bun": "^1.1.4", | ||
"bun-plugin-dts": "^0.2.3", | ||
"tsup": "^8.1.0", | ||
"vitepress": "^1.2.3" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.4.5" | ||
} | ||
"type": "module", | ||
"types": "dist/index.d.ts" | ||
} |
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
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,27 +1,6 @@ | ||
import { jsrPublish, npmPublish } from './common' | ||
import { build, jsrPublish, npmPublish } from './common' | ||
|
||
// biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
console.log('📦 打包中...') | ||
await Bun.$`bun run build:es6` | ||
// biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
console.log('📦 打包成功 🎉🎉🎉') | ||
await build() | ||
await npmPublish() | ||
await jsrPublish() | ||
await Bun.$`git push origin --follow-tags` | ||
|
||
// // biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
// console.log('📦 打包中...') | ||
// const result = await build() | ||
|
||
// if (result.success) { | ||
// // biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
// console.log('📦 打包成功 🎉🎉🎉') | ||
// await npmPublish() | ||
// await jsrPublish() | ||
// await Bun.$`git push origin --follow-tags` | ||
// } else { | ||
// // biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
// console.log('📦 打包失败 🚨\n') | ||
// // biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
// console.log(result.logs) | ||
// } |
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,21 +1,5 @@ | ||
import { npmPublish } from './common' | ||
import { build, npmPublish } from './common' | ||
|
||
await Bun.$`bun run build:es6` | ||
// biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
console.log('📦 打包成功 🎉🎉🎉') | ||
await build() | ||
await npmPublish() | ||
await Bun.$`git push origin --follow-tags` | ||
|
||
// const result = await build() | ||
|
||
// if (result.success) { | ||
// // biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
// console.log('📦 打包成功 🎉🎉🎉') | ||
// await npmPublish() | ||
// await Bun.$`git push origin --follow-tags` | ||
// } else { | ||
// // biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
// console.log('📦 打包失败 🚨\n') | ||
// // biome-ignore lint/suspicious/noConsoleLog: <explanation> | ||
// console.log(result.logs) | ||
// } |
This file was deleted.
Oops, something went wrong.