Skip to content

Commit 84ba844

Browse files
committedApr 2, 2020
build extension package progress
1 parent 3be6199 commit 84ba844

File tree

7 files changed

+17
-58
lines changed

7 files changed

+17
-58
lines changed
 

‎.vscodeignore

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
## Common
22
.gitignore
33

4-
## Docs
5-
DEV.md
6-
74
## VSCode
85
.vscode/**
96
.vscode-test/**
107
vsc-extension-quickstart.md
11-
*.vsix
8+
9+
## TypeScript
10+
**/tsconfig.json
11+
**/tslint.json
12+
**/*.ts
1213

1314
## Dev Folders
1415
src/**
1516
web-app/**
17+
scripts/**
18+
docs/**
1619
.env
1720
.prettierrc.js
1821
jest.config.js
1922

20-
## TypeScript
21-
**/tsconfig.json
22-
**/tslint.json
23-
**/*.ts
24-
2523
## Tests
26-
build/test/**
24+
build/test/**
25+
26+
## Docs
27+
DEV.md

‎package-lock.json

-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-9
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@
1717
},
1818
"main": "./build/extension.js",
1919
"scripts": {
20-
"build": "rm -rf build && npm run build:ext && npm run build:web",
21-
"build:ext": "tsc -p ./",
22-
"build:web": "cd web-app && npm run build",
23-
"postbuild:web": "cp -R ./web-app/build/ ./build/ && node scripts/fixFontPaths.js",
20+
"build": "./scripts/build.sh",
2421
"postinstall": "node ./node_modules/vscode/bin/install",
2522
"lint": "eslint src/**/*ts",
26-
"machine": "node ./out/state/index.js",
2723
"storybook": "cd web-app && npm run storybook",
2824
"test": "jest",
29-
"test:ext": "node ./build/test/runTest.js",
3025
"vscode:prepublish": "npm run build",
3126
"watch": "tsc -watch -p ./"
3227
},
@@ -38,8 +33,6 @@
3833
},
3934
"devDependencies": {
4035
"@types/assert": "^1.4.6",
41-
"@types/chokidar": "^2.1.3",
42-
"@types/dotenv": "^8.2.0",
4336
"@types/jest": "^25.1.4",
4437
"@types/jsdom": "^16.2.0",
4538
"@types/node": "^13.9.8",
@@ -48,7 +41,6 @@
4841
"eslint": "^6.8.0",
4942
"eslint-config-prettier": "^6.10.1",
5043
"eslint-plugin-prettier": "^3.1.2",
51-
"graphql": "^14.6.0",
5244
"jest": "^25.2.4",
5345
"prettier": "^2.0.2",
5446
"ts-jest": "^25.2.1",

‎web-app/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"dependencies": {
2828
"@alifd/next": "^1.19.21",
2929
"@alifd/theme-4": "^0.2.3",
30+
"@emotion/babel-preset-css-prop": "^10.0.27",
3031
"@emotion/core": "^10.0.28",
3132
"@sentry/browser": "^5.15.4",
32-
"graphql": "^14.6.0",
3333
"markdown-it": "^10.0.0",
3434
"markdown-it-emoji": "^1.4.0",
3535
"markdown-it-prism": "^2.0.5",
@@ -39,12 +39,10 @@
3939
"react-addons-css-transition-group": "^15.6.2",
4040
"react-dom": "^16.13.1",
4141
"reselect": "^4.0.0",
42-
"typescript": "^3.8.3",
4342
"xstate": "^4.8.0"
4443
},
4544
"devDependencies": {
4645
"@babel/core": "^7.5.4",
47-
"@emotion/babel-preset-css-prop": "^10.0.27",
4846
"@storybook/addon-actions": "^5.3.17",
4947
"@storybook/addon-knobs": "^5.3.17",
5048
"@storybook/addon-links": "^5.3.17",
@@ -73,6 +71,7 @@
7371
"react-app-rewired": "^2.1.5",
7472
"react-scripts": "^3.4.1",
7573
"sass-loader": "^8.0.2",
74+
"typescript": "^3.8.3",
7675
"typescript-eslint-parser": "^22.0.0"
7776
}
7877
}

‎web-app/src/containers/Tutorial/LevelPage/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface PageProps {
1010
}
1111

1212
const LevelSummaryPageContainer = (props: PageProps) => {
13-
const { position, progress, processes, testStatus, error } = props.context
13+
const { position, progress, processes, testStatus } = props.context
1414

1515
const tutorial = selectors.currentTutorial(props.context)
1616
const levelData: TT.Level = selectors.currentLevel(props.context)

‎web-app/src/services/hooks/useFetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22

3-
const useFetch = <T>(url: string, options?: object): { data: T | null; error: string | null; loading: boolean } => {
3+
const useFetch = <T>(url: string, options: object = {}): { data: T | null; error: string | null; loading: boolean } => {
44
const [data, setData] = React.useState(null)
55
const [error, setError] = React.useState(null)
66
const [loading, setLoading] = React.useState(true)

‎web-app/src/services/state/machine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as CR from 'typings'
2-
import { assign, Machine, MachineOptions } from 'xstate'
2+
import { Machine, MachineOptions } from 'xstate'
33
import createActions from './actions'
44

55
const createOptions = ({ editorSend }: any): MachineOptions<CR.MachineContext, CR.MachineEvent> => ({

0 commit comments

Comments
 (0)
Failed to load comments.