-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
4,890 additions
and
4,986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,3 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/naming-convention": "warn", | ||
"@typescript-eslint/semi": "warn", | ||
"curly": "warn", | ||
"eqeqeq": "warn", | ||
"no-throw-literal": "warn", | ||
"semi": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"out", | ||
"dist", | ||
"**/*.d.ts" | ||
] | ||
"extends": "@nuxtjs/typescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shamefully-hoist=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,18 @@ | ||
// A launch configuration that compiles the extension and then opens it inside a new window | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run VSCode Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
}, | ||
{ | ||
"name": "Extension Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/test/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
}, | ||
{ | ||
"name": "Run Web Extension in VS Code", | ||
"type": "pwa-extensionHost", | ||
"debugWebWorkerHost": true, | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionDevelopmentKind=web" | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"outFiles": ["${workspaceFolder}/dist/web/**/*.js"], | ||
"preLaunchTask": "npm: watch-web" | ||
"outFiles": [ | ||
"${workspaceFolder}/dist/**/*.js" | ||
], | ||
"preLaunchTask": "npm: dev" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch", | ||
"problemMatcher": "$tsc-watch", | ||
"isBackground": true, | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch-web", | ||
"group": "build", | ||
"script": "dev", | ||
"isBackground": true, | ||
"problemMatcher": ["$ts-webpack-watch"] | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
{ | ||
"base": "$ts-webpack-watch", | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "Start build", | ||
"endsPattern": "Write syntaxes/mdc.tmLanguage.json" | ||
} | ||
} | ||
], | ||
"group": "build" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ vsc-extension-quickstart.md | |
**/.eslintrc.json | ||
**/*.map | ||
**/*.ts | ||
example.md | ||
scritps/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Hello | ||
|
||
_Hello_ **World** from [`vscode-mdc`](https://github.com/nuxtlabs/vscode-mdc) | ||
|
||
> This file contains the basic Markdown Components syntax | ||
::hero | ||
:::card | ||
A nested card | ||
|
||
::::card { title="Card title" .red} | ||
A **super** nested card | ||
:::: | ||
::: | ||
:: | ||
|
||
::hero | ||
Default slot text | ||
|
||
#description | ||
This will be rendered inside the `description` slot. | ||
:: | ||
|
||
- [x] List A | ||
- [ ] List B | ||
- [ ] List B.1 | ||
|
||
{.w-30.mt--10.mb-5} | ||
|
||
## Hello{.text-red} | ||
|
||
Hello World{class="text-green text-xl"} | ||
|
||
[Link](https://nuxt.com){class="nuxt"} | ||
|
||
{#nuxt-logo} | ||
|
||
`code`{style="color: red"} | ||
|
||
_italic_{style="color: blue"} | ||
|
||
**bold**{style="color: blue"} | ||
|
||
```bash | ||
npm i nuxt | ||
``` | ||
|
||
```ts | ||
import MarkdownIt from 'markdown-it' | ||
import mdc from 'markdown-it-mdc' | ||
|
||
// :warning: this line should not be transformed | ||
const md = new MarkdownIt() | ||
.use(mdc) | ||
``` | ||
|
||
<Counter :count="1" /> | ||
|
||
<CustomComponent> | ||
Nested <Counter @click="foo" /> | ||
</CustomComponent> | ||
|
||
<style scoped> | ||
.mdc-button { | ||
background-color: #ff0000; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.