mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Use different script for pre-commit and manual start
This commit is contained in:
parent
bd236648fc
commit
e3a37ec2d6
@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
'**/*.ts?(x)': () => 'npm run build',
|
||||
'*.{js,jsx,ts,tsx}': [
|
||||
'npm run linter',
|
||||
'npm run linter-precommit',
|
||||
'git add',
|
||||
],
|
||||
};
|
||||
|
@ -3,7 +3,8 @@
|
||||
"version": "1.0.0",
|
||||
"description": "Joplin root package for linting",
|
||||
"scripts": {
|
||||
"linter": "./node_modules/.bin/eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx",
|
||||
"linter": "./node_modules/.bin/eslint --fix --quiet --ext .js --ext .jsx --ext .ts --ext .tsx",
|
||||
"linter-precommit": "./node_modules/.bin/eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx",
|
||||
"linter-ci": "./node_modules/.bin/eslint --quiet --ext .js --ext .jsx --ext .ts --ext .tsx",
|
||||
"watch": "node node_modules/typescript/bin/tsc --watch --project tsconfig.dev.json",
|
||||
"build": "gulp build",
|
||||
|
Loading…
Reference in New Issue
Block a user