@intuned/runtime-dev 1.0.6-cli.8.2.5 → 1.0.6-cli.8.2.7

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.
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- const exclusions = ["node_modules/**", ".git/**", "dist/**", "build/**", "coverage/**", ".next/**", ".cache/**", "out/**", "tmp/**", ".DS_Store", "npm-debug.log*", "yarn-debug.log*", "yarn-error.log*", ".env", ".env.*", "**/*.map", "**/*.tsbuildinfo", "tsconfig.json", "parameters/**", "output/**"];
7
+ const exclusions = ["node_modules/**", ".git/**", "dist/**", "build/**", "coverage/**", ".next/**", ".cache/**", "out/**", "tmp/**", ".DS_Store", "npm-debug.log*", "yarn-debug.log*", "yarn-error.log*", ".env", ".env.*", "**/*.map", "**/*.tsbuildinfo", "tsconfig.json", "parameters/**", "output/**", "README.md"];
8
8
  var _default = exports.default = exclusions;
@@ -2,7 +2,7 @@ import { AuthCredentials, FileSystemTree } from "../../common/cli/types";
2
2
  export declare function convertProjectToCodeTree(projectPath: string): Promise<FileSystemTree>;
3
3
  export declare function deployProject(projectName: string, auth: AuthCredentials): Promise<{
4
4
  deployDone: boolean;
5
- projectId: string;
5
+ projectId?: string;
6
6
  deployErrorMessage?: string;
7
7
  }>;
8
8
  export declare const validateProjectName: (projectName: string) => {
@@ -308,6 +308,7 @@ const checkIntunedProjectDeployStatus = async (workspaceId, projectName, apiKey)
308
308
  }
309
309
  const data = await response.json();
310
310
  if (data.status) {
311
+ console.log("DATA:", data);
311
312
  return {
312
313
  status: data.status,
313
314
  message: data.message,
@@ -159,6 +159,11 @@ function prepareCLITemplate(codeTree) {
159
159
  codeTree["parameters"] = {
160
160
  directory: {}
161
161
  };
162
+ codeTree["tsconfig.json"] = {
163
+ file: {
164
+ contents: JSON.stringify(_constants.tsConfigCli, null, 2)
165
+ }
166
+ };
162
167
  if (_isFileNode(codeTree["package.json"]) && codeTree["package.json"].file) {
163
168
  const packageJson = JSON.parse(codeTree["package.json"].file.contents);
164
169
  packageJson.scripts = _constants.userCLIScripts;
@@ -166,30 +171,7 @@ function prepareCLITemplate(codeTree) {
166
171
  }
167
172
  codeTree["README.md"] = {
168
173
  file: {
169
- contents: `# Intuned CLI Project
170
-
171
- ## Usage Instructions
172
-
173
- This CLI project is built with Intuned and provides the following commands:
174
-
175
- ### Running the project
176
- \`\`\`
177
- npm run intuned-run
178
- \`\`\`
179
-
180
- ### Building the project
181
- \`\`\`
182
- npm run intuned-build
183
- \`\`\`
184
-
185
- ### Deploying the project
186
- \`\`\`
187
- npm run intuned-deploy
188
- \`\`\`
189
-
190
- ### Storage
191
- Results from your runs will be stored in the \`./output/[runId]\` directory structure.
192
- `
174
+ contents: _constants.cliReadme
193
175
  }
194
176
  };
195
177
  }
@@ -10,3 +10,16 @@ export declare const userCLIScripts: {
10
10
  "intuned-build": string;
11
11
  "intuned-deploy": string;
12
12
  };
13
+ export declare const tsConfigCli: {
14
+ compilerOptions: {
15
+ moduleResolution: string;
16
+ target: string;
17
+ outDir: string;
18
+ sourceMap: boolean;
19
+ declaration: boolean;
20
+ esModuleInterop: boolean;
21
+ };
22
+ include: string[];
23
+ exclude: string[];
24
+ };
25
+ export declare const cliReadme = "# Intuned CLI Project\n\n## Usage Instructions\n\nThis CLI project is built with Intuned and provides the following commands:\n### Init a project\n`npx -p @intuned/runtime intuned-init`\n\n### Keys,Environment Variables and Settings\n- INTUNED_WORKSPACE_ID: Your Intuned workspace ID, either provided via command line or intuned.json\n- INTUNED_API_KEY: Your Intuned API key, either provided via command line or environment variable\n- INTUNED_PROJECT_NAME: The name of your Intuned project, either provided via command line or intuned.json\n\n### Running the project\n`npm run intuned-run`\n\n\n### Building the project\n`npm run intuned-build`\n\n### Deploying the project\n`npm run intuned-deploy`\n\n### Artifacts provided\n- `./intuned.json`: Intuned project configuration file\n- `./api`: Folder containing the API files\n- `./parameters`: Folder containing the parameters files\n- `./output`: Folder containing the output files\n\n### Run Parameters\n--parameters-file/ -i: Path to the parameters file\n\n### Storage\nResults from your runs and appended payloads will be stored in the `./output/[runId]` directory \nstructure when providing the --store-results option on the intuned run command.\n";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.userCLIScripts = exports.ProjectDeploymentStatus = exports.PROJECT_DEPLOY_TIMEOUT = exports.CURRENT_PLAYWRIGHT_VERSION = void 0;
6
+ exports.userCLIScripts = exports.tsConfigCli = exports.cliReadme = exports.ProjectDeploymentStatus = exports.PROJECT_DEPLOY_TIMEOUT = exports.CURRENT_PLAYWRIGHT_VERSION = void 0;
7
7
  const CURRENT_PLAYWRIGHT_VERSION = exports.CURRENT_PLAYWRIGHT_VERSION = "1.44.1";
8
8
  const ProjectDeploymentStatus = exports.ProjectDeploymentStatus = ["completed", "failed", "pending", "not_found"];
9
9
  const PROJECT_DEPLOY_TIMEOUT = exports.PROJECT_DEPLOY_TIMEOUT = 600000;
@@ -15,4 +15,52 @@ const userCLIScripts = exports.userCLIScripts = {
15
15
  "intuned-run": "intuned-run",
16
16
  "intuned-build": "intuned-build-project",
17
17
  "intuned-deploy": "intuned-deploy"
18
- };
18
+ };
19
+ const tsConfigCli = exports.tsConfigCli = {
20
+ compilerOptions: {
21
+ moduleResolution: "node",
22
+ target: "ES2021",
23
+ outDir: "./dist",
24
+ sourceMap: false,
25
+ declaration: true,
26
+ esModuleInterop: true
27
+ },
28
+ include: ["**/*.ts"],
29
+ exclude: ["node_modules", "dist"]
30
+ };
31
+ const cliReadme = exports.cliReadme = `# Intuned CLI Project
32
+
33
+ ## Usage Instructions
34
+
35
+ This CLI project is built with Intuned and provides the following commands:
36
+ ### Init a project
37
+ \`npx -p @intuned/runtime intuned-init\`
38
+
39
+ ### Keys,Environment Variables and Settings
40
+ - INTUNED_WORKSPACE_ID: Your Intuned workspace ID, either provided via command line or intuned.json
41
+ - INTUNED_API_KEY: Your Intuned API key, either provided via command line or environment variable
42
+ - INTUNED_PROJECT_NAME: The name of your Intuned project, either provided via command line or intuned.json
43
+
44
+ ### Running the project
45
+ \`npm run intuned-run\`
46
+
47
+
48
+ ### Building the project
49
+ \`npm run intuned-build\`
50
+
51
+ ### Deploying the project
52
+ \`npm run intuned-deploy\`
53
+
54
+ ### Artifacts provided
55
+ - \`./intuned.json\`: Intuned project configuration file
56
+ - \`./api\`: Folder containing the API files
57
+ - \`./parameters\`: Folder containing the parameters files
58
+ - \`./output\`: Folder containing the output files
59
+
60
+ ### Run Parameters
61
+ --parameters-file/ -i: Path to the parameters file
62
+
63
+ ### Storage
64
+ Results from your runs and appended payloads will be stored in the \`./output/[runId]\` directory
65
+ structure when providing the --store-results option on the intuned run command.
66
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.6-cli.8.2.5",
3
+ "version": "1.0.6-cli.8.2.7",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",