Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit 2b91f8d

Browse files
committed
⬆️ Bumping dependencies
1 parent d65746c commit 2b91f8d

File tree

6 files changed

+282
-230
lines changed

6 files changed

+282
-230
lines changed

justfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# justfile
2+
#
3+
# Holds some misc scripts that I need to run on this project every once in a while.
4+
#
5+
# USAGE:
6+
#
7+
# just
8+
#
9+
# INSTALL:
10+
#
11+
# https://github.com/casey/just#installation
12+
#
13+
14+
green = "\\033[0;32m"
15+
red = "\\033[0;31m"
16+
clear = "\\033[0m"
17+
notFoundMessage = "\\033[0;31mmissing\\033[0m"
18+
foundMessage = "\\033[0;32mok\\033[0m"
19+
20+
# list the tasks
21+
_default:
22+
@just --list
23+
24+
# check the global-dependencies
25+
@globals:
26+
echo
27+
echo " fd: `which fd > /dev/null && echo "{{ green }}$(fd --version | cut -d" " -f2){{ clear }}" || echo "{{ notFoundMessage }}"`"
28+
echo " yarn: `which yarn > /dev/null && echo "{{ green }}$(yarn --version){{ clear }}" || echo "{{ notFoundMessage }}"`"
29+
echo " node: `which node > /dev/null && echo "{{ green }}$(node -v | sed s/v//){{ clear }}" || echo "{{ notFoundMessage }}"`"
30+
echo
31+
32+
# install dependencies -- only needed if something goes wrong with the silly yarn nested scoped packages bug
33+
@deps:
34+
rm -rf node_modules
35+
yarn
36+
# kill nested react typings ... ugh
37+
fd -p -I -td "@types.*@types/react" node_modules/@types -x rm -rf
38+
39+
# cuts the distributable builds
40+
@dist:
41+
yarn clean
42+
rm -rf node_modules
43+
yarn
44+
yarn typecheck
45+
yarn lint
46+
yarn test
47+
yarn clean
48+
yarn compile
49+
yarn dist
50+

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,63 +45,63 @@
4545
},
4646
"scripts": {
4747
"build-storybook": "build-storybook",
48-
"check": "tsc -p . --noEmit --pretty",
49-
"clean": "rm -rf .fusebox out dist",
48+
"typecheck": "tsc -p . --noEmit --pretty",
49+
"clean": "rm -rf .fusebox out dist coverage",
5050
"compile": "NODE_ENV=production ts-node fuse",
5151
"coverage:upload": "cat ./coverage/lcov.info | coveralls",
5252
"coverage": "yarn test --coverage --no-cache",
5353
"dist": "electron-builder --mac --win --linux --ia32 --x64",
5454
"draft": "electron-builder -p always --draft --mac --win --linux --ia32 --x64",
55-
"info": "npm-scripts-info",
56-
"lint": "tslint \"fuse.ts\" \"{src,typings}/**/*.{ts,tsx}\"",
55+
"lint": "tslint --project .",
5756
"pack": "electron-builder --dir",
5857
"postinstall": "electron-builder install-app-deps",
5958
"precommit": "lint-staged",
60-
"prepush": "npm-run-all check lint",
61-
"sanity": "npm-run-all clean check lint test clean compile clean",
59+
"prepush": "npm-run-all typecheck lint",
60+
"sanity": "npm-run-all clean typecheck lint test clean compile clean",
6261
"start": "ts-node fuse",
6362
"storybook": "start-storybook -p 6006",
6463
"test": "jest"
6564
},
6665
"dependencies": {
6766
"electron-is-dev": "^0.3.0",
68-
"electron-log": "^2.2.11",
67+
"electron-log": "^2.2.12",
6968
"electron-store": "^1.3.0",
70-
"electron-updater": "^2.16.1",
69+
"electron-updater": "^2.17.2",
7170
"electron-window-state-manager": "^0.3.2",
7271
"glamor": "^2.20.40",
7372
"mousetrap": "^1.6.1",
7473
"popmotion": "^7.8.2",
7574
"popmotion-react": "^1.1.1",
75+
"prop-types": "^15.6.0",
7676
"ramda": "^0.25.0",
7777
"react": "^16.2.0",
7878
"react-dom": "^16.2.0",
7979
"react-transition-group": "^2.2.1"
8080
},
8181
"devDependencies": {
82-
"@storybook/addon-actions": "^3.2.16",
83-
"@storybook/addon-links": "^3.2.16",
84-
"@storybook/addon-storyshots": "^3.2.16",
85-
"@storybook/react": "^3.2.16",
82+
"@storybook/addon-actions": "^3.2.17",
83+
"@storybook/addon-links": "^3.2.17",
84+
"@storybook/addon-storyshots": "^3.2.17",
85+
"@storybook/react": "^3.2.17",
8686
"@types/electron-is-dev": "^0.3.0",
8787
"@types/electron-store": "^1.2.0",
8888
"@types/jest": "^21.1.8",
8989
"@types/mousetrap": "^1.5.34",
90-
"@types/react": "^16.0.25",
90+
"@types/react": "^16.0.28",
9191
"@types/react-dom": "^16.0.3",
9292
"@types/react-test-renderer": "^16.0.0",
9393
"@types/storybook__react": "^3.0.5",
9494
"babel-preset-react": "^6.24.1",
9595
"coveralls": "^3.0.0",
9696
"electron": "^1.7.9",
97-
"electron-builder": "^19.47.1",
97+
"electron-builder": "^19.48.3",
9898
"fuse-box": "^2.4.0",
9999
"husky": "^0.14.3",
100100
"jest": "^21.2.1",
101101
"jest-expect-contain-deep": "^1.0.1",
102102
"lint-staged": "^6.0.0",
103103
"npm-run-all": "^4.1.2",
104-
"prettier": "^1.8.2",
104+
"prettier": "^1.9.1",
105105
"react-powerplug": "^0.1.2",
106106
"react-test-renderer": "^16.2.0",
107107
"ts-jest": "^21.2.4",
@@ -145,7 +145,7 @@
145145
"statements": 95
146146
}
147147
},
148-
"collectCoverage": true,
148+
"collectCoverage": false,
149149
"mapCoverage": true
150150
},
151151
"lint-staged": {

src/main/main-window/main-window.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createMainWindow } from './main-window'
2-
import * as WindowStateManager from 'electron-window-state-manager'
32
import * as containDeep from 'jest-expect-contain-deep'
43
import { BrowserWindow } from 'electron'
4+
const WindowStateManager = require('electron-window-state-manager')
55

66
it('can read window state', () => {
77
WindowStateManager.mockImplementation(() => ({ width: 10, height: 40 }))

src/renderer/platform/components/spin-animation/spin-animation-state.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ test('createSpinStates', () => {
1313
expect(typeof states.forward).toBe('function')
1414
expect(typeof states.back).toBe('function')
1515

16-
const forwardResults = states.forward({ value: { get: () => 1 } })
16+
const forwardResults: any = states.forward({ value: { get: () => 1 } } as any)
1717
expect(forwardResults.current).toBe(1)
1818

19-
const backResults = states.back({ value: { get: () => 1 } })
19+
const backResults: any = states.back({ value: { get: () => 1 } } as any)
2020
expect(backResults.current).toBe(1)
2121

2222
const value: any = () => {}

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"inlineSourceMap": true
1212
},
1313
"include": [
14-
"src"
14+
"src",
15+
"typings",
16+
"fuse.ts"
1517
]
1618
}

0 commit comments

Comments
 (0)