Skip to content

Commit

Permalink
Merge pull request #7 from structure-codes/develop
Browse files Browse the repository at this point in the history
Web support
  • Loading branch information
alex-oser authored Nov 10, 2021
2 parents 92752b4 + f59586b commit dc61fb9
Show file tree
Hide file tree
Showing 21 changed files with 10,314 additions and 2,066 deletions.
32 changes: 13 additions & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
/**@type {import('eslint').Linter.Config} */
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'semi': [2, "always"],
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
}
};
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
rules: {
semi: [2, "always"],
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/ban-ts-comment": 0,
},
};
11 changes: 7 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: install
run: npm ci
- name: test
run: npm test
- name: build
run: npm run build
- name: package
run: |
npm ci
npm run package
ls -lt *.vsix
run: npm run package
- uses: actions/upload-artifact@v2
with:
name: vscode-tree-extension
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
on:
workflow_dispatch:
create:
tags:
- "*v"
release:
types: [released]

name: Deploy Extension
jobs:
Expand All @@ -14,6 +13,7 @@ jobs:
with:
node-version: 14
- run: npm ci
- run: npm run build
- run: npm run package
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.vsix
node_modules/
out/
dist/
vscode-tree-extension-*
*.zip
7 changes: 2 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"amodio.tsl-problem-matcher"
]
}
44 changes: 35 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,47 @@
// 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 Extension",
"name": "Run Tree (Sandboxed)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "npm: build",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}"
],
"cwd": "${workspaceFolder}",
"debugWebviews": true,
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"skipFiles": [
"<node_internals>/**",
"**/node_modules/**",
"**/resources/app/out/vs/**"
],
"smartStep": true,
"sourceMaps": true,
"trace": true,
"env": {
"VSCODE_DEBUG": "true"
}
},
{
"name": "Run Tree",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: dev",
"env": {
"VSCODE_DEBUG": "true"
}
}
]
}
}
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// TODO: how to make bg tasks
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev",
"group": "build",
"isBackground": true,
"problemMatcher": ["$ts-webpack-watch"]
}
]
}
9 changes: 9 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.github
.vscode
src
.gitignore
jest.config.ts
package.json
tsconfig.json
*.zip
*.vsix
7 changes: 7 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
roots: ['<rootDir>'],
transform: {
'^.+\\.ts?$': 'ts-jest',
},
};
Loading

0 comments on commit dc61fb9

Please sign in to comment.