Skip to content

Commit

Permalink
chore: pkg dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuscx committed Sep 12, 2023
1 parent ea0d99f commit 4acbda5
Show file tree
Hide file tree
Showing 11 changed files with 3,202 additions and 1,560 deletions.
10 changes: 10 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineUserConfig } from 'vuepress'
import SearchPlugin from '../../dist/node/index'
export default defineUserConfig({
lang: 'zh-CN',
title: '你好, VuePress !',
description: '这是我的第一个 VuePress 站点',
plugins: [
SearchPlugin()
]
})
55 changes: 31 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "pkg-name",
"version": "0.0.1",
"private": true,
"packageManager": "pnpm@8.6.9",
"packageManager": "pnpm@8.7.5",
"author": "Deuscx",
"license": "MIT",
"funding": "https://github.com/sponsors/deuscx",
Expand All @@ -13,41 +12,44 @@
},
"bugs": "https://github.com/deuscx/pkg-name/issues",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
".": "./dist/node/index.js",
"./client": "./dist/client/index.js",
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"main": "./dist/node/index.js",
"types": "./dist/node/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"start": "tsx ./src/index.ts",
"clean": "rimraf dist",
"build": "npm run clean && tsc && npm run copy",
"copy": "copyfiles -u 1 \"src/**/*.vue\" dist",
"lint": "eslint .",
"lint:fix": "nr lint --fix",
"release": "bumpp && npm publish",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:update": "vitest -u",
"prepublishOnly": "nr build"
"prepublishOnly": "nr build",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"bumpp": "^9.1.1",
"eslint": "^8.45.0",
"lint-staged": "^13.2.3",
"tsup": "^7.1.0",
"tsx": "^3.12.7",
"typescript": "^5.1.6",
"vite": "4.4.6",
"vite-plugin-inspect": "^0.7.33",
"vitest": "^0.33.0"
"@antfu/eslint-config": "^0.41.2",
"@vuepress/client": "2.0.0-beta.66",
"bumpp": "^9.2.0",
"copyfiles": "^2.4.1",
"cpx": "^1.5.0",
"eslint": "^8.49.0",
"lint-staged": "^14.0.1",
"rimraf": "^5.0.1",
"tsup": "^7.2.0",
"tsx": "^3.12.9",
"typescript": "^5.2.2",
"vitest": "^0.34.4",
"vue": "^3.3.4",
"vuepress": "2.0.0-beta.66"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
Expand All @@ -56,5 +58,10 @@
"*.{js,ts,tsx,vue,md}": [
"eslint --fix"
]
},
"dependencies": {

Check failure on line 62 in package.json

View workflow job for this annotation

GitHub Actions / lint

Expected object keys to be in specified order. 'dependencies' should be before 'lint-staged'
"@vuepress/utils": "2.0.0-beta.67",
"chokidar": "^3.5.3",
"flexsearch": "^0.7.31"
}
}
Loading

0 comments on commit 4acbda5

Please sign in to comment.