@corva/create-app 0.109.0 → 0.110.1
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.
|
@@ -20,7 +20,7 @@ export const defaultManifest = {
|
|
|
20
20
|
summary: 'More information about this app goes here',
|
|
21
21
|
category: '',
|
|
22
22
|
website: 'https://www.oandgexample.com/my-app/',
|
|
23
|
-
segments: ['drilling', 'completion'],
|
|
23
|
+
segments: ['drilling', 'completion', 'intervention'],
|
|
24
24
|
},
|
|
25
25
|
settings: {
|
|
26
26
|
entrypoint: {
|
|
@@ -206,7 +206,7 @@ export const manifestOptions = (projectName = 'Corva Dev Center App') => [
|
|
|
206
206
|
type: 'rawlist',
|
|
207
207
|
name: 'segments',
|
|
208
208
|
message: 'Choose segments',
|
|
209
|
-
choices: ['drilling', 'completion'],
|
|
209
|
+
choices: ['drilling', 'completion', 'intervention'],
|
|
210
210
|
required: true,
|
|
211
211
|
},
|
|
212
212
|
{
|
package/lib/constants/package.js
CHANGED
|
@@ -10,7 +10,7 @@ const uiDependencies = {
|
|
|
10
10
|
'@icon-park/react': '1.4.2',
|
|
11
11
|
'classnames': '2.2.6',
|
|
12
12
|
'corva-convert-units': '1.10.33',
|
|
13
|
-
'highcharts': '
|
|
13
|
+
'highcharts': '8.1.2',
|
|
14
14
|
'highcharts-react-official': '2.2.2',
|
|
15
15
|
'lodash': '^4.17.21',
|
|
16
16
|
'mapbox.js': '3.2.1',
|
package/lib/helpers/utils.js
CHANGED
|
@@ -8,7 +8,13 @@ export const addUiAppFile = (templateFolder, root, runtime, manifest, opts) => {
|
|
|
8
8
|
logger.log(chalk.green('adding app file'));
|
|
9
9
|
|
|
10
10
|
const fileExtension = runtime.language === 'typescript' ? 'tsx' : 'js';
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
const segment =
|
|
13
|
+
{
|
|
14
|
+
drilling: 'drilling',
|
|
15
|
+
completion: 'completion',
|
|
16
|
+
intervention: 'drilling', // same as drilling for now
|
|
17
|
+
}[opts.segments] || 'drilling';
|
|
12
18
|
const appFilePath = join(templateFolder, 'src', `App.${segment}.${fileExtension}`);
|
|
13
19
|
|
|
14
20
|
copyFileSync(appFilePath, join(root, 'src', `App.${fileExtension}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.110.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create an app to use it in CORVA.AI",
|
|
6
6
|
"keywords": [
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"release-rc": "npm run release -- --prerelease",
|
|
37
37
|
"run:local-ui-ts-completion": "node ./bin/create-corva-app.cjs ../test-app-ui-ts-completions --appName 'TestAppUiTsCompletions' --segments 'completion' --category 'analytics' --appKey 'corva.testappuitscompletions.ui' --appType 'ui' --runtime 'ui' -t --extensions corva",
|
|
38
38
|
"run:local-ui-ts-drilling": "node ./bin/create-corva-app.cjs ../test-app-ui-ts-drilling --appName 'TestAppUiTsDrilling' --segments 'drilling' --category 'analytics' --appKey 'corva.testappuitsdrilling.ui' --appType 'ui' --runtime 'ui' -t --extensions corva",
|
|
39
|
+
"run:local-ui-ts-intervention": "node ./bin/create-corva-app.cjs ../test-app-ui-ts-intervention --appName 'TestAppUiTsIntervention' --segments 'intervention' --category 'analytics' --appKey 'corva.testappuitsintervention.ui' --appType 'ui' --runtime 'ui' -t --extensions corva",
|
|
39
40
|
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest"
|
|
40
41
|
},
|
|
41
42
|
"lint-staged": {
|