Skip to content

Commit 13cba14

Browse files
authored
Merge pull request #1 from srcpush/develop
Modernize CLI toolchain, restructure source, and expand docs & tests
2 parents a03dc78 + 941f004 commit 13cba14

62 files changed

Lines changed: 7226 additions & 5674 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main, develop]
7+
8+
jobs:
9+
verify:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: npm
17+
- run: npm ci
18+
- run: npm run lint
19+
- run: npm run typecheck
20+
- run: npm test
21+
- run: npm run build

.github/workflows/npm-publish.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,35 @@ name: Node.js build and publish package
22

33
on:
44
release:
5-
types: [ created ]
5+
types: [created]
66

77
jobs:
8-
build:
8+
verify:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
1414
node-version: 20
15-
- run: npm i
15+
cache: npm
16+
- run: npm ci
17+
- run: npm run lint
18+
- run: npm run typecheck
19+
- run: npm test
20+
- run: npm run build
1621

1722
publish-npm:
18-
needs: build
23+
needs: verify
1924
runs-on: ubuntu-latest
2025
steps:
21-
- uses: actions/checkout@v3
22-
- uses: actions/setup-node@v3
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
2328
with:
2429
node-version: 20
2530
registry-url: https://registry.npmjs.org/
26-
- run: npm i
31+
cache: npm
32+
- run: npm ci
2733
- run: npm run build
2834
- run: npm publish
2935
env:
30-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
node_modules
2+
!tests/fixtures/resources/TestApp/node_modules/
3+
!tests/fixtures/resources/TestApp/node_modules/**
24
.npmrc
35
.idea
4-
../api/node_modules
5-
../api/node_modules
6-
/bin/
6+
dist/
7+
bin/
78
/___automation___.npmrc___
9+
coverage/
10+
.npm-cache/

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) Microsoft Corporation
4+
Copyright (c) Source Push contributors
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

0 commit comments

Comments
 (0)