-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Restructure project * Add github actions * wip * Lerna link * Add internal packages as root deps * Commit package-lock * Make tests pass in ci * Disable npm cache * Add lint step * Fix c++ compilation * Cleanup github WF * Use npm 7 * Skip lerna bootstrap * Fix format * Final changes? * Build only node 12
- Loading branch information
Showing
133 changed files
with
16,580 additions
and
3,563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
lib | ||
es2020 | ||
commonjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"plugins": ["@typescript-eslint"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
] | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-unused-vars": [ | ||
1, | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: ci | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
build-lint-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node: [12] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm -g i npm@next-7 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run lint | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
node_modules/ | ||
lib/ | ||
proto/ | ||
workflow-lib/commonjs/ | ||
*.tsbuildinfo | ||
build/ | ||
commonjs/ | ||
es2020/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "sdk-core"] | ||
path = sdk-core | ||
url = [email protected]:temporalio/sdk-core.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
build | ||
native | ||
sdk-core | ||
lib | ||
es2020 | ||
commonjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"printWidth": 120, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,42 @@ | ||
# sdk-node | ||
Temporal NodeJS SDK | ||
# Temporal NodeJS SDK | ||
|
||
## This is a work in progress, not ready for use yet | ||
|
||
For more information see the [proposal](https://github.com/temporalio/proposals/blob/master/node/node-sdk.md). | ||
|
||
### Development | ||
|
||
#### Environment set up | ||
* Clone [sdk-core](https://github.com/temporalio/sdk-core) as a sibling directory of this repository root | ||
|
||
``` | ||
npm install | ||
npm run compile-proto | ||
git submodule init | ||
git submodule update | ||
npm ci | ||
``` | ||
|
||
#### Building | ||
|
||
``` | ||
npm run clean | ||
npm run build | ||
``` | ||
-- OR -- | ||
|
||
#### Building with watch | ||
|
||
``` | ||
npm run clean | ||
npm run build # Must be run once before build.watch | ||
npm run build.watch | ||
``` | ||
|
||
#### Testing | ||
|
||
``` | ||
npm run test | ||
``` | ||
|
||
-- OR -- | ||
|
||
``` | ||
npm run test.watch | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "3.22.1", | ||
"npmClient": "npm", | ||
"command": { | ||
"publish": { | ||
"ignoreChanges": ["ignored-file", "*.md"], | ||
"message": "chore(release): publish", | ||
"registry": "https://npm.pkg.github.com" | ||
}, | ||
"bootstrap": { | ||
"npmClientArgs": ["--no-package-lock"] | ||
} | ||
}, | ||
"packages": ["packages/*"] | ||
} |
Oops, something went wrong.