Skip to content

Commit 1effdc9

Browse files
authored
Merge pull request #263 from microsoft/monorepo
refactor: adopt monorepo structure
2 parents ef6c096 + 2163208 commit 1effdc9

27 files changed

+13152
-2712
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
on: push
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v2
10+
with:
11+
node-version: ^16
12+
- run: npm ci
13+
- run: npm run compile
14+
- run: npm test
15+
16+
publish:
17+
runs-on: ubuntu-latest
18+
needs: build
19+
if: startsWith(github.ref, 'refs/tags/v')
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: ^16
25+
- run: npm ci
26+
- run: npm run compile
27+
- run: npm test
28+
- run: npx [email protected] publish from-git
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ node_modules
2929
npm-debug.log
3030

3131
test.json
32-
debugProtocol2.d.ts
32+
debugProtocol2.d.ts
33+
*.tgz

.vscode/launch.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"type": "node",
66
"request": "launch",
77
"name": "Generate debugProtocol.ts",
8-
"program": "${workspaceRoot}/src/generator.ts",
9-
"outFiles": [ "${workspaceRoot}/out/**/*.js" ]
8+
"program": "${workspaceRoot}/protocol/lib/generator.js",
109
}
1110
]
12-
}
11+
}

.vscode/tasks.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"type": "typescript",
8-
"tsconfig": "src/tsconfig.json",
7+
"type": "npm",
8+
"script": "compile",
9+
"group": "build",
910
"problemMatcher": [
1011
"$tsc"
1112
],
12-
"group": {
13-
"kind": "build",
14-
"isDefault": true
15-
}
13+
"label": "npm: compile",
14+
"detail": "lerna run compile --stream"
1615
}
1716
]
18-
}
17+
}

0 commit comments

Comments
 (0)