Run flow first and faster

This commit is contained in:
Jori Lallo
2017-07-16 14:52:57 -07:00
parent 3b2ad193d5
commit f3adcd9571

View File

@@ -9,9 +9,9 @@
"build": "npm run clean && npm run build:webpack",
"start": "node index.js",
"dev": "NODE_ENV=development DEBUG=sql,cache,presenters ./node_modules/.bin/nodemon --watch server index.js",
"lint": "npm run lint:js && npm run lint:flow",
"lint": "npm run lint:flow && npm run lint:js",
"lint:js": "eslint frontend",
"lint:flow": "flow check",
"lint:flow": "flow",
"deploy": "git push heroku master",
"heroku-postbuild": "npm run build && npm run sequelize:migrate",
"sequelize:create-migration": "sequelize migration:create",
@@ -22,35 +22,19 @@
"precommit": "lint-staged"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
"*.js": ["eslint --fix", "git add"]
},
"jest": {
"verbose": false,
"roots": [
"frontend"
],
"roots": ["frontend"],
"moduleNameMapper": {
"^.*[.](s?css|css)$": "<rootDir>/__mocks__/styleMock.js",
"^.*[.](gif|ttf|eot|svg)$": "<rootDir>/__test__/fileMock.js"
},
"moduleFileExtensions": [
"js",
"jsx",
"json"
],
"moduleDirectories": [
"node_modules"
],
"modulePaths": [
"frontend"
],
"setupFiles": [
"<rootDir>/setupJest.js",
"<rootDir>/__mocks__/window.js"
]
"moduleFileExtensions": ["js", "jsx", "json"],
"moduleDirectories": ["node_modules"],
"modulePaths": ["frontend"],
"setupFiles": ["<rootDir>/setupJest.js", "<rootDir>/__mocks__/window.js"]
},
"engines": {
"node": ">= 7.6"