|
33 | 33 | "react-redux": "^5.0.3",
|
34 | 34 | "redux": "^3.6.0",
|
35 | 35 | "redux-thunk": "^2.2.0",
|
36 |
| - "standard-version": "^4.0.0", |
37 | 36 | "user-home": "^2.0.0"
|
38 | 37 | },
|
39 | 38 | "devDependencies": {
|
|
46 | 45 | "babel-preset-react": "^6.22.0",
|
47 | 46 | "babel-preset-stage-0": "^6.1.18",
|
48 | 47 | "browser-sync": "^2.9.3",
|
49 |
| - "chai": "^3.4.1", |
| 48 | + "chai": "^3.5.0", |
| 49 | + "chai-as-promised": "^6.0.0", |
50 | 50 | "electron": "^1.5.0",
|
51 | 51 | "electron-builder": "^13.8.2",
|
52 | 52 | "electron-devtools-installer": "^2.1.0",
|
|
55 | 55 | "eslint-plugin-react": "^6.9.0",
|
56 | 56 | "mocha": "^3.2.0",
|
57 | 57 | "npm-run-all": "^4.0.1",
|
58 |
| - "rimraf": "^2.5.4" |
| 58 | + "rimraf": "^2.5.4", |
| 59 | + "spectron": "^3.6.1", |
| 60 | + "standard-version": "^4.0.0" |
59 | 61 | },
|
60 | 62 | "scripts": {
|
61 | 63 | "bump": "standard-version",
|
62 |
| - "prettier": "prettier --trailing-comma all --single-quote --write --jsx-bracket-same-line --bracket-spacing 'app/**/*.js'", |
63 |
| - "lint": "eslint --no-ignore scripts app test *.js", |
| 64 | + "prettier": "prettier --trailing-comma all --single-quote --write --jsx-bracket-same-line --bracket-spacing 'app/**/*.js' 'spec/**/*.js'", |
| 65 | + "lint": "eslint --no-ignore scripts app spec *.js", |
64 | 66 | "lint:staged": "lint-staged",
|
65 | 67 | "postinstall": "install-app-deps",
|
66 | 68 | "start": "npm run private:compile -- --source-maps true && run-p -r private:watch private:serve",
|
|
69 | 71 | "private:watch": "npm run private:compile -- --source-maps true --watch --skip-initial-build",
|
70 | 72 | "private:serve": "babel-node scripts/serve.js",
|
71 | 73 | "private:compile": "babel app/ --copy-files --out-dir build",
|
72 |
| - "private:clean": "rimraf build" |
| 74 | + "private:clean": "rimraf build", |
| 75 | + "test:features": "mocha --compilers js:babel-core/register spec/features/**/*.js" |
73 | 76 | },
|
74 | 77 | "lint-staged": {
|
75 | 78 | "app/**/*.js": [
|
76 | 79 | "npm run prettier",
|
77 | 80 | "eslint --fix",
|
78 | 81 | "git add"
|
| 82 | + ], |
| 83 | + "spec/**/*.js": [ |
| 84 | + "prettier --single-quote --write", |
| 85 | + "eslint --fix", |
| 86 | + "git add" |
79 | 87 | ]
|
80 | 88 | },
|
81 | 89 | "pre-commit": "lint:staged",
|
|
0 commit comments