|
14 | 14 | "private": true, |
15 | 15 | "main": "main/index.js", |
16 | 16 | "scripts": { |
17 | | - "test": "xo", |
| 17 | + "test": "xo && ava --verbose", |
18 | 18 | "start": "yarn && electron .", |
19 | 19 | "build": "next build renderer && next export renderer", |
20 | 20 | "dist": "npm run build && electron-builder", |
|
25 | 25 | "name": "Kap" |
26 | 26 | }, |
27 | 27 | "dependencies": { |
| 28 | + "@babel/preset-react": "^7.0.0", |
| 29 | + "@babel/runtime": "^7.6.2", |
28 | 30 | "@ffmpeg-installer/ffmpeg": "^1.0.20", |
29 | 31 | "@sentry/browser": "^5.6.3", |
30 | 32 | "@sentry/electron": "^0.17.3", |
|
68 | 70 | "react-dom": "^16.9.0", |
69 | 71 | "react-linkify": "^0.2.2", |
70 | 72 | "semver": "^6.3.0", |
| 73 | + "styled-jsx": "^3.2.2", |
71 | 74 | "tempy": "^0.3.0", |
72 | 75 | "tildify": "^2.0.0", |
73 | 76 | "tmp": "^0.1.0", |
74 | 77 | "unstated": "^1.2.0" |
75 | 78 | }, |
76 | 79 | "devDependencies": { |
| 80 | + "@babel/plugin-proposal-class-properties": "^7.5.5", |
| 81 | + "@babel/plugin-proposal-object-rest-spread": "^7.6.2", |
| 82 | + "@babel/plugin-transform-runtime": "^7.6.2", |
| 83 | + "@babel/preset-env": "^7.6.2", |
| 84 | + "@babel/register": "^7.6.2", |
| 85 | + "ava": "^1.0.0-beta.8", |
77 | 86 | "babel-eslint": "^10.0.3", |
| 87 | + "browser-env": "^3.2.6", |
78 | 88 | "electron": "6.0.9", |
79 | 89 | "electron-builder": "^21.2.0", |
| 90 | + "enzyme": "^3.10.0", |
| 91 | + "enzyme-adapter-react-16": "^1.14.0", |
80 | 92 | "eslint-config-xo-react": "^0.20.0", |
81 | 93 | "eslint-plugin-react": "^7.14.3", |
82 | 94 | "eslint-plugin-react-hooks": "^2.0.1", |
|
107 | 119 | "renderer/out" |
108 | 120 | ] |
109 | 121 | }, |
| 122 | + "ava": { |
| 123 | + "files": [ |
| 124 | + "test/window-header.js", |
| 125 | + "test/keyboard-number-input.js", |
| 126 | + "!/test/editor" |
| 127 | + ], |
| 128 | + "require": [ |
| 129 | + "@babel/register", |
| 130 | + "@babel/preset-react", |
| 131 | + "./test/helpers/browser-env.js", |
| 132 | + "@babel/plugin-proposal-class-properties", |
| 133 | + "@babel/plugin-proposal-object-rest-spread" |
| 134 | + ] |
| 135 | + }, |
110 | 136 | "husky": { |
111 | 137 | "hooks": { |
112 | 138 | "pre-commit": "npm test", |
|
0 commit comments