Skip to content

Commit

Permalink
merge axetroy's extension (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored Aug 10, 2020
1 parent a0bbdad commit bacff2a
Show file tree
Hide file tree
Showing 209 changed files with 6,912 additions and 4,787 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
out
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"globals": {
"module": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-function-return-type": 0
}
}
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
---

### test

**Describe the bug**

**To Reproduce**

1. first step
2. second step
3. ...

**Expected behavior**

A clear and concise description of what you expected to happen.

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Versions**

vscode: xxx
deno: xxx
extension: xxx
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
---
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Feature request
about: Suggest an idea for this project
---

**Is your feature request related to a problem? Please describe.**

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**

A clear and concise description of what you want to happen.
31 changes: 23 additions & 8 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: build

on: [push, pull_request]

Expand All @@ -7,6 +7,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["12.16.1"]
deno: ["0.35.0"]
os: [ubuntu-latest, macOS-latest, windows-latest]
name: test in ${{ matrix.os }}
steps:
Expand All @@ -16,28 +18,41 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: "12.16.3"
node-version: ${{ matrix.node }}

- name: Setup Deno
uses: denolib/setup-deno@master
with:
deno-version: "1.0.0"
deno-version: ${{ matrix.deno }}

- name: Log versions
- name: Environment
run: |
node -v
npm -v
yarn --version
deno --version
- name: Install
run: yarn --frozen-lockfile --non-interactive
run: yarn

- name: Check code format
run: yarn run check
run: npm run check

- name: Lint
run: npm run lint

- name: Test
run: npm run test

- name: Compile
run: yarn compile
run: |
npm run compile
- name: Package
run: yarn package
run: npm run build

- uses: actions/upload-artifact@v1
if: runner.os == 'macOS'
with:
name: package
path: ./vscode-deno.vsix
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
out
dist
node_modules
*.vsix
**/tsconfig.tsbuildinfo
.DS_Store
yarn.lock
package-json.lock
coverage
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/node_modules/**/*
out
package.json
coverage
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": true,
"singleQuote": false,
"endOfLine": "lf"
}
23 changes: 19 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// 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": [
Expand All @@ -21,9 +18,27 @@
"type": "node",
"request": "attach",
"name": "Attach to Server",
"port": 6009,
"port": 9523,
"restart": true,
"outFiles": ["${workspaceRoot}/server/out/**/*.js"]
},
{
"name": "Language Server E2E Test",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/client/out/test",
"${workspaceRoot}/client/testFixture"
],
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
}
],
"compounds": [
{
"name": "Client + Server",
"configurations": ["Launch Client", "Attach to Server"]
}
]
}
21 changes: 15 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
// 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,
"script": "compile",
"group": "build",
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": ["$tsc"]
},
{
"type": "npm",
"script": "watch",
"isBackground": true,
"group": {
"kind": "build",
"isDefault": true
}
},
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": ["$tsc-watch"]
}
]
}
42 changes: 25 additions & 17 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
.vscode/**
.github/**
typings/**
out/test/**
test/**
__test__
**/*.test.*
src/**
**/*.map
*.vsix
coverage
core/*.ts

images/**/*.gif
images/**/*.png

.gitattributes
.prettierignore
.prettierrc.json
jest.config.js
.gitignore
.gitmodules
.appveyor.yml
.travis.yml
.npmrc
.yarnrc
.eslintignore
.eslintrc.json

**/tsconfig*.json
typescript-deno-plugin
**/yarn.lock
**/package-lock.json
renovate.json

client/src
client/package.json

tsconfig*.json
package-lock.json
server/src
server/package.json

CODE_OF_CONDUCT.md
CODING_STANDARDS.md
CONTRIBUTING.md
**/node_modules/**/**.d.ts
**/node_modules/**/**.md
**/node_modules/typescript-deno-plugin/src

vsc-extension-quickstart.md
screenshot/*
examples/*
Loading

0 comments on commit bacff2a

Please sign in to comment.