Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提交以下 #21

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@
"source": "src/index.js",
"scripts": {
"init-example": "modules-dev-libs-init",
"start": "run-p start:lib start:md start:example",
"build": "run-s build:lib build:md build:example",
"build:lib": "microbundle --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment",
"build:md": "create-md",
"start:md": "create-md --watch",
"start:lib": "microbundle watch --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment",
"start": "run-p start:lib start:example",
"build": "run-s build:lib build:example",
"build:lib": "microbundle --no-compress --format modern,cjs --jsx React.createElement",
"start:lib": "microbundle watch --no-compress --format modern,cjs --jsx React.createElement",
"test": "run-s test:unit test:lint test:build",
"test:build": "run-s build",
"test:lint": "eslint .",
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"build:example": "cd example && npm run build",
"start:example": "cd example && npm run start",
"deploy": "gh-pages -d example/build",
"prettier": "prettier --config .prettierrc --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'"
"lint-staged": "lint-staged",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -33,7 +31,7 @@
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"src/**/*.{js,jsx,ts,tsx,json,css,scss}": [
"prettier --config .prettierrc --write",
"git add"
]
Expand Down
Loading