@quadnix/octo-build 0.0.4 → 0.0.6
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/README.md +4 -2
- package/dist/commands/build/build.command.d.ts +14 -0
- package/dist/commands/build/build.command.js +104 -0
- package/dist/commands/build/build.command.js.map +1 -0
- package/dist/commands/build/index.d.ts +1 -0
- package/dist/commands/build/index.js +2 -0
- package/dist/commands/build/index.js.map +1 -0
- package/dist/{main.d.ts → commands/build/main.d.ts} +3 -4
- package/dist/{main.js → commands/build/main.js} +3 -4
- package/dist/commands/build/main.js.map +1 -0
- package/dist/commands/build/models/build-configuration.interface.js.map +1 -0
- package/dist/commands/build/models/run-arguments.interface.js.map +1 -0
- package/dist/{parsers → commands/build/parsers}/build-file.parser.d.ts +1 -1
- package/dist/commands/build/parsers/build-file.parser.js.map +1 -0
- package/dist/{streams → commands/build/streams}/stream-manager.d.ts +1 -2
- package/dist/{streams → commands/build/streams}/stream-manager.js +10 -8
- package/dist/commands/build/streams/stream-manager.js.map +1 -0
- package/dist/commands/create/create.command.d.ts +11 -0
- package/dist/commands/create/create.command.js +51 -0
- package/dist/commands/create/create.command.js.map +1 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/index.d.ts +10 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/index.js +117 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/index.js.map +1 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/README.md.ejs +20 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/eslint.config.js.ejs +130 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/gitignore.ejs +82 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/package.json.ejs +54 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/prettierrc.ejs +5 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-ecs-server/app.config.ts.ejs +23 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-ecs-server/env.ejs +2 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-ecs-server/main.ts.ejs +22 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-ecs-server/module-definitions.ts.ejs +202 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-ecs-server/octo/gitkeep.ejs +0 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-s3-website/app.config.ts.ejs +25 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-s3-website/env.ejs +5 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-s3-website/main.ts.ejs +22 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-s3-website/module-definitions.ts.ejs +52 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-s3-website/octo/gitkeep.ejs +0 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-s3-website/website/error.html.ejs +8 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/src/aws-s3-website/website/index.html.ejs +8 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/tsconfig.build.json.ejs +11 -0
- package/dist/commands/create/generator-octo-app-template/generators/app/templates/tsconfig.json.ejs +39 -0
- package/dist/commands/create/index.d.ts +1 -0
- package/dist/commands/create/index.js +2 -0
- package/dist/commands/create/index.js.map +1 -0
- package/dist/index.js +13 -92
- package/dist/index.js.map +1 -1
- package/dist/utilities/process/process.utility.d.ts +1 -2
- package/dist/utilities/process/process.utility.js.map +1 -1
- package/package.json +15 -12
- package/dist/main.js.map +0 -1
- package/dist/models/build-configuration.interface.js.map +0 -1
- package/dist/models/run-arguments.interface.js.map +0 -1
- package/dist/parsers/build-file.parser.js.map +0 -1
- package/dist/streams/stream-manager.js.map +0 -1
- package/dist/{models → commands/build/models}/build-configuration.interface.d.ts +7 -7
- /package/dist/{models → commands/build/models}/build-configuration.interface.js +0 -0
- /package/dist/{models → commands/build/models}/run-arguments.interface.d.ts +0 -0
- /package/dist/{models → commands/build/models}/run-arguments.interface.js +0 -0
- /package/dist/{parsers → commands/build/parsers}/build-file.parser.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,98 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import chalk from 'chalk';
|
|
3
|
-
import { accessSync, constants, existsSync, readFileSync } from 'fs';
|
|
4
|
-
import { load } from 'js-yaml';
|
|
5
|
-
import { join, resolve, sep } from 'path';
|
|
6
2
|
import * as process from 'process';
|
|
3
|
+
import chalk from 'chalk';
|
|
7
4
|
import yargs from 'yargs/yargs';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
const PROGRAM_NAME = '
|
|
11
|
-
const USAGE = 'Usage: $0 ' +
|
|
12
|
-
'-b build.yml -s ~/path/to/my_project ' +
|
|
13
|
-
'[--concurrency 5]' +
|
|
14
|
-
'[--dryRun]' +
|
|
15
|
-
'[--logsDir /new/path]' +
|
|
16
|
-
'[--timeout 10000]';
|
|
5
|
+
import { buildCommand } from './commands/build/index.js';
|
|
6
|
+
import { createCommand } from './commands/create/index.js';
|
|
7
|
+
const PROGRAM_NAME = 'octo';
|
|
17
8
|
const parser = yargs(process.argv.slice(2))
|
|
18
9
|
.scriptName(PROGRAM_NAME)
|
|
19
|
-
.options
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.option('concurrency', {
|
|
29
|
-
default: 5,
|
|
30
|
-
description: 'The number of concurrent jobs to run. Defaults to 5',
|
|
31
|
-
type: 'number',
|
|
32
|
-
})
|
|
33
|
-
.option('dryRun', {
|
|
34
|
-
default: false,
|
|
35
|
-
description: 'Runs the program without actually executing any of the jobs. Defaults to FALSE',
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
})
|
|
38
|
-
.option('logsDir', {
|
|
39
|
-
default: 'false',
|
|
40
|
-
description: 'Enables writing logs to files in the directory specified. Defaults to no write',
|
|
41
|
-
type: 'string',
|
|
42
|
-
})
|
|
43
|
-
.option('timeout', {
|
|
44
|
-
default: 0,
|
|
45
|
-
description: 'Defines the maximum amount of time (in minutes) this program can run. Defaults to INFINITE (0)',
|
|
46
|
-
type: 'number',
|
|
47
|
-
})
|
|
48
|
-
.usage(chalk.green(USAGE));
|
|
49
|
-
const argv = await parser.argv;
|
|
50
|
-
let { b: buildFilePath, s: sourcePath } = argv;
|
|
51
|
-
if (sourcePath.endsWith(sep)) {
|
|
52
|
-
sourcePath = sourcePath.substring(0, sourcePath.length - 1);
|
|
53
|
-
}
|
|
54
|
-
sourcePath = resolve(sourcePath);
|
|
55
|
-
if (buildFilePath.startsWith(sep)) {
|
|
56
|
-
buildFilePath = buildFilePath.substring(1);
|
|
57
|
-
}
|
|
58
|
-
buildFilePath = resolve(join(sourcePath, buildFilePath));
|
|
59
|
-
const logsDir = !argv.logsDir || argv.logsDir.toLowerCase() === 'false' ? undefined : resolve(argv.logsDir);
|
|
60
|
-
if (!existsSync(buildFilePath)) {
|
|
61
|
-
console.log(chalk.red('Cannot find build file: ' + buildFilePath));
|
|
62
|
-
process.exit(1);
|
|
63
|
-
}
|
|
64
|
-
try {
|
|
65
|
-
if (logsDir) {
|
|
66
|
-
accessSync(logsDir, constants.W_OK);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
console.log(chalk.red("Logs directory doesn't exist, or is not writable: " + logsDir));
|
|
71
|
-
process.exit(1);
|
|
72
|
-
}
|
|
73
|
-
const args = {
|
|
74
|
-
buildFilePath,
|
|
75
|
-
concurrency: argv.concurrency,
|
|
76
|
-
dryRun: argv.dryRun,
|
|
77
|
-
logsDir,
|
|
78
|
-
sourcePath,
|
|
79
|
-
timeout: argv.timeout,
|
|
80
|
-
};
|
|
81
|
-
let json;
|
|
82
|
-
try {
|
|
83
|
-
json = load(readFileSync(buildFilePath, 'utf-8'));
|
|
84
|
-
}
|
|
85
|
-
catch (error) {
|
|
86
|
-
console.log(chalk.red('Unable to parse build file: ' + error.message));
|
|
87
|
-
throw error;
|
|
88
|
-
}
|
|
89
|
-
const buildConfiguration = BuildFileParser.parse(json);
|
|
90
|
-
try {
|
|
91
|
-
const main = new Main(args, buildConfiguration);
|
|
92
|
-
await main.start();
|
|
93
|
-
console.log(chalk.green('Success'));
|
|
94
|
-
}
|
|
95
|
-
catch (error) {
|
|
96
|
-
console.log(chalk.red(error));
|
|
97
|
-
}
|
|
10
|
+
.usage(chalk.green('Usage: $0 <command> [options]'))
|
|
11
|
+
.demandCommand(1, 'Please specify a command.')
|
|
12
|
+
.help()
|
|
13
|
+
.alias('h', 'help')
|
|
14
|
+
.version()
|
|
15
|
+
.alias('v', 'version');
|
|
16
|
+
parser.command(createCommand);
|
|
17
|
+
parser.command(buildCommand);
|
|
18
|
+
await parser.argv;
|
|
98
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,YAAY,GAAG,MAAM,CAAC;AAE5B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACxC,UAAU,CAAC,YAAY,CAAC;KACxB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;KACnD,aAAa,CAAC,CAAC,EAAE,2BAA2B,CAAC;KAC7C,IAAI,EAAE;KACN,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC;KAClB,OAAO,EAAE;KACT,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AAEzB,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;AAC9B,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAE7B,MAAM,MAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from 'child_process';
|
|
1
|
+
import { type ChildProcessWithoutNullStreams, type SpawnOptionsWithoutStdio } from 'child_process';
|
|
3
2
|
export declare class ProcessUtility {
|
|
4
3
|
static runDetachedProcess(command: string, options: SpawnOptionsWithoutStdio, outputWriter: any): ChildProcessWithoutNullStreams;
|
|
5
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.utility.js","sourceRoot":"","sources":["../../../src/utilities/process/process.utility.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"process.utility.js","sourceRoot":"","sources":["../../../src/utilities/process/process.utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE1G,MAAM,OAAO,cAAc;IACzB,MAAM,CAAC,kBAAkB,CACvB,OAAe,EACf,OAAiC,EACjC,YAAiB;QAEjB,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QACxB,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;QACxB,OAAO,CAAC,KAAK,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;QACvD,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;QAEhC,IAAI,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC3C,eAAe,GAAG,eAAe,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC;QAE5E,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC;QACtD,MAAM,UAAU,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,CAAC;QAC5D,OAAO,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bin": {
|
|
3
|
-
"
|
|
3
|
+
"octo": "./dist/index.js"
|
|
4
4
|
},
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/quadnix/octo/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"chalk": "~5.
|
|
9
|
+
"chalk": "~5.5.0",
|
|
10
10
|
"js-yaml": "~4.1.0",
|
|
11
|
-
"p-limit": "~
|
|
12
|
-
"yargs": "~
|
|
11
|
+
"p-limit": "~6.2.0",
|
|
12
|
+
"yargs": "~18.0.0",
|
|
13
|
+
"yeoman-environment": "~4.4.3",
|
|
14
|
+
"yeoman-generator": "~7.5.1"
|
|
13
15
|
},
|
|
14
16
|
"description": "Octo-Build is a CLI tool to build Octo projects.",
|
|
15
17
|
"devDependencies": {
|
|
16
|
-
"@types/js-yaml": "~4.0.
|
|
17
|
-
"@types/yargs": "~17.0.29"
|
|
18
|
+
"@types/js-yaml": "~4.0.9"
|
|
18
19
|
},
|
|
19
20
|
"engines": {
|
|
20
21
|
"node": ">=16"
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"infrastructure",
|
|
59
60
|
"octo"
|
|
60
61
|
],
|
|
61
|
-
"license": "
|
|
62
|
+
"license": "AGPL-3.0 license",
|
|
62
63
|
"main": "./dist/index.js",
|
|
63
64
|
"name": "@quadnix/octo-build",
|
|
64
65
|
"nx": {
|
|
@@ -74,18 +75,20 @@
|
|
|
74
75
|
"url": "git+https://github.com/quadnix/octo.git"
|
|
75
76
|
},
|
|
76
77
|
"scripts": {
|
|
77
|
-
"build": "rimraf dist && tsc -p tsconfig.build.json && chmod +x ./dist/index.js",
|
|
78
|
+
"build": "rimraf dist && tsc -p tsconfig.build.json && npm run copy-assets && chmod +x ./dist/index.js",
|
|
79
|
+
"check:circular-dependency": "dpdm --no-tree --exit-code circular:1 --no-warning ./dist/index.js",
|
|
80
|
+
"copy-assets": "copyfiles -u 1 \"src/**/*.ejs\" dist/",
|
|
78
81
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
79
82
|
"lint": "eslint .",
|
|
80
83
|
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
81
84
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testRegex=\"\\.spec.ts$\"",
|
|
82
|
-
"test:cov": "jest --coverage --testRegex=\"\\.spec.ts$\"",
|
|
85
|
+
"test:cov": "NODE_OPTIONS=--experimental-vm-modules jest --coverage --testRegex=\"\\.spec.ts$\"",
|
|
83
86
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
84
|
-
"test:e2e": "jest --testRegex=\"\\.e2e-spec.ts$\"",
|
|
85
|
-
"test:integration": "jest --testRegex=\"\\.ispec.ts$\"",
|
|
87
|
+
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules jest --testRegex=\"\\.e2e-spec.ts$\"",
|
|
88
|
+
"test:integration": "NODE_OPTIONS=--experimental-vm-modules jest --testRegex=\"\\.ispec.ts$\"",
|
|
86
89
|
"test:watch": "jest --watch"
|
|
87
90
|
},
|
|
88
91
|
"type": "module",
|
|
89
92
|
"types": "./dist/index.d.ts",
|
|
90
|
-
"version": "0.0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IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;gBACvB,CAAC,CAAC,SAAS,CAAC;YAEhB,IAAI,CAAC;gBACH,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;gBACxC,MAAM,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;gBAC/B,OAAO,EAAE,CAAC;YACZ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,CAAC,KAAK,CAAC,CAAC;YAChB,CAAC;oBAAS,CAAC;gBACT,IAAI,OAAO,EAAE,CAAC;oBACZ,YAAY,CAAC,OAAO,CAAC,CAAC;gBACxB,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-configuration.interface.js","sourceRoot":"","sources":["../../src/models/build-configuration.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-arguments.interface.js","sourceRoot":"","sources":["../../src/models/run-arguments.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-file.parser.js","sourceRoot":"","sources":["../../src/parsers/build-file.parser.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,eAAe;IAC1B,MAAM,CAAC,KAAK,CAAC,OAAY;QACvB,MAAM,IAAI,GAA4B,EAAE,CAAC;QACzC,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,EAAE,CAAC;YACvD,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;gBACjB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;YAChE,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,GAAG;gBACd,OAAO,EAAE,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8
1
|
export interface IBuildConfiguration {
|
|
9
2
|
dist: string;
|
|
10
3
|
env: {
|
|
@@ -14,3 +7,10 @@ export interface IBuildConfiguration {
|
|
|
14
7
|
[key: string]: IJob;
|
|
15
8
|
};
|
|
16
9
|
}
|
|
10
|
+
export interface IJob {
|
|
11
|
+
command: string;
|
|
12
|
+
dependsOn: string[];
|
|
13
|
+
onError: 'ignore' | 'throw';
|
|
14
|
+
retry: number;
|
|
15
|
+
timeout: number;
|
|
16
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|