Skip to content

Commit

Permalink
feat: Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mvsde committed Jul 6, 2024
0 parents commit af7912f
Show file tree
Hide file tree
Showing 21 changed files with 3,479 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{md,yaml,yml}]
indent_style = space
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous integration
on:
- push

jobs:
typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: node --run typecheck

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: node --run lint
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist
/node_modules
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
message="chore(release): %s"
sign-git-tag=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsc.autoDetect": "off"
}
43 changes: 43 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": {
"owner": "typescript",
"source": "esbuild",
"applyTo": "closedDocuments",
"severity": "error",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^[✘▲] \\[([A-Z]+)\\] (.+)",
"severity": 1,
"message": 2
},
{
"regexp": "^(?:\\t| {4})(?!\\s)([^:]+)(?::([0-9]+))?(?::([0-9]+))?:$",
"file": 1,
"line": 2,
"column": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "\\[watch\\] build started",
"endsPattern": "\\[watch\\] build finished"
}
},
"isBackground": true,
"label": "npm: watch",
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
10 changes: 10 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.github
.gitignore
.npmrc
.nvmrc
/.vscode
/node_modules
/src
esbuild.mjs
eslint.config.mjs
tsconfig.json
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Contributing

## Getting started

```sh
npm install
```

- Inside VS Code press `F5` to open a new window with the extension loaded.
- Set breakpoints in your code to debug the extension.
- Find output from the extension in the debug console.

## Make changes

- You can relaunch the extension from the debug toolbar after changing code.
- You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with the extension to load your changes.

## Explore the VS Code API

- You can open the full set of our API when you open the file `node_modules/@types/vscode/index.d.ts`.

## Create a release

Bump the package version and generate a changelog:

```sh
npm version …
```

Publish the new version with [vsce](https://github.com/microsoft/vscode-vsce):

```sh
npx @vscode/vsce@latest publish
```

See [npm version docs](https://docs.npmjs.com/cli/commands/npm-version) for all available arguments.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright © 2024-present, Fynn Becker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# WebC for VS Code

Please refer to the [WebC documentation](https://www.11ty.dev/docs/languages/webc/) for how to use WebC.

## Features

- Associates `.webc` files with HTML language
- Suggestions for WebC attributes
45 changes: 45 additions & 0 deletions data/at.html-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"version": 1.1,
"globalAttributes": [
{
"name": "@attributes",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#@attributes"
}
]
},
{
"name": "@html",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#@html"
}
]
},
{
"name": "@raw",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#@raw"
}
]
},
{
"name": "@text",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#@raw"
}
]
}
]
}
161 changes: 161 additions & 0 deletions data/webc.html-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"version": 1.1,
"globalAttributes": [
{
"name": "webc:keep",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webckeep"
}
]
},
{
"name": "webc:nokeep",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcnokeep"
}
]
},
{
"name": "webc:import",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcimport"
}
]
},
{
"name": "webc:if",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcif"
}
]
},
{
"name": "webc:elseif",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcelseif-and-webcelse"
}
]
},
{
"name": "webc:else",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcelseif-and-webcelse"
}
]
},
{
"name": "webc:for",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcfor-loops"
}
]
},
{
"name": "webc:root",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#attributes-and-webcroot"
}
],
"values": [
{
"name": "override"
}
]
},
{
"name": "webc:is",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcis"
}
]
},
{
"name": "webc:scoped",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcscoped"
}
]
},
{
"name": "webc:setup",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcsetup"
}
]
},
{
"name": "webc:type",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#using-template-syntax-to-generate-content"
}
],
"values": [
{
"name": "11ty"
},
{
"name": "js"
},
{
"name": "css:scoped"
}
]
},
{
"name": "webc:raw",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcraw"
}
]
},
{
"name": "webc:ignore",
"description": " ",
"references": [
{
"name": "WebC Documentation",
"url": "https://www.11ty.dev/docs/languages/webc/#webcignore"
}
]
}
]
}
Loading

0 comments on commit af7912f

Please sign in to comment.