Skip to content

Commit f9d2294

Browse files
authored
Merge pull request #89 from hackmdio/release/2.0.0
Release/2.0.0
2 parents 7359ce3 + e40d285 commit f9d2294

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+20425
-7351
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-react", "@babel/preset-typescript"]
3+
}

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.eslintrc.js

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
module.exports = {
2+
env: {
3+
es2021: true,
4+
node: true,
5+
},
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:react/recommended',
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:react-hooks/recommended',
11+
'plugin:import/recommended',
12+
'plugin:import/typescript',
13+
'prettier',
14+
],
15+
overrides: [],
16+
parser: '@typescript-eslint/parser',
17+
parserOptions: {
18+
ecmaVersion: 'latest',
19+
sourceType: 'module',
20+
},
21+
plugins: ['react', '@typescript-eslint'],
22+
rules: {
23+
'react/react-in-jsx-scope': 'off',
24+
'import/order': [
25+
'error',
26+
{
27+
'newlines-between': 'always',
28+
alphabetize: {
29+
order: 'asc',
30+
caseInsensitive: true,
31+
},
32+
},
33+
],
34+
'import/no-named-as-default': 'off',
35+
'import/no-named-as-default-member': 'off',
36+
'@typescript-eslint/no-var-requires': 'warn',
37+
'import/default': 'warn',
38+
},
39+
settings: {
40+
react: {
41+
version: 'detect',
42+
},
43+
'import/resolver': {
44+
typescript: true,
45+
node: true,
46+
},
47+
'import/core-modules': ['vscode'],
48+
},
49+
};

.gitignore

+2
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

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore artifacts:
2+
dist

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true
4+
}

.vscode/extensions.json

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

.vscode/launch.json

+42-28
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,48 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"runtimeExecutable": "${execPath}",
13-
"args": [
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": [
1414
"--extensionDevelopmentPath=${workspaceFolder}",
1515
"/Users/yukai/Projects/HackMD/hackmd-production/public/docs/features.md"
16-
],
17-
"outFiles": [
18-
"${workspaceFolder}/out/**/*.js"
19-
]
20-
},
21-
{
22-
"name": "Extension Tests",
23-
"type": "extensionHost",
24-
"request": "launch",
25-
"runtimeExecutable": "${execPath}",
26-
"args": [
27-
"--extensionDevelopmentPath=${workspaceFolder}",
28-
"--extensionTestsPath=${workspaceFolder}/out/test"
29-
],
30-
"outFiles": [
31-
"${workspaceFolder}/out/test/**/*.js"
32-
],
33-
"preLaunchTask": "npm: watch"
16+
],
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+
]
34+
},
35+
{
36+
"name": "Extension Tests",
37+
"type": "extensionHost",
38+
"request": "launch",
39+
"runtimeExecutable": "${execPath}",
40+
"args": [
41+
"--extensionDevelopmentPath=${workspaceFolder}",
42+
"--extensionTestsPath=${workspaceFolder}/out/test"
43+
],
44+
"outFiles": [
45+
"${workspaceFolder}/out/test/**/*.js"
46+
],
47+
"preLaunchTask": "npm: watch"
3448
}
35-
]
36-
}
49+
]
50+
}

.vscode/settings.json

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
5-
},
6-
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
8-
},
9-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off"
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off",
11+
"editor.formatOnSave": true,
12+
"cSpell.words": [
13+
"zustand"
14+
]
1115
}

.vscode/tasks.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
2020
}

.vscodeignore

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ vsc-extension-quickstart.md
1111
webpack.config.js
1212
**/.DS_Store
1313
*.vslx
14+
node_modules
15+
patches

README.md

+21-6
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ Use the same [HackMD](https://hackmd.io) markdown right in VSCode!
1919

2020
## Features
2121

22-
- **New**: Preview you HackMD notes in VSCode
22+
- **New**: Preview your HackMD notes in VSCode
2323
- **New**: Create note from editor content
2424
- HackMD-compatible markdown rendering preview
2525
- We bring most HackMD markdown syntax into VSCode :tada:
2626

2727
### HackMD notes explorer
2828

29-
![sidebar](https://i.imgur.com/N5dS5HG.png)
29+
![sidebar](./docs/media/notes_explorer.png)
3030

31-
### Render codeblock with line numbers
31+
### Render code block with line numbers
3232

3333
![line-numbers](https://i.imgur.com/X31HZqm.png)
3434

@@ -44,24 +44,39 @@ Use the same [HackMD](https://hackmd.io) markdown right in VSCode!
4444

4545
[release-notes]: https://bit.ly/2VXRTrq
4646

47+
### 2.0.0
48+
49+
#### Added
50+
51+
- Adopt access token based API client. You need to create an access token on the HackMD [settings page](https://hackmd.io/settings#api)
52+
- Add two more tree views: History and Team Notes.
53+
54+
#### Improvements
55+
56+
- Upgrade highlight.js
57+
- Upgrade mermaid
58+
- Upgrade more dependencies
59+
- Adopt `react-vsc-treeview` package for implementing the new tree views. It's now easier to add features and fix bugs for the tree view.
60+
- Reduce bundle size. We accidentally include `node_modules` in our past builds, which is not necessary.
61+
4762
### 1.1.1
4863

4964
#### Added
5065

5166
- HackMD Snippets command
52-
- Use command: `HackMD: Create a code snippet` to create a code snippet on HackMD from selected text range
67+
- Use the command: `HackMD: Create a code snippet` to create a code snippet on HackMD from the selected text range
5368

5469
#### Fixed
5570

56-
- Activity icon it not shown ([#23](https://github.com/hackmdio/vscode-hackmd/issues/23))
71+
- Activity icon is not shown ([#23](https://github.com/hackmdio/vscode-hackmd/issues/23))
5772

5873
### 1.1.0
5974

6075
#### Added
6176

6277
- HackMD Note explorer
6378
- Preview your notes on HackMD
64-
- Create note from editor content in VSCode
79+
- Create a note from editor content in VSCode
6580

6681
### 1.0.0
6782

docs/media/notes_explorer.png

393 KB
Loading

images/icon/dark/file-text.svg

+2
Loading

images/icon/dark/users.svg

+2
Loading

images/icon/light/file-text.svg

+2
Loading

images/icon/light/users.svg

+2
Loading

0 commit comments

Comments
 (0)