@corva/create-app 0.109.0 → 0.110.0

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
  {
@@ -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
- const segment = opts.segments === 'completion' ? 'completion' : 'drilling';
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.109.0",
3
+ "version": "0.110.0",
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": {
@@ -2,8 +2,7 @@
2
2
  "packages": {
3
3
  ".": {
4
4
  "release-type": "node",
5
- "versioning": "always-bump-minor",
6
- "changelog-type": "github"
5
+ "versioning": "always-bump-minor"
7
6
  }
8
7
  },
9
8
  "always-update": true,