1
0
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:
Laurent Cozic 2020-10-16 15:57:55 +01:00
parent bd236648fc
commit e3a37ec2d6
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
module.exports = {
'**/*.ts?(x)': () => 'npm run build',
'*.{js,jsx,ts,tsx}': [
'npm run linter',
'npm run linter-precommit',
'git add',
],
};

View File

@ -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",