|
85 | 85 | "license": "MIT",
|
86 | 86 | "lint-staged": {
|
87 | 87 | "*.js": [
|
88 |
| - "prettier --write --no-semi --print-width 100 --single-quote \"*.js\"", |
89 |
| - "standard --fix \"src/**/*.js\"", |
| 88 | + "prettier --write --no-semi --print-width 100 --single-quote", |
| 89 | + "standard --fix", |
90 | 90 | "git add"
|
91 | 91 | ],
|
92 | 92 | "*.{ts,tsx}": [
|
93 | 93 | "prettier --write --no-semi --print-width 100 --single-quote",
|
94 |
| - "tslint \"src/**/*.{ts,tsx}\" --fix", |
| 94 | + "tslint --fix", |
95 | 95 | "git add"
|
96 | 96 | ]
|
97 | 97 | },
|
|
100 | 100 | "private": true,
|
101 | 101 | "repository": "skellock/electron-starter",
|
102 | 102 | "scripts": {
|
| 103 | + "check": "tsc -p tsconfig.json --noEmit --pretty", |
103 | 104 | "clean": "rm -rf .fusebox out dist",
|
104 | 105 | "compile": "NODE_ENV=production node fuse",
|
105 | 106 | "dist": "electron-builder --mac --win --linux --ia32 --x64",
|
|
114 | 115 | "test:renderer": "electron-ava src/renderer/**/*.test.js",
|
115 | 116 | "test:snapshots": "electron-ava src/renderer/**/*.test.js -u"
|
116 | 117 | },
|
117 |
| - "scripts-info": { |
118 |
| - "clean": "Removes build artifacts and caches.", |
119 |
| - "compile": "Builds both js bundles in production mode.", |
120 |
| - "dist": "Creates a executable for distributing.", |
121 |
| - "draft": "Releases a version as a draft.", |
122 |
| - "info": "Shows available npm scripts.", |
123 |
| - "pack": "Creates a executable for trying out.", |
124 |
| - "postinstall": "Used by electron-builder to build native dependencies.", |
125 |
| - "precommit": "Runs automatically before committing code in git.", |
126 |
| - "start": "Starts the app in dev mode.", |
127 |
| - "test": "Runs tests.", |
128 |
| - "test:main": "Runs the main process tests.", |
129 |
| - "test:renderer": "Runs the renderer process tests.", |
130 |
| - "test:snapshots": "Updates the snapshots." |
131 |
| - }, |
132 | 118 | "standard": {
|
133 | 119 | "parser": "babel-eslint"
|
134 | 120 | },
|
|
0 commit comments