Skip to content

Commit a7e1af6

Browse files
authored
Merge pull request #87 from hackmdio/feature/new-api-client
Feature/new-api-client
2 parents 64dc0a7 + 65d9b9e commit a7e1af6

36 files changed

+3790
-1026
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = {
3434
'import/no-named-as-default': 'off',
3535
'import/no-named-as-default-member': 'off',
3636
'@typescript-eslint/no-var-requires': 'warn',
37+
'import/default': 'warn',
3738
},
3839
settings: {
3940
react: {

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ node_modules
44
*.vsix
55
dist
66
**/.DS_Store
7+
8+
.vscode-test-web

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
4-
"recommendations": ["ms-vscode.vscode-typescript-tslint-plugin"]
5-
}
4+
"recommendations": []
5+
}

.vscode/launch.json

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,37 @@
1414
"--extensionDevelopmentPath=${workspaceFolder}",
1515
"/Users/yukai/Projects/HackMD/hackmd-production/public/docs/features.md"
1616
],
17-
"outFiles": ["${workspaceFolder}/out/**/*.js"]
17+
"outFiles": [
18+
"${workspaceFolder}/dist/**/*.js"
19+
]
20+
},
21+
{
22+
"name": "Run Web Extension in VS Code",
23+
"type": "pwa-extensionHost",
24+
"debugWebWorkerHost": true,
25+
"runtimeExecutable": "${execPath}",
26+
"request": "launch",
27+
"args": [
28+
"--extensionDevelopmentPath=${workspaceFolder}",
29+
"--extensionDevelopmentKind=web"
30+
],
31+
"outFiles": [
32+
"${workspaceFolder}/dist/web/*.js"
33+
]
1834
},
1935
{
2036
"name": "Extension Tests",
2137
"type": "extensionHost",
2238
"request": "launch",
2339
"runtimeExecutable": "${execPath}",
24-
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test"],
25-
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
40+
"args": [
41+
"--extensionDevelopmentPath=${workspaceFolder}",
42+
"--extensionTestsPath=${workspaceFolder}/out/test"
43+
],
44+
"outFiles": [
45+
"${workspaceFolder}/out/test/**/*.js"
46+
],
2647
"preLaunchTask": "npm: watch"
2748
}
2849
]
29-
}
50+
}

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
},
99
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1010
"typescript.tsc.autoDetect": "off",
11-
"editor.formatOnSave": true
12-
}
11+
"editor.formatOnSave": true,
12+
"cSpell.words": [
13+
"zustand"
14+
]
15+
}

images/icon/dark/file-text.svg

Lines changed: 2 additions & 0 deletions
Loading

images/icon/dark/users.svg

Lines changed: 2 additions & 0 deletions
Loading

images/icon/light/file-text.svg

Lines changed: 2 additions & 0 deletions
Loading

images/icon/light/users.svg

Lines changed: 2 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)