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

feat: sort scripts in package.json #88

Merged
merged 1 commit into from
Jun 30, 2019
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
65 changes: 33 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,47 @@
"name": "memo",
"version": "1.0.0",
"description": "A memo for myself",
"keywords": [
"blog"
],
"homepage": "https://github.com/orzyyyy/memo#readme",
"bugs": {
"url": "https://github.com/orzyyyy/memo/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/orzyyyy/memo"
},
"license": "MIT",
"scripts": {
"start": "npm run pre:start && npm-run-all --parallel server dev",
"lint": "tslint -c tslint.json 'src/**/*.tsx' 'server/**/*.ts'",
"server": "node server",
"kill": "taskkill /f /im node.exe",
"dev": "nino koei -c scripts/build -w -d -t",
"build": "tsc && npm run generate && nino koei -c scripts/build",
"prettier": "nino prettier",
"test": "nino test",
"clean:views": "node scripts/pre-start",
"codecov": "nino test -d",
"lint-staged": "lint-staged",
"compile:server": "tsc --target es6 --module commonjs --sourceMap",
"d": "tsc --target es6 --module commonjs --sourceMap --watch",
"deploy": "node scripts/publish",
"dev": "nino koei -c scripts/build -w -d -t",
"generate": "node scripts/generateSider",
"tsc": "tsc",
"compile:server": "tsc --target es6 --module commonjs --sourceMap",
"clean:views": "node scripts/pre-start",
"pre:start": "npm-run-all compile:server clean:views generate"
},
"repository": {
"type": "git",
"url": "https://github.com/orzyyyy/memo"
"lint": "tslint -c tslint.json 'src/**/*.tsx' 'server/**/*.ts'",
"lint-staged": "lint-staged",
"pre:start": "npm-run-all compile:server clean:views generate",
"prettier": "nino prettier",
"server": "node server",
"sort-script": "npx sort-package-json",
"start": "npm run pre:start && npm-run-all --parallel server dev",
"test": "nino test",
"tsc": "tsc"
},
"keywords": [
"blog"
"pre-commit": [
"lint-staged"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/orzyyyy/memo/issues"
"lint-staged": {
"*.{ts,tsx}": [
"npm run prettier",
"npm run lint",
"git add"
]
},
"homepage": "https://github.com/orzyyyy/memo#readme",
"dependencies": {
"antd": "^3.19.8",
"koa": "^2.7.0",
Expand Down Expand Up @@ -71,15 +82,5 @@
"tslint-config-prettier": "^1.18.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^4.0.0"
},
"pre-commit": [
"lint-staged"
],
"lint-staged": {
"*.{ts,tsx}": [
"npm run prettier",
"npm run lint",
"git add"
]
}
}