@corva/create-app 0.28.0-2 → 0.28.0-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constants/manifest.js +1 -1
- package/lib/constants/package.js +150 -39
- package/lib/flows/lib/manifest.js +17 -1
- package/lib/helpers/resolve-app-runtime.js +29 -0
- package/lib/helpers/utils.js +17 -17
- package/lib/index.js +145 -142
- package/package.json +1 -1
- package/templates/{scheduler/node → javascript/scheduler}/README.md +0 -0
- package/templates/{scheduler/node → javascript/scheduler}/__test__/processor.test.js +0 -0
- package/templates/{scheduler/node → javascript/scheduler}/index.js +0 -0
- package/templates/{scheduler/node → javascript/scheduler}/src/processor.js +0 -0
- package/templates/{stream/node → javascript/stream}/README.md +0 -0
- package/templates/{stream/node → javascript/stream}/__test__/processor.test.js +0 -0
- package/templates/{stream/node → javascript/stream}/index.js +0 -0
- package/templates/{stream/node → javascript/stream}/src/processor.js +0 -0
- package/templates/{task/node → javascript/task}/README.md +0 -0
- package/templates/{task/node → javascript/task}/__test__/processor.test.js +0 -0
- package/templates/{task/node → javascript/task}/index.js +0 -0
- package/templates/{task/node → javascript/task}/src/processor.js +0 -0
- package/templates/{ui/js → javascript/ui}/.env +0 -0
- package/templates/{ui/js → javascript/ui}/.env.sample +0 -0
- package/templates/{ui/js → javascript/ui}/.eslintrc +0 -0
- package/templates/{ui/js → javascript/ui}/.prettierrc +0 -0
- package/templates/{ui/js → javascript/ui}/README.md +0 -0
- package/templates/{ui/js → javascript/ui}/config-overrides.js +0 -0
- package/templates/{ui/js → javascript/ui}/gitignore +0 -0
- package/templates/{ui/js → javascript/ui}/src/App.css +0 -0
- package/templates/{ui/js → javascript/ui}/src/App.js +0 -0
- package/templates/{ui/js → javascript/ui}/src/AppSettings.js +0 -0
- package/templates/{ui/js → javascript/ui}/src/assets/logo.svg +0 -0
- package/templates/{ui/js → javascript/ui}/src/constants.js +0 -0
- package/templates/{ui/js → javascript/ui}/src/index.js +0 -0
- package/templates/{scheduler/python → python/scheduler}/README.md +0 -0
- package/templates/{scheduler/python → python/scheduler}/lambda_function.py +0 -0
- package/templates/{scheduler/python → python/scheduler}/test/__init__.py +0 -0
- package/templates/{scheduler/python → python/scheduler}/test/app_test.py +0 -0
- package/templates/{stream/python → python/stream}/README.md +0 -0
- package/templates/{stream/python → python/stream}/lambda_function.py +0 -0
- package/templates/{stream/python → python/stream}/test/__init__.py +0 -0
- package/templates/{stream/python → python/stream}/test/app_test.py +0 -0
- package/templates/{task/python → python/task}/README.md +0 -0
- package/templates/{task/python → python/task}/lambda_function.py +0 -0
- package/templates/{task/python → python/task}/test/__init__.py +0 -0
- package/templates/{task/python → python/task}/test/app_test.py +0 -0
- package/templates/{scheduler/node-ts → typescript/scheduler}/README.md +0 -0
- package/templates/{scheduler/node-ts → typescript/scheduler}/__test__/processor.spec.ts +0 -0
- package/templates/{scheduler/node-ts → typescript/scheduler}/index.ts +0 -0
- package/templates/{scheduler/node-ts → typescript/scheduler}/lib/processor.ts +0 -0
- package/templates/{stream/node-ts → typescript/stream}/README.md +0 -0
- package/templates/{stream/node-ts → typescript/stream}/__test__/processor.spec.ts +0 -0
- package/templates/{stream/node-ts → typescript/stream}/index.ts +0 -0
- package/templates/{stream/node-ts → typescript/stream}/lib/processor.ts +0 -0
- package/templates/{task/node-ts → typescript/task}/README.md +0 -0
- package/templates/{task/node-ts → typescript/task}/__test__/processor.spec.ts +0 -0
- package/templates/{task/node-ts → typescript/task}/index.ts +0 -0
- package/templates/{task/node-ts → typescript/task}/src/processor.ts +0 -0
- package/templates/{ui/ts → typescript/ui}/.env +0 -0
- package/templates/{ui/ts → typescript/ui}/.env.sample +0 -0
- package/templates/{ui/ts → typescript/ui}/.eslintrc +0 -0
- package/templates/{ui/ts → typescript/ui}/.prettierrc +0 -0
- package/templates/{ui/ts → typescript/ui}/README.md +0 -0
- package/templates/{ui/ts → typescript/ui}/config-overrides.js +0 -0
- package/templates/{ui/ts → typescript/ui}/gitignore +0 -0
- package/templates/{ui/ts → typescript/ui}/src/App.css +0 -0
- package/templates/{ui/ts → typescript/ui}/src/App.tsx +0 -0
- package/templates/{ui/ts → typescript/ui}/src/AppSettings.tsx +0 -0
- package/templates/{ui/ts → typescript/ui}/src/assets/logo.svg +0 -0
- package/templates/{ui/ts → typescript/ui}/src/constants.ts +0 -0
- package/templates/{ui/ts → typescript/ui}/src/custom.d.ts +0 -0
- package/templates/{ui/ts → typescript/ui}/src/index.js +0 -0
- package/templates/{ui/ts → typescript/ui}/tsconfig.json +0 -0
- package/templates/scheduler/node/gitignore +0 -21
- package/templates/scheduler/node/package.json +0 -17
- package/templates/scheduler/node-ts/gitignore +0 -25
- package/templates/scheduler/node-ts/lib/processor.js +0 -16
- package/templates/scheduler/node-ts/lib/processor.js.map +0 -1
- package/templates/scheduler/node-ts/package.json +0 -37
- package/templates/scheduler/node-ts/tsconfig.build.json +0 -11
- package/templates/scheduler/node-ts/tsconfig.json +0 -34
- package/templates/scheduler/python/Makefile +0 -15
- package/templates/scheduler/python/requirements.txt +0 -2
- package/templates/stream/node/gitignore +0 -21
- package/templates/stream/node/package.json +0 -17
- package/templates/stream/node-ts/gitignore +0 -25
- package/templates/stream/node-ts/package.json +0 -37
- package/templates/stream/node-ts/tsconfig.build.json +0 -11
- package/templates/stream/node-ts/tsconfig.json +0 -34
- package/templates/stream/python/Makefile +0 -15
- package/templates/stream/python/requirements.txt +0 -2
- package/templates/task/node/gitignore +0 -21
- package/templates/task/node/package.json +0 -17
- package/templates/task/node-ts/gitignore +0 -25
- package/templates/task/node-ts/package.json +0 -37
- package/templates/task/node-ts/tsconfig.build.json +0 -11
- package/templates/task/node-ts/tsconfig.json +0 -34
- package/templates/task/python/Makefile +0 -15
- package/templates/task/python/requirements.txt +0 -2
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
|
|
6
|
-
# testing
|
|
7
|
-
/coverage
|
|
8
|
-
|
|
9
|
-
# misc
|
|
10
|
-
.env
|
|
11
|
-
.DS_Store
|
|
12
|
-
.env.local
|
|
13
|
-
.env.development.local
|
|
14
|
-
.env.test.local
|
|
15
|
-
.env.production.local
|
|
16
|
-
|
|
17
|
-
npm-debug.log*
|
|
18
|
-
yarn-debug.log*
|
|
19
|
-
yarn-error.log*
|
|
20
|
-
|
|
21
|
-
**/*.js
|
|
22
|
-
**/*.js.map
|
|
23
|
-
**/.d.ts
|
|
24
|
-
|
|
25
|
-
*.zip
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
-
exports.Processor = void 0;
|
|
4
|
-
class Processor {
|
|
5
|
-
constructor(apiClient, logger) {
|
|
6
|
-
this.apiClient = apiClient;
|
|
7
|
-
this.logger = logger;
|
|
8
|
-
}
|
|
9
|
-
async process(event) {
|
|
10
|
-
this.logger.debug({ event }, 'Event');
|
|
11
|
-
const { asset_id: assetId, schedule_start: scheduleStart, interval } = event;
|
|
12
|
-
this.logger.info(`Processing event. Asset: ${assetId}. Schedule start: ${scheduleStart}`);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Processor = Processor;
|
|
16
|
-
//# sourceMappingURL=processor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processor.js","sourceRoot":"","sources":["processor.ts"],"names":[],"mappings":";;;AAEA,MAAa,SAAS;IACpB,YAAoB,SAAgC,EAAU,MAAgC;QAA1E,cAAS,GAAT,SAAS,CAAuB;QAAU,WAAM,GAAN,MAAM,CAA0B;IAAG,CAAC;IAElG,KAAK,CAAC,OAAO,CAAC,KAA6C;QACzD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAEtC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;QAE7E,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,4BAA4B,OAAO,qBAAqB,aAAa,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAVD,8BAUC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-dev-center-polling-scheduler-app",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "My Dev Center Polling Scheduler Data App",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"bundle": "create-corva-app zip .",
|
|
8
|
-
"test": "npm audit --production && npm run unit",
|
|
9
|
-
"build": "tsc -p tsconfig.build.json",
|
|
10
|
-
"unit": "jest"
|
|
11
|
-
},
|
|
12
|
-
"jest": {
|
|
13
|
-
"moduleFileExtensions": [
|
|
14
|
-
"js",
|
|
15
|
-
"json",
|
|
16
|
-
"ts"
|
|
17
|
-
],
|
|
18
|
-
"rootDir": ".",
|
|
19
|
-
"testEnvironment": "node",
|
|
20
|
-
"testMatch": [
|
|
21
|
-
"**/*.spec.ts"
|
|
22
|
-
],
|
|
23
|
-
"transform": {
|
|
24
|
-
"^.+\\.ts$": "ts-jest"
|
|
25
|
-
},
|
|
26
|
-
"verbose": true
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@corva/node-sdk": "^6.2.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@types/jest": "^27.4.1",
|
|
33
|
-
"jest": "^27.5.1",
|
|
34
|
-
"ts-jest": "^27.1.4",
|
|
35
|
-
"typescript": "^4.6.3"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": [
|
|
3
|
-
"lib/**/*.ts",
|
|
4
|
-
"index.ts",
|
|
5
|
-
"__tests__"
|
|
6
|
-
],
|
|
7
|
-
"exclude": [
|
|
8
|
-
"node_modules"
|
|
9
|
-
],
|
|
10
|
-
"compilerOptions": {
|
|
11
|
-
"target": "es2019",
|
|
12
|
-
"skipLibCheck": false,
|
|
13
|
-
"baseUrl": "./",
|
|
14
|
-
"moduleResolution": "node",
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"checkJs": false,
|
|
18
|
-
"module": "commonjs",
|
|
19
|
-
"alwaysStrict": true,
|
|
20
|
-
"noImplicitAny": true,
|
|
21
|
-
"allowSyntheticDefaultImports": true,
|
|
22
|
-
"declaration": false,
|
|
23
|
-
"sourceMap": true,
|
|
24
|
-
"types": [
|
|
25
|
-
"jest"
|
|
26
|
-
],
|
|
27
|
-
"typeRoots": [
|
|
28
|
-
"./node_modules/@types",
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"typeAcquisition": {
|
|
32
|
-
"enable": true
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.PHONY: default install bundle release test
|
|
2
|
-
.DEFAULT_GOAL := default
|
|
3
|
-
|
|
4
|
-
default: install
|
|
5
|
-
install: venv
|
|
6
|
-
@. venv/bin/activate && pip install -r requirements.txt
|
|
7
|
-
venv:
|
|
8
|
-
@test -d venv || python -m venv venv
|
|
9
|
-
bundle:
|
|
10
|
-
@create-corva-app zip . --bump-version=skip
|
|
11
|
-
release:
|
|
12
|
-
@create-corva-app release . --bump-version=skip
|
|
13
|
-
test: venv
|
|
14
|
-
@. venv/bin/activate && pytest
|
|
15
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
|
|
6
|
-
# testing
|
|
7
|
-
/coverage
|
|
8
|
-
|
|
9
|
-
# misc
|
|
10
|
-
.env
|
|
11
|
-
.DS_Store
|
|
12
|
-
.env.local
|
|
13
|
-
.env.development.local
|
|
14
|
-
.env.test.local
|
|
15
|
-
.env.production.local
|
|
16
|
-
|
|
17
|
-
npm-debug.log*
|
|
18
|
-
yarn-debug.log*
|
|
19
|
-
yarn-error.log*
|
|
20
|
-
|
|
21
|
-
*.zip
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-dev-center-real-time-stream-app",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "My Dev Center Real-Time Stream Data App",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"bundle": "create-corva-app zip .",
|
|
8
|
-
"test": "npm audit --production && npm run unit",
|
|
9
|
-
"unit": "jest"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@corva/node-sdk": "^6.2.0"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"jest": "^27.5.1"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
|
|
6
|
-
# testing
|
|
7
|
-
/coverage
|
|
8
|
-
|
|
9
|
-
# misc
|
|
10
|
-
.env
|
|
11
|
-
.DS_Store
|
|
12
|
-
.env.local
|
|
13
|
-
.env.development.local
|
|
14
|
-
.env.test.local
|
|
15
|
-
.env.production.local
|
|
16
|
-
|
|
17
|
-
npm-debug.log*
|
|
18
|
-
yarn-debug.log*
|
|
19
|
-
yarn-error.log*
|
|
20
|
-
|
|
21
|
-
**/*.js
|
|
22
|
-
**/*.js.map
|
|
23
|
-
**/.d.ts
|
|
24
|
-
|
|
25
|
-
*.zip
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-dev-center-real-time-stream-app",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "My Dev Center Real-Time Stream Data App",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"bundle": "create-corva-app zip .",
|
|
8
|
-
"test": "npm audit --production && npm run unit",
|
|
9
|
-
"build": "tsc -p tsconfig.build.json",
|
|
10
|
-
"unit": "jest"
|
|
11
|
-
},
|
|
12
|
-
"jest": {
|
|
13
|
-
"moduleFileExtensions": [
|
|
14
|
-
"js",
|
|
15
|
-
"json",
|
|
16
|
-
"ts"
|
|
17
|
-
],
|
|
18
|
-
"rootDir": ".",
|
|
19
|
-
"testEnvironment": "node",
|
|
20
|
-
"testMatch": [
|
|
21
|
-
"**/*.spec.ts"
|
|
22
|
-
],
|
|
23
|
-
"transform": {
|
|
24
|
-
"^.+\\.ts$": "ts-jest"
|
|
25
|
-
},
|
|
26
|
-
"verbose": true
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@corva/node-sdk": "^6.2.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@types/jest": "^27.4.1",
|
|
33
|
-
"jest": "^27.5.1",
|
|
34
|
-
"ts-jest": "^27.1.4",
|
|
35
|
-
"typescript": "^4.6.3"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": [
|
|
3
|
-
"lib/**/*.ts",
|
|
4
|
-
"index.ts",
|
|
5
|
-
"__tests__"
|
|
6
|
-
],
|
|
7
|
-
"exclude": [
|
|
8
|
-
"node_modules"
|
|
9
|
-
],
|
|
10
|
-
"compilerOptions": {
|
|
11
|
-
"target": "es2019",
|
|
12
|
-
"skipLibCheck": false,
|
|
13
|
-
"baseUrl": "./",
|
|
14
|
-
"moduleResolution": "node",
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"checkJs": false,
|
|
18
|
-
"module": "commonjs",
|
|
19
|
-
"alwaysStrict": true,
|
|
20
|
-
"noImplicitAny": true,
|
|
21
|
-
"allowSyntheticDefaultImports": true,
|
|
22
|
-
"declaration": false,
|
|
23
|
-
"sourceMap": true,
|
|
24
|
-
"types": [
|
|
25
|
-
"jest"
|
|
26
|
-
],
|
|
27
|
-
"typeRoots": [
|
|
28
|
-
"./node_modules/@types",
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"typeAcquisition": {
|
|
32
|
-
"enable": true
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.PHONY: default install bundle release test
|
|
2
|
-
.DEFAULT_GOAL := default
|
|
3
|
-
|
|
4
|
-
default: install
|
|
5
|
-
install: venv
|
|
6
|
-
@. venv/bin/activate && pip install -r requirements.txt
|
|
7
|
-
venv:
|
|
8
|
-
@test -d venv || python -m venv venv
|
|
9
|
-
bundle:
|
|
10
|
-
@create-corva-app zip . --bump-version=skip
|
|
11
|
-
release:
|
|
12
|
-
@create-corva-app release . --bump-version=skip
|
|
13
|
-
test: venv
|
|
14
|
-
@. venv/bin/activate && pytest
|
|
15
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
|
|
6
|
-
# testing
|
|
7
|
-
/coverage
|
|
8
|
-
|
|
9
|
-
# misc
|
|
10
|
-
.env
|
|
11
|
-
.DS_Store
|
|
12
|
-
.env.local
|
|
13
|
-
.env.development.local
|
|
14
|
-
.env.test.local
|
|
15
|
-
.env.production.local
|
|
16
|
-
|
|
17
|
-
npm-debug.log*
|
|
18
|
-
yarn-debug.log*
|
|
19
|
-
yarn-error.log*
|
|
20
|
-
|
|
21
|
-
*.zip
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-dev-center-task-app",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "My Dev Center Task Data App",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"bundle": "create-corva-app zip .",
|
|
8
|
-
"test": "npm audit --production && npm run unit",
|
|
9
|
-
"unit": "jest"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@corva/node-sdk": "^6.2.0"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"jest": "^27.5.1"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
|
|
6
|
-
# testing
|
|
7
|
-
/coverage
|
|
8
|
-
|
|
9
|
-
# misc
|
|
10
|
-
.env
|
|
11
|
-
.DS_Store
|
|
12
|
-
.env.local
|
|
13
|
-
.env.development.local
|
|
14
|
-
.env.test.local
|
|
15
|
-
.env.production.local
|
|
16
|
-
|
|
17
|
-
npm-debug.log*
|
|
18
|
-
yarn-debug.log*
|
|
19
|
-
yarn-error.log*
|
|
20
|
-
|
|
21
|
-
**/*.js
|
|
22
|
-
**/*.js.map
|
|
23
|
-
**/.d.ts
|
|
24
|
-
|
|
25
|
-
*.zip
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-dev-center-task-app",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "My Dev Center Task Data App",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"bundle": "create-corva-app zip .",
|
|
8
|
-
"test": "npm audit --production && npm run unit",
|
|
9
|
-
"build": "tsc -p tsconfig.build.json",
|
|
10
|
-
"unit": "jest"
|
|
11
|
-
},
|
|
12
|
-
"jest": {
|
|
13
|
-
"moduleFileExtensions": [
|
|
14
|
-
"js",
|
|
15
|
-
"json",
|
|
16
|
-
"ts"
|
|
17
|
-
],
|
|
18
|
-
"rootDir": ".",
|
|
19
|
-
"testEnvironment": "node",
|
|
20
|
-
"testMatch": [
|
|
21
|
-
"**/*.spec.ts"
|
|
22
|
-
],
|
|
23
|
-
"transform": {
|
|
24
|
-
"^.+\\.ts$": "ts-jest"
|
|
25
|
-
},
|
|
26
|
-
"verbose": true
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@corva/node-sdk": "^6.2.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@types/jest": "^27.4.1",
|
|
33
|
-
"jest": "^27.5.1",
|
|
34
|
-
"ts-jest": "^27.1.4",
|
|
35
|
-
"typescript": "^4.6.3"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": [
|
|
3
|
-
"lib/**/*.ts",
|
|
4
|
-
"index.ts",
|
|
5
|
-
"__tests__"
|
|
6
|
-
],
|
|
7
|
-
"exclude": [
|
|
8
|
-
"node_modules"
|
|
9
|
-
],
|
|
10
|
-
"compilerOptions": {
|
|
11
|
-
"target": "es2019",
|
|
12
|
-
"skipLibCheck": false,
|
|
13
|
-
"baseUrl": "./",
|
|
14
|
-
"moduleResolution": "node",
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"checkJs": false,
|
|
18
|
-
"module": "commonjs",
|
|
19
|
-
"alwaysStrict": true,
|
|
20
|
-
"noImplicitAny": true,
|
|
21
|
-
"allowSyntheticDefaultImports": true,
|
|
22
|
-
"declaration": false,
|
|
23
|
-
"sourceMap": true,
|
|
24
|
-
"types": [
|
|
25
|
-
"jest"
|
|
26
|
-
],
|
|
27
|
-
"typeRoots": [
|
|
28
|
-
"./node_modules/@types",
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"typeAcquisition": {
|
|
32
|
-
"enable": true
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.PHONY: default install bundle release test
|
|
2
|
-
.DEFAULT_GOAL := default
|
|
3
|
-
|
|
4
|
-
default: install
|
|
5
|
-
install: venv
|
|
6
|
-
@. venv/bin/activate && pip install -r requirements.txt
|
|
7
|
-
venv:
|
|
8
|
-
@test -d venv || python -m venv venv
|
|
9
|
-
bundle:
|
|
10
|
-
@create-corva-app zip . --bump-version=skip
|
|
11
|
-
release:
|
|
12
|
-
@create-corva-app release . --bump-version=skip
|
|
13
|
-
test: venv
|
|
14
|
-
@. venv/bin/activate && pytest
|
|
15
|
-
|