Skip to content

Commit

Permalink
其他
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-hxl committed Nov 24, 2022
1 parent 20f0e5f commit cbd857d
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 68 deletions.
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/dist/*
.local
.output.js
/node_modules/**

**/*.svg
**/*.sh

/public/*
/publish/*
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": false,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": true,
"trailingComma": "none",
"semi": false
}
14 changes: 7 additions & 7 deletions esbuild.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require("esbuild").buildSync({
entryPoints: ["./src/index.ts"],
target: "ES2015",
require('esbuild').buildSync({
entryPoints: ['./src/index.ts'],
target: 'ES2015',
bundle: true,
platform: "neutral",
platform: 'neutral',
minify: true,
outdir: "./publish/lib",
outExtension: { ".js": ".mjs" },
});
outdir: './publish/lib',
outExtension: { '.js': '.mjs' }
})
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "xl-store",
"version": "0.1.5",
"version": "0.1.6",
"type": "module",
"description": "状态管理仓库",
"scripts": {
"build": "node esbuild.js",
"prettier": "prettier --write .",
"test": "ts-node-esm test/test.ts"
},
"author": "coderhxl",
"license": "ISC",
"dependencies": {},
"devDependencies": {
"@types/node": "^18.7.18",
"esbuild": "^0.15.8",
"typescript": "^4.8.3"
"prettier": "^2.8.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
}
}
Loading

0 comments on commit cbd857d

Please sign in to comment.