@spree/cli 0.2.0 → 1.0.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.
- package/README.md +38 -5
- package/dist/commands/new/app.d.ts +9 -0
- package/dist/commands/new/app.d.ts.map +1 -0
- package/dist/commands/{generate/store.js → new/app.js} +64 -48
- package/dist/commands/new/app.js.map +1 -0
- package/dist/commands/start/app.d.ts +9 -0
- package/dist/commands/start/app.d.ts.map +1 -0
- package/dist/commands/start/app.js +42 -0
- package/dist/commands/start/app.js.map +1 -0
- package/dist/domains/dependencies/checkDependencies.d.ts.map +1 -1
- package/dist/domains/dependencies/checkDependencies.js +11 -7
- package/dist/domains/dependencies/checkDependencies.js.map +1 -1
- package/dist/domains/dependencies/checkVersionByShellCommand.d.ts +1 -1
- package/dist/domains/dependencies/checkVersionByShellCommand.d.ts.map +1 -1
- package/dist/domains/dependencies/checkVersionByShellCommand.js +3 -2
- package/dist/domains/dependencies/checkVersionByShellCommand.js.map +1 -1
- package/dist/domains/dependencies/extractVersion.d.ts +3 -0
- package/dist/domains/dependencies/extractVersion.d.ts.map +1 -0
- package/dist/domains/dependencies/extractVersion.js +12 -0
- package/dist/domains/dependencies/extractVersion.js.map +1 -0
- package/dist/domains/dependencies/validate/validateDependencies.d.ts +4 -0
- package/dist/domains/dependencies/validate/validateDependencies.d.ts.map +1 -0
- package/dist/domains/dependencies/validate/validateDependencies.js +35 -0
- package/dist/domains/dependencies/validate/validateDependencies.js.map +1 -0
- package/dist/domains/directory/createDirectory.js +1 -1
- package/dist/domains/directory/createDirectory.js.map +1 -1
- package/dist/domains/integration/fetchIntegrations.d.ts.map +1 -1
- package/dist/domains/integration/fetchIntegrations.js +3 -2
- package/dist/domains/integration/fetchIntegrations.js.map +1 -1
- package/dist/domains/module/Module.d.ts +1 -0
- package/dist/domains/module/Module.d.ts.map +1 -1
- package/dist/domains/module/Runner.d.ts +2 -0
- package/dist/domains/module/Runner.d.ts.map +1 -1
- package/dist/domains/module/Template.d.ts +6 -0
- package/dist/domains/module/Template.d.ts.map +1 -1
- package/dist/domains/run/RunScript.d.ts +3 -0
- package/dist/domains/run/RunScript.d.ts.map +1 -0
- package/dist/domains/{dependencies/CheckDependency.js → run/RunScript.js} +1 -1
- package/dist/domains/run/RunScript.js.map +1 -0
- package/dist/domains/run/getRunScript.d.ts +4 -0
- package/dist/domains/run/getRunScript.d.ts.map +1 -0
- package/dist/domains/run/getRunScript.js +14 -0
- package/dist/domains/run/getRunScript.js.map +1 -0
- package/dist/domains/run/index.d.ts +3 -0
- package/dist/domains/run/index.d.ts.map +1 -0
- package/dist/domains/run/index.js +10 -0
- package/dist/domains/run/index.js.map +1 -0
- package/dist/domains/spree/fetchSpreeTemplates.d.ts.map +1 -1
- package/dist/domains/spree/fetchSpreeTemplates.js +6 -2
- package/dist/domains/spree/fetchSpreeTemplates.js.map +1 -1
- package/dist/domains/variables/Variables.d.ts +1 -0
- package/dist/domains/variables/Variables.d.ts.map +1 -1
- package/dist/domains/variables/useVariables.d.ts.map +1 -1
- package/dist/domains/variables/useVariables.js +3 -1
- package/dist/domains/variables/useVariables.js.map +1 -1
- package/locales/en-US/translation.json +10 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/test_app/backend/app/assets/builds/.keep +0 -0
- package/dist/commands/generate/store.d.ts +0 -12
- package/dist/commands/generate/store.d.ts.map +0 -1
- package/dist/commands/generate/store.js.map +0 -1
- package/dist/domains/dependencies/CheckDependency.d.ts +0 -4
- package/dist/domains/dependencies/CheckDependency.d.ts.map +0 -1
- package/dist/domains/dependencies/CheckDependency.js.map +0 -1
- package/dist/domains/dependencies/checkDockerVersion.d.ts +0 -4
- package/dist/domains/dependencies/checkDockerVersion.d.ts.map +0 -1
- package/dist/domains/dependencies/checkDockerVersion.js +0 -10
- package/dist/domains/dependencies/checkDockerVersion.js.map +0 -1
- package/dist/domains/dependencies/checkNodeVersion.d.ts +0 -4
- package/dist/domains/dependencies/checkNodeVersion.d.ts.map +0 -1
- package/dist/domains/dependencies/checkNodeVersion.js +0 -10
- package/dist/domains/dependencies/checkNodeVersion.js.map +0 -1
- package/dist/domains/dependencies/checkRubyVersion.d.ts +0 -4
- package/dist/domains/dependencies/checkRubyVersion.d.ts.map +0 -1
- package/dist/domains/dependencies/checkRubyVersion.js +0 -10
- package/dist/domains/dependencies/checkRubyVersion.js.map +0 -1
- package/dist/domains/dependencies/extractDockerVersion.d.ts +0 -3
- package/dist/domains/dependencies/extractDockerVersion.d.ts.map +0 -1
- package/dist/domains/dependencies/extractDockerVersion.js +0 -10
- package/dist/domains/dependencies/extractDockerVersion.js.map +0 -1
- package/dist/domains/dependencies/extractNodeVersion.d.ts +0 -3
- package/dist/domains/dependencies/extractNodeVersion.d.ts.map +0 -1
- package/dist/domains/dependencies/extractNodeVersion.js +0 -10
- package/dist/domains/dependencies/extractNodeVersion.js.map +0 -1
- package/dist/domains/dependencies/extractRubyVersion.d.ts +0 -3
- package/dist/domains/dependencies/extractRubyVersion.d.ts.map +0 -1
- package/dist/domains/dependencies/extractRubyVersion.js +0 -10
- package/dist/domains/dependencies/extractRubyVersion.js.map +0 -1
- package/dist/domains/dependencies/extractVersionByRegExp.d.ts +0 -3
- package/dist/domains/dependencies/extractVersionByRegExp.d.ts.map +0 -1
- package/dist/domains/dependencies/extractVersionByRegExp.js +0 -11
- package/dist/domains/dependencies/extractVersionByRegExp.js.map +0 -1
- package/dist/domains/dependencies/index.d.ts +0 -3
- package/dist/domains/dependencies/index.d.ts.map +0 -1
- package/dist/domains/dependencies/index.js +0 -10
- package/dist/domains/dependencies/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -3,18 +3,51 @@
|
|
|
3
3
|
Spree CLI is a tool that makes it easy to bootstrap a new Spree project.
|
|
4
4
|
It provides an interactive process for configuring Spree backend (running in Dockerized, Hybrid or Native mode) and a selection of available frontends.
|
|
5
5
|
|
|
6
|
+
## Dependencies
|
|
7
|
+
|
|
8
|
+
Node 14+ is required to run the CLI. Depending on the chosen Spree setup, you will have to install different dependencies first:
|
|
9
|
+
|
|
10
|
+
### Spree (dockerized)
|
|
11
|
+
- docker >= 20.0
|
|
12
|
+
- docker-compose
|
|
13
|
+
|
|
14
|
+
### Spree (no docker)
|
|
15
|
+
- ruby = 3.0.3
|
|
16
|
+
- vips >= 8.6
|
|
17
|
+
- gpg
|
|
18
|
+
- psql
|
|
19
|
+
- redis
|
|
20
|
+
|
|
21
|
+
### Spree (hybrid)
|
|
22
|
+
- docker >= 20.0
|
|
23
|
+
- docker-compose
|
|
24
|
+
- ruby = 3.0.3
|
|
25
|
+
- vips >= 8.6
|
|
26
|
+
- redis (only needed for running rspec tests)
|
|
27
|
+
|
|
28
|
+
### Vue Storefront
|
|
29
|
+
- node >= 14.15 <= 14.19
|
|
30
|
+
- yarn
|
|
31
|
+
|
|
32
|
+
### Next.js Commerce
|
|
33
|
+
- node >= 13.0
|
|
34
|
+
- yarn
|
|
35
|
+
|
|
6
36
|
## Usage
|
|
7
37
|
|
|
8
38
|
To get started, simply run the following command in your terminal:
|
|
9
39
|
|
|
10
40
|
```bash
|
|
11
|
-
npx @spree/cli
|
|
41
|
+
npx @spree/cli new app
|
|
12
42
|
```
|
|
13
43
|
|
|
14
|
-
This will launch the interactive process that will guide you through the process of setting up a new Spree-based store.
|
|
15
|
-
|
|
16
|
-
Note: Node 14+ is required to run the CLI. Depending on your configuration, the CLI will also prompt you to install additional dependencies required by your desired setup.
|
|
44
|
+
This will launch the interactive process that will guide you through the process of setting up a new Spree-based store.
|
|
17
45
|
|
|
46
|
+
In order to start the already generated app, navigate to your project's folder and run the following command:
|
|
47
|
+
```bash
|
|
48
|
+
npx @spree/cli start app
|
|
49
|
+
```
|
|
50
|
+
Happy hacking!
|
|
18
51
|
|
|
19
52
|
## Troubleshooting
|
|
20
53
|
|
|
@@ -32,7 +65,7 @@ If you have encountered any other problem with NextJS you can also refer to Next
|
|
|
32
65
|
|
|
33
66
|
## Overview
|
|
34
67
|
|
|
35
|
-
This repository contains CLI to integrate
|
|
68
|
+
This repository contains CLI to integrate Spree and storefront of your choice
|
|
36
69
|
|
|
37
70
|
This repository is being developed and maintained by [Upside](https://upsidelab.io)
|
|
38
71
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/commands/new/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AA4B7C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,OAAO;IACzC,OAAgB,WAAW,SAAoC;IAE/D,OAAgB,QAAQ,WAA2C;IAEnE,OAAgB,KAAK,KAAM;IAE3B,OAAgB,IAAI,UAAM;IAEpB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8I3B"}
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
5
6
|
const color_1 = tslib_1.__importDefault(require("@oclif/color"));
|
|
6
7
|
const i18next_1 = require("i18next");
|
|
7
8
|
const path = tslib_1.__importStar(require("path"));
|
|
9
|
+
const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
|
|
8
10
|
const child_process_1 = require("child_process");
|
|
9
11
|
const project_name_1 = require("../../domains/project-name");
|
|
10
12
|
const git_repository_1 = require("../../domains/git-repository");
|
|
@@ -12,26 +14,35 @@ const directory_1 = require("../../domains/directory");
|
|
|
12
14
|
const spree_1 = require("../../domains/spree");
|
|
13
15
|
const integration_1 = require("../../domains/integration");
|
|
14
16
|
const build_1 = require("../../domains/build");
|
|
17
|
+
const run_1 = require("../../domains/run");
|
|
15
18
|
const variables_1 = require("../../domains/variables");
|
|
16
19
|
const typescript_1 = require("../../domains/typescript");
|
|
17
20
|
const existsDirectory_1 = tslib_1.__importDefault(require("../../domains/directory/existsDirectory"));
|
|
18
21
|
const directory_2 = require("../../domains/directory");
|
|
19
|
-
const
|
|
20
|
-
class
|
|
22
|
+
const validateDependencies_1 = tslib_1.__importDefault(require("../../domains/dependencies/validate/validateDependencies"));
|
|
23
|
+
class NewApp extends core_1.Command {
|
|
21
24
|
async run() {
|
|
22
25
|
const variables = await (async () => {
|
|
23
|
-
const projectName = await (0, project_name_1.getProjectName)((0, i18next_1.t)('command.
|
|
26
|
+
const projectName = await (0, project_name_1.getProjectName)((0, i18next_1.t)('command.new_app.input.project_name'));
|
|
24
27
|
return (0, variables_1.useVariables)({ projectName });
|
|
25
28
|
})();
|
|
26
29
|
const projectDir = path.resolve(variables.projectName);
|
|
27
|
-
const spree = await (0, spree_1.getSpree)({ message: (0, i18next_1.t)('command.
|
|
30
|
+
const { samples, ...spree } = await (0, spree_1.getSpree)({ message: (0, i18next_1.t)('command.new_app.input.spree') });
|
|
31
|
+
const { samples: withSamples } = await inquirer_1.default.prompt({
|
|
32
|
+
message: (0, i18next_1.t)('command.new_app.input.samples'),
|
|
33
|
+
type: 'confirm',
|
|
34
|
+
name: 'samples'
|
|
35
|
+
});
|
|
28
36
|
const integration = await (0, integration_1.getIntegration)({
|
|
29
|
-
message: (0, i18next_1.t)('command.
|
|
30
|
-
customIntegrationRepositoryMessage: (0, i18next_1.t)('command.
|
|
37
|
+
message: (0, i18next_1.t)('command.new_app.input.integration'),
|
|
38
|
+
customIntegrationRepositoryMessage: (0, i18next_1.t)('command.new_app.input.custom_integration_repository')
|
|
31
39
|
});
|
|
32
40
|
const modules = [
|
|
33
41
|
{
|
|
34
|
-
template:
|
|
42
|
+
template: withSamples && samples ? {
|
|
43
|
+
...spree,
|
|
44
|
+
...samples
|
|
45
|
+
} : { ...spree },
|
|
35
46
|
path: variables.pathBackend,
|
|
36
47
|
buildOptions: { encoding: 'utf-8', stdio: 'inherit', shell: true }
|
|
37
48
|
},
|
|
@@ -40,7 +51,14 @@ class GenerateStore extends core_1.Command {
|
|
|
40
51
|
path: variables.pathIntegration,
|
|
41
52
|
buildOptions: { stdio: 'inherit', shell: true }
|
|
42
53
|
}
|
|
43
|
-
].map((m) => ({
|
|
54
|
+
].map((m) => ({
|
|
55
|
+
...m,
|
|
56
|
+
template: {
|
|
57
|
+
...m.template,
|
|
58
|
+
runScriptLocalPath: m.template.runScriptURL ? `run-${m.path}` : undefined
|
|
59
|
+
},
|
|
60
|
+
absolutePath: `${projectDir}/${m.path}`
|
|
61
|
+
}));
|
|
44
62
|
const mountGitRepository = async (dir, gitRepositoryURL, gitRef) => {
|
|
45
63
|
if (await (0, existsDirectory_1.default)(dir)) {
|
|
46
64
|
await (0, directory_2.removeFileOrDirectory)(dir);
|
|
@@ -49,7 +67,7 @@ class GenerateStore extends core_1.Command {
|
|
|
49
67
|
await (0, git_repository_1.terminateGitRepository)(projectDir);
|
|
50
68
|
};
|
|
51
69
|
const repositoriesToMount = [];
|
|
52
|
-
await
|
|
70
|
+
await (0, validateDependencies_1.default)(modules);
|
|
53
71
|
for (const { absolutePath, template: { gitRepositoryURL, name, gitRef } } of modules) {
|
|
54
72
|
if (!gitRepositoryURL)
|
|
55
73
|
continue;
|
|
@@ -63,16 +81,16 @@ class GenerateStore extends core_1.Command {
|
|
|
63
81
|
await fn();
|
|
64
82
|
}
|
|
65
83
|
else {
|
|
66
|
-
this.log((0, i18next_1.t)('command.
|
|
84
|
+
this.log((0, i18next_1.t)('command.new_app.message.skipping', { name }));
|
|
67
85
|
}
|
|
68
86
|
}
|
|
69
87
|
this.log('');
|
|
70
|
-
this.log((0, i18next_1.t)('command.
|
|
88
|
+
this.log((0, i18next_1.t)('command.new_app.message.success', { projectName: variables.projectName }));
|
|
71
89
|
this.log('');
|
|
72
90
|
const logModuleDocumentation = ({ template: { documentationURL, name } }) => {
|
|
73
91
|
if (!documentationURL)
|
|
74
92
|
return;
|
|
75
|
-
this.log((0, i18next_1.t)('command.
|
|
93
|
+
this.log((0, i18next_1.t)('command.new_app.message.configure', { documentationURL, name }));
|
|
76
94
|
this.log('');
|
|
77
95
|
};
|
|
78
96
|
modules.forEach(logModuleDocumentation);
|
|
@@ -83,19 +101,43 @@ class GenerateStore extends core_1.Command {
|
|
|
83
101
|
const buildScript = await (0, build_1.getBuildScript)(url);
|
|
84
102
|
return preBuildScript.concat(buildScript);
|
|
85
103
|
};
|
|
86
|
-
core_1.CliUx.ux.action.start((0, i18next_1.t)('command.
|
|
104
|
+
core_1.CliUx.ux.action.start((0, i18next_1.t)('command.new_app.message.build_scripts'));
|
|
87
105
|
const buildScripts = await Promise.all(modules.map(fetchBuildScript));
|
|
88
|
-
core_1.CliUx.ux.action.stop(color_1.default.green((0, i18next_1.t)('command.
|
|
106
|
+
core_1.CliUx.ux.action.stop(color_1.default.green((0, i18next_1.t)('command.new_app.message.done')));
|
|
107
|
+
const fetchRunScript = async ({ template: { runScriptURL: url } }) => {
|
|
108
|
+
if (!(0, typescript_1.notEmpty)(url))
|
|
109
|
+
return;
|
|
110
|
+
const runScript = await (0, run_1.getRunScript)(url);
|
|
111
|
+
return runScript;
|
|
112
|
+
};
|
|
113
|
+
core_1.CliUx.ux.action.start((0, i18next_1.t)('command.new_app.message.run_scripts'));
|
|
114
|
+
const runScripts = await Promise.all(modules.map(fetchRunScript));
|
|
115
|
+
core_1.CliUx.ux.action.stop(color_1.default.green((0, i18next_1.t)('command.new_app.message.done')));
|
|
89
116
|
const runnersMap = modules.reduce((res, { path, buildOptions, template: { name } }, i) => ({
|
|
90
117
|
...res,
|
|
91
|
-
[path]: { name, buildOptions, buildScript: buildScripts[i] }
|
|
118
|
+
[path]: { name, buildOptions, buildScript: buildScripts[i], runScript: runScripts[i] }
|
|
92
119
|
}), {});
|
|
120
|
+
const runModules = modules.map(({ path, buildOptions, template: { name, runScriptPath, runScriptLocalPath, dependencies } }) => ({
|
|
121
|
+
path: path,
|
|
122
|
+
buildOptions: buildOptions,
|
|
123
|
+
template: {
|
|
124
|
+
name: name,
|
|
125
|
+
runScriptPath: runScriptPath,
|
|
126
|
+
runScriptLocalPath: runScriptLocalPath,
|
|
127
|
+
dependencies: dependencies
|
|
128
|
+
}
|
|
129
|
+
}));
|
|
130
|
+
fs.writeFileSync(`${projectDir}/${variables.projectDetailsFileName}.json`, JSON.stringify(runModules, null, 2));
|
|
131
|
+
for (const [runnerKey, runner] of Object.entries(runnersMap)) {
|
|
132
|
+
if (runner.runScript)
|
|
133
|
+
fs.writeFileSync(`${projectDir}/run-${runnerKey}`, runner.runScript);
|
|
134
|
+
}
|
|
93
135
|
const executeRunner = ({ buildScript, buildOptions, name }) => {
|
|
94
136
|
if (buildScript) {
|
|
95
137
|
(0, child_process_1.spawn)(buildScript, buildOptions);
|
|
96
138
|
}
|
|
97
139
|
else {
|
|
98
|
-
this.debug((0, i18next_1.t)('command.
|
|
140
|
+
this.debug((0, i18next_1.t)('command.new_app.message.build_scripts_skipping', { name }));
|
|
99
141
|
}
|
|
100
142
|
};
|
|
101
143
|
[variables.pathBackend, variables.pathIntegration]
|
|
@@ -103,36 +145,10 @@ class GenerateStore extends core_1.Command {
|
|
|
103
145
|
.filter((typescript_1.notEmpty))
|
|
104
146
|
.forEach((runner) => executeRunner(runner));
|
|
105
147
|
}
|
|
106
|
-
async _validateDependencies(modules) {
|
|
107
|
-
for (const module of modules) {
|
|
108
|
-
await this._validateDependenciesForModule(module);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
async _validateDependenciesForModule(module) {
|
|
112
|
-
const { template: { dependencies } } = module;
|
|
113
|
-
if (!dependencies) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
for (const [name, versionString] of Object.entries(dependencies)) {
|
|
117
|
-
core_1.CliUx.ux.action.start((0, i18next_1.t)('command.generate_store.message.dependency_checking', { name, expectedVersion: versionString }));
|
|
118
|
-
const result = await (0, checkDependencies_1.default)(name, versionString);
|
|
119
|
-
if (result.status === 'OK') {
|
|
120
|
-
core_1.CliUx.ux.action.stop(color_1.default.green((0, i18next_1.t)('command.generate_store.message.done')));
|
|
121
|
-
}
|
|
122
|
-
else if (result.status === 'NOT_FOUND') {
|
|
123
|
-
core_1.CliUx.ux.action.stop(color_1.default.red((0, i18next_1.t)('command.generate_store.message.error')));
|
|
124
|
-
this.error((0, i18next_1.t)('command.generate_store.message.dependency_not_found', { name }));
|
|
125
|
-
}
|
|
126
|
-
else if (result.status === 'VERSION_MISMATCH') {
|
|
127
|
-
core_1.CliUx.ux.action.stop(color_1.default.red((0, i18next_1.t)('command.generate_store.message.error')));
|
|
128
|
-
this.error((0, i18next_1.t)('command.generate_store.message.dependency_version_mismatch', { name, expectedVersion: versionString, currentVersion: result.versionFound }));
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
148
|
}
|
|
133
|
-
exports.default =
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
//# sourceMappingURL=
|
|
149
|
+
exports.default = NewApp;
|
|
150
|
+
NewApp.description = (0, i18next_1.t)('command.new_app.description');
|
|
151
|
+
NewApp.examples = ['<%= config.bin %> <%= command.id %>'];
|
|
152
|
+
NewApp.flags = {};
|
|
153
|
+
NewApp.args = [];
|
|
154
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/commands/new/app.ts"],"names":[],"mappings":";;;AAAA,sCAA6C;AAC7C,+CAAyB;AACzB,iEAAiC;AACjC,qCAA4B;AAC5B,mDAA6B;AAC7B,gEAAgC;AAChC,iDAAsC;AAEtC,6DAA4D;AAC5D,iEAGsC;AACtC,uDAA0D;AAC1D,+CAA+C;AAC/C,2DAA2D;AAE3D,+CAAkE;AAClE,2CAAiD;AACjD,uDAAuD;AAEvD,yDAAoD;AACpD,sGAAsE;AACtE,uDAAgE;AAEhE,4HAA4F;AAG5F,MAAqB,MAAO,SAAQ,cAAO;IASzC,KAAK,CAAC,GAAG;QACP,MAAM,SAAS,GAAG,MAAM,CAAC,K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CAAC,IAAA,WAAC,EAAC,gDAAgD,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;aAC3E;QACH,CAAC,CAAC;QAEF,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,eAAe,CAAC;aAC/C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;aAC/B,MAAM,CAAC,CAAA,qBAAgB,CAAA,CAAC;aACxB,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,CAAC;;AAtJH,yBAuJC;AAtJiB,kBAAW,GAAG,IAAA,WAAC,EAAC,6BAA6B,CAAC,CAAC;AAE/C,eAAQ,GAAG,CAAC,qCAAqC,CAAC,CAAC;AAEnD,YAAK,GAAG,EAAE,CAAC;AAEX,WAAI,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/commands/start/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAWtC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAC3C,OAAgB,WAAW,SAAsC;IAEjE,OAAgB,QAAQ,WAA2C;IAEnE,OAAgB,KAAK,KAAM;IAE3B,OAAgB,IAAI,UAAM;IAEpB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA2B3B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
6
|
+
const i18next_1 = require("i18next");
|
|
7
|
+
const path = tslib_1.__importStar(require("path"));
|
|
8
|
+
const child_process_1 = require("child_process");
|
|
9
|
+
const variables_1 = require("../../domains/variables");
|
|
10
|
+
const validateDependencies_1 = tslib_1.__importDefault(require("../../domains/dependencies/validate/validateDependencies"));
|
|
11
|
+
class StartApp extends core_1.Command {
|
|
12
|
+
async run() {
|
|
13
|
+
const projectDir = path.resolve();
|
|
14
|
+
const variables = await (async () => {
|
|
15
|
+
return (0, variables_1.useVariables)({ projectName: path.basename(projectDir) });
|
|
16
|
+
})();
|
|
17
|
+
const modules = JSON.parse(fs.readFileSync(`${projectDir}/${variables.projectDetailsFileName}.json`, { encoding: 'utf8', flag: 'r' }));
|
|
18
|
+
await (0, validateDependencies_1.default)(modules);
|
|
19
|
+
const runners = modules
|
|
20
|
+
.filter(({ template: { runScriptLocalPath } }) => !!runScriptLocalPath)
|
|
21
|
+
.map(({ path, buildOptions, template: { name, runScriptLocalPath } }) => ({
|
|
22
|
+
name: name,
|
|
23
|
+
module: path,
|
|
24
|
+
buildOptions: buildOptions,
|
|
25
|
+
runScript: fs.readFileSync(`${projectDir}/${runScriptLocalPath}`, { encoding: 'utf8', flag: 'r' })
|
|
26
|
+
}));
|
|
27
|
+
runners.forEach(({ name, module, buildOptions, runScript }) => {
|
|
28
|
+
if (runScript) {
|
|
29
|
+
(0, child_process_1.spawn)(runScript, buildOptions);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.log((0, i18next_1.t)('command.start_app.message.failure', { module, name }));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = StartApp;
|
|
38
|
+
StartApp.description = (0, i18next_1.t)('command.start_app.description');
|
|
39
|
+
StartApp.examples = ['<%= config.bin %> <%= command.id %>'];
|
|
40
|
+
StartApp.flags = {};
|
|
41
|
+
StartApp.args = [];
|
|
42
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/commands/start/app.ts"],"names":[],"mappings":";;;AAAA,sCAAs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EAAE,SAAS,EAAE,EAAE,EAAE;YAC5D,IAAI,SAAS,EAAE;gBACb,IAAA,qBAAK,EAAC,SAAS,EAAE,YAAY,CAAC,CAAC;aAChC;iBAAM;gBACL,IAAI,CAAC,GAAG,CAAC,IAAA,WAAC,EAAC,mCAAmC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;aACpE;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AAnCH,2BAoCC;AAnCiB,oBAAW,GAAG,IAAA,WAAC,EAAC,+BAA+B,CAAC,CAAC;AAEjD,iBAAQ,GAAG,CAAC,qCAAqC,CAAC,CAAC;AAEnD,cAAK,GAAG,EAAE,CAAC;AAEX,aAAI,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkDependencies.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/checkDependencies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkDependencies.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/checkDependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,sBAAsB,CAAC;AAiB9D,QAAA,MAAM,eAAe,mBAA0B,MAAM,iBAAiB,MAAM,KAAG,QAAQ,qBAAqB,CAM3G,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
5
|
-
const checkRubyVersion_1 = tslib_1.__importDefault(require("./checkRubyVersion"));
|
|
6
|
-
const checkNodeVersion_1 = tslib_1.__importDefault(require("./checkNodeVersion"));
|
|
4
|
+
const checkVersionByShellCommand_1 = tslib_1.__importDefault(require("./checkVersionByShellCommand"));
|
|
7
5
|
const dependencyMapping = {
|
|
8
|
-
ruby:
|
|
9
|
-
docker:
|
|
10
|
-
|
|
6
|
+
ruby: 'ruby --version',
|
|
7
|
+
docker: 'docker --version',
|
|
8
|
+
'docker-compose': 'docker-compose --version',
|
|
9
|
+
vips: 'vips --version',
|
|
10
|
+
gpg: 'gpg --version',
|
|
11
|
+
psql: 'psql --version',
|
|
12
|
+
redis: 'redis-server --version',
|
|
13
|
+
node: 'node -v',
|
|
14
|
+
yarn: 'yarn --version'
|
|
11
15
|
};
|
|
12
16
|
const checkDependency = async (dependencyName, versionString) => {
|
|
13
17
|
if (Object.keys(dependencyMapping).includes(dependencyName)) {
|
|
14
|
-
return await dependencyMapping[dependencyName]
|
|
18
|
+
return await (0, checkVersionByShellCommand_1.default)(dependencyMapping[dependencyName], versionString);
|
|
15
19
|
}
|
|
16
20
|
else {
|
|
17
21
|
throw new Error(`Unsupported dependency ${dependencyName}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkDependencies.js","sourceRoot":"","sources":["../../../src/domains/dependencies/checkDependencies.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"checkDependencies.js","sourceRoot":"","sources":["../../../src/domains/dependencies/checkDependencies.ts"],"names":[],"mappings":";;;AACA,sGAAsE;AAItE,MAAM,iBAAiB,GAAwC;IAC7D,IAAI,EAAE,gBAAgB;IACtB,MAAM,EAAE,kBAAkB;IAC1B,gBAAgB,EAAE,0BAA0B;IAC5C,IAAI,EAAE,gBAAgB;IACtB,GAAG,EAAE,eAAe;IACpB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF,MAAM,eAAe,GAAG,KAAK,EAAE,cAAsB,EAAE,aAAqB,EAAkC,EAAE;IAC9G,IAAI,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QAC3D,OAAO,MAAM,IAAA,oCAA0B,EAAC,iBAAiB,CAAC,cAAqC,CAAC,EAAE,aAAa,CAAC,CAAC;KAClH;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,0BAA0B,cAAc,EAAE,CAAC,CAAC;KAC7D;AACH,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type DependencyCheckResult from './VersionCheckResult';
|
|
2
|
-
declare const checkVersionByShellCommand: (command: string, versionString: string
|
|
2
|
+
declare const checkVersionByShellCommand: (command: string, versionString: string) => Promise<DependencyCheckResult>;
|
|
3
3
|
export default checkVersionByShellCommand;
|
|
4
4
|
//# sourceMappingURL=checkVersionByShellCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkVersionByShellCommand.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/checkVersionByShellCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkVersionByShellCommand.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/checkVersionByShellCommand.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,qBAAqB,MAAM,sBAAsB,CAAC;AAK9D,QAAA,MAAM,0BAA0B,YAAmB,MAAM,iBAAiB,MAAM,KAAG,QAAQ,qBAAqB,CAqC/G,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -4,13 +4,14 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const util_1 = require("util");
|
|
5
5
|
const child_process_1 = require("child_process");
|
|
6
6
|
const parseVersionCondition_1 = tslib_1.__importDefault(require("./parseVersionCondition"));
|
|
7
|
+
const extractVersion_1 = tslib_1.__importDefault(require("./extractVersion"));
|
|
7
8
|
const compareVersions_1 = tslib_1.__importDefault(require("./compareVersions"));
|
|
8
9
|
const execute = (0, util_1.promisify)(child_process_1.exec);
|
|
9
|
-
const checkVersionByShellCommand = async (command, versionString
|
|
10
|
+
const checkVersionByShellCommand = async (command, versionString) => {
|
|
10
11
|
try {
|
|
11
12
|
const result = await execute(command);
|
|
12
13
|
const output = result.stdout;
|
|
13
|
-
const currentVersion =
|
|
14
|
+
const currentVersion = (0, extractVersion_1.default)(output);
|
|
14
15
|
let compareResult;
|
|
15
16
|
const versionCondition = (0, parseVersionCondition_1.default)(versionString);
|
|
16
17
|
if (Array.isArray(versionCondition.expectedVersion)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkVersionByShellCommand.js","sourceRoot":"","sources":["../../../src/domains/dependencies/checkVersionByShellCommand.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AACjC,iDAAqC;AACrC,4FAA4D;AAC5D,gFAAgD;AAIhD,MAAM,OAAO,GAAG,IAAA,gBAAS,EAAC,oBAAI,CAAC,CAAC;AAEhC,MAAM,0BAA0B,GAAG,KAAK,EAAE,OAAe,EAAE,aAAqB,
|
|
1
|
+
{"version":3,"file":"checkVersionByShellCommand.js","sourceRoot":"","sources":["../../../src/domains/dependencies/checkVersionByShellCommand.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AACjC,iDAAqC;AACrC,4FAA4D;AAC5D,8EAA8C;AAC9C,gFAAgD;AAIhD,MAAM,OAAO,GAAG,IAAA,gBAAS,EAAC,oBAAI,CAAC,CAAC;AAEhC,MAAM,0BAA0B,GAAG,KAAK,EAAE,OAAe,EAAE,aAAqB,EAAkC,EAAE;IAClH,IAAI;QACF,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAE7B,MAAM,cAAc,GAAG,IAAA,wBAAc,EAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,aAAa,CAAA;QACjB,MAAM,gBAAgB,GAAG,IAAA,+BAAqB,EAAC,aAAa,CAAC,CAAC;QAC9D,IAAI,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,EAAE;YACnD,IAAI,MAAM,GAAc,EAAE,CAAA;YAC1B,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,yBAAiD,CAAA;YACpG,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAE,CAAC,QAAQ,CAAC,IAAA,yBAAe,EAAC,cAAc,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;YAC3J,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;SAC3C;aAAM;YACL,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,yBAA+C,CAAA;YAClG,aAAa,GAAG,yBAAyB,CAAC,QAAQ,CAAC,IAAA,yBAAe,EAAC,cAAc,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAA;SACtH;QAED,IAAI,aAAa,EAAE;YACjB,OAAO;gBACL,MAAM,EAAE,IAAI;gBACZ,eAAe,EAAE,aAAa;gBAC9B,YAAY,EAAE,cAAc;aAC7B,CAAC;SACH;aAAM;YACL,OAAO;gBACL,MAAM,EAAE,kBAAkB;gBAC1B,eAAe,EAAE,aAAa;gBAC9B,YAAY,EAAE,cAAc;aAC7B,CAAC;SACH;KACF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,eAAe,EAAE,aAAa;SAC/B,CAAC;KACH;AACH,CAAC,CAAC;AAEF,kBAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractVersion.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/extractVersion.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc,kBAAmB,MAAM,KAAG,MAO/C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const versionRegExp = /(\d+)(\.\d+)(\.\d+)?/g;
|
|
4
|
+
const extractVersion = (versionString) => {
|
|
5
|
+
const regexResult = versionString.trim().match(versionRegExp);
|
|
6
|
+
if (!regexResult || !regexResult[0]) {
|
|
7
|
+
throw new Error(`Invalid version string: ${versionString}`);
|
|
8
|
+
}
|
|
9
|
+
return regexResult[0];
|
|
10
|
+
};
|
|
11
|
+
exports.default = extractVersion;
|
|
12
|
+
//# sourceMappingURL=extractVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/extractVersion.ts"],"names":[],"mappings":";;AAAA,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,MAAM,cAAc,GAAG,CAAC,aAAqB,EAAU,EAAE;IACvD,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAE9D,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;QACnC,MAAM,IAAI,KAAK,CAAC,2BAA2B,aAAa,EAAE,CAAC,CAAC;KAC7D;IACD,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateDependencies.d.ts","sourceRoot":"","sources":["../../../../src/domains/dependencies/validate/validateDependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AA2B9D,QAAA,MAAM,oBAAoB,YAAmB,MAAM,EAAE,GAAG,UAAU,EAAE,kBAInE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const i18next_1 = require("i18next");
|
|
6
|
+
const checkDependencies_1 = tslib_1.__importDefault(require("../checkDependencies"));
|
|
7
|
+
const color_1 = tslib_1.__importDefault(require("@oclif/color"));
|
|
8
|
+
const validateDependenciesForModule = async (module) => {
|
|
9
|
+
const { template: { dependencies } } = module;
|
|
10
|
+
if (!dependencies) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
for (const [name, versionString] of Object.entries(dependencies)) {
|
|
14
|
+
core_1.CliUx.ux.action.start((0, i18next_1.t)('command.new_app.message.dependency_checking', { name, expectedVersion: versionString }));
|
|
15
|
+
const result = await (0, checkDependencies_1.default)(name, versionString);
|
|
16
|
+
if (result.status === 'OK') {
|
|
17
|
+
core_1.CliUx.ux.action.stop(color_1.default.green((0, i18next_1.t)('command.new_app.message.done')));
|
|
18
|
+
}
|
|
19
|
+
else if (result.status === 'NOT_FOUND') {
|
|
20
|
+
core_1.CliUx.ux.action.stop(color_1.default.red((0, i18next_1.t)('command.new_app.message.error')));
|
|
21
|
+
throw new Error((0, i18next_1.t)('command.new_app.message.dependency_not_found', { name }));
|
|
22
|
+
}
|
|
23
|
+
else if (result.status === 'VERSION_MISMATCH') {
|
|
24
|
+
core_1.CliUx.ux.action.stop(color_1.default.red((0, i18next_1.t)('command.new_app.message.error')));
|
|
25
|
+
throw new Error((0, i18next_1.t)('command.new_app.message.dependency_version_mismatch', { name, expectedVersion: versionString, currentVersion: result.versionFound }));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const validateDependencies = async (modules) => {
|
|
30
|
+
for (const module of modules) {
|
|
31
|
+
await validateDependenciesForModule(module);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.default = validateDependencies;
|
|
35
|
+
//# sourceMappingURL=validateDependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateDependencies.js","sourceRoot":"","sources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+B,CAAC,CAAC,CAAC,CAAC;YACpE,MAAM,IAAI,KAAK,CAAC,IAAA,WAAC,EAAC,qDAAqD,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,CAAC,YAAY,EAAC,CAAC,CAAC,CAAC;SACzJ;KACF;AACH,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,KAAK,EAAE,OAAgC,EAAG,EAAE;IACvE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,MAAM,6BAA6B,CAAC,MAAM,CAAC,CAAC;KAC7C;AACH,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -9,7 +9,7 @@ const createDirectory = async (dir) => {
|
|
|
9
9
|
const { overwrite } = await inquirer_1.default.prompt({
|
|
10
10
|
type: 'confirm',
|
|
11
11
|
name: 'overwrite',
|
|
12
|
-
message: () => (0, i18next_1.t)('command.
|
|
12
|
+
message: () => (0, i18next_1.t)('command.new_app.input.overwrite', { dir })
|
|
13
13
|
});
|
|
14
14
|
return overwrite;
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDirectory.js","sourceRoot":"","sources":["../../../src/domains/directory/createDirectory.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAC5B,gEAAgC;AAChC,gFAAgD;AAEhD,MAAM,eAAe,GAAG,KAAK,EAAE,GAAW,EAAoB,EAAE;IAC9D,IAAI,MAAM,IAAA,yBAAe,EAAC,GAAG,CAAC,EAAE;QAC9B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAyB;YAClE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAA,WAAC,EAAC,
|
|
1
|
+
{"version":3,"file":"createDirectory.js","sourceRoot":"","sources":["../../../src/domains/directory/createDirectory.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAC5B,gEAAgC;AAChC,gFAAgD;AAEhD,MAAM,eAAe,GAAG,KAAK,EAAE,GAAW,EAAoB,EAAE;IAC9D,IAAI,MAAM,IAAA,yBAAe,EAAC,GAAG,CAAC,EAAE;QAC9B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAyB;YAClE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAA,WAAC,EAAC,iCAAiC,EAAE,EAAE,GAAG,EAAE,CAAC;SAC7D,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchIntegrations.d.ts","sourceRoot":"","sources":["../../../src/domains/integration/fetchIntegrations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchIntegrations.d.ts","sourceRoot":"","sources":["../../../src/domains/integration/fetchIntegrations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAQrC,QAAA,MAAM,iBAAiB,QAAa,QAAQ,WAAW,EAAE,CAQxD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -7,9 +7,10 @@ const URL = `${constants_1.API_URL}/integrations/data.json`;
|
|
|
7
7
|
const fetchIntegrations = async () => {
|
|
8
8
|
const response = await (0, node_fetch_1.default)(URL);
|
|
9
9
|
const data = (await response.json());
|
|
10
|
-
return data.map(({ buildScriptPath, ...rest }) => ({
|
|
10
|
+
return data.map(({ buildScriptPath, runScriptPath, ...rest }) => ({
|
|
11
11
|
...rest,
|
|
12
|
-
buildScriptURL: constants_1.API_URL.concat(buildScriptPath)
|
|
12
|
+
buildScriptURL: constants_1.API_URL.concat(buildScriptPath),
|
|
13
|
+
runScriptURL: constants_1.API_URL.concat(runScriptPath)
|
|
13
14
|
}));
|
|
14
15
|
};
|
|
15
16
|
exports.default = fetchIntegrations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchIntegrations.js","sourceRoot":"","sources":["../../../src/domains/integration/fetchIntegrations.ts"],"names":[],"mappings":";;;AAAA,oEAA+B;AAG/B,4CAAuC;AAEvC,MAAM,GAAG,GAAG,GAAG,mBAAO,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchIntegrations.js","sourceRoot":"","sources":["../../../src/domains/integration/fetchIntegrations.ts"],"names":[],"mappings":";;;AAAA,oEAA+B;AAG/B,4CAAuC;AAEvC,MAAM,GAAG,GAAG,GAAG,mBAAO,yBAAyB,CAAC;AAKhD,MAAM,iBAAiB,GAAG,KAAK,IAA4B,EAAE;IAC3D,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAA0B,CAAC;IAC9D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,eAAe,EAAE,aAAa,EAAE,GAAG,IAAI,EAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,GAAG,IAAI;QACP,cAAc,EAAE,mBAAO,CAAC,MAAM,CAAC,eAAe,CAAC;QAC/C,YAAY,EAAE,mBAAO,CAAC,MAAM,CAAC,aAAa,CAAC;KAC5C,CAAC,CAAkB,CAAC;AACvB,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;
|
|
1
|
+
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AACD,oBAAY,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACtD,eAAe,MAAM,CAAC"}
|
|
@@ -3,7 +3,9 @@ import type { BuildScript } from '../build';
|
|
|
3
3
|
interface Runner {
|
|
4
4
|
name: Template['name'];
|
|
5
5
|
buildOptions: Module['buildOptions'];
|
|
6
|
+
module?: string;
|
|
6
7
|
buildScript?: BuildScript;
|
|
8
|
+
runScript?: string;
|
|
7
9
|
}
|
|
8
10
|
export default Runner;
|
|
9
11
|
//# sourceMappingURL=Runner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Runner.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,UAAU,MAAM;IACd,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Runner.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,UAAU,MAAM;IACd,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,eAAe,MAAM,CAAC"}
|
|
@@ -4,7 +4,13 @@ export interface Template {
|
|
|
4
4
|
gitRef?: string;
|
|
5
5
|
documentationURL?: string;
|
|
6
6
|
buildScriptURL?: string;
|
|
7
|
+
runScriptPath?: string;
|
|
8
|
+
runScriptURL?: string;
|
|
9
|
+
runScriptLocalPath?: string;
|
|
7
10
|
dependencies?: Record<string, string>;
|
|
11
|
+
samples?: {
|
|
12
|
+
buildScriptURL?: string;
|
|
13
|
+
};
|
|
8
14
|
}
|
|
9
15
|
export default Template;
|
|
10
16
|
//# sourceMappingURL=Template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Template.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Template.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE;QACR,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAA;CACF;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunScript.d.ts","sourceRoot":"","sources":["../../../src/domains/run/RunScript.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS,GAAG,MAAM,CAAC;AAExB,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunScript.js","sourceRoot":"","sources":["../../../src/domains/run/RunScript.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRunScript.d.ts","sourceRoot":"","sources":["../../../src/domains/run/getRunScript.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,QAAA,MAAM,YAAY,iBAAwB,MAAM,KAAG,QAAQ,SAAS,CAOnE,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
5
|
+
const getRunScript = async (runScriptURL) => {
|
|
6
|
+
const response = await (0, node_fetch_1.default)(runScriptURL, {
|
|
7
|
+
headers: {
|
|
8
|
+
'Content-Type': 'text/plain'
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
return response.text();
|
|
12
|
+
};
|
|
13
|
+
exports.default = getRunScript;
|
|
14
|
+
//# sourceMappingURL=getRunScript.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRunScript.js","sourceRoot":"","sources":["../../../src/domains/run/getRunScript.ts"],"names":[],"mappings":";;;AAAA,oEAA+B;AAI/B,MAAM,YAAY,GAAG,KAAK,EAAE,YAAoB,EAAsB,EAAE;IACtE,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,YAAY,EAAE;QACzC,OAAO,EAAE;YACP,cAAc,EAAE,YAAY;SAC7B;KACF,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,IAAI,EAAwB,CAAC;AAC/C,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getRunScript = void 0;
|
|
7
|
+
var getRunScript_1 = require("./getRunScript");
|
|
8
|
+
Object.defineProperty(exports, "getRunScript", { enumerable: true, get: function () { return __importDefault(getRunScript_1).default; } });
|
|
9
|
+
var RunScript_1 = require("./RunScript");
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/run/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,yCAAmD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchSpreeTemplates.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/fetchSpreeTemplates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchSpreeTemplates.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/fetchSpreeTemplates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAS/B,QAAA,MAAM,mBAAmB,QAAa,QAAQ,KAAK,EAAE,CAWpD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -7,9 +7,13 @@ const URL = `${constants_1.API_URL}/spree/data.json`;
|
|
|
7
7
|
const fetchSpreeTemplates = async () => {
|
|
8
8
|
const response = await (0, node_fetch_1.default)(URL);
|
|
9
9
|
const data = (await response.json());
|
|
10
|
-
return data.map(({ buildScriptPath, ...rest }) => ({
|
|
10
|
+
return data.map(({ buildScriptPath, runScriptPath, samples, ...rest }) => ({
|
|
11
11
|
...rest,
|
|
12
|
-
buildScriptURL: constants_1.API_URL.concat(buildScriptPath)
|
|
12
|
+
buildScriptURL: constants_1.API_URL.concat(buildScriptPath),
|
|
13
|
+
runScriptURL: constants_1.API_URL.concat(runScriptPath),
|
|
14
|
+
samples: {
|
|
15
|
+
buildScriptURL: constants_1.API_URL.concat(samples.buildScriptPath),
|
|
16
|
+
}
|
|
13
17
|
}));
|
|
14
18
|
};
|
|
15
19
|
exports.default = fetchSpreeTemplates;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchSpreeTemplates.js","sourceRoot":"","sources":["../../../src/domains/spree/fetchSpreeTemplates.ts"],"names":[],"mappings":";;;AAAA,oEAA+B;AAG/B,4CAAuC;AAEvC,MAAM,GAAG,GAAG,GAAG,mBAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchSpreeTemplates.js","sourceRoot":"","sources":["../../../src/domains/spree/fetchSpreeTemplates.ts"],"names":[],"mappings":";;;AAAA,oEAA+B;AAG/B,4CAAuC;AAEvC,MAAM,GAAG,GAAG,GAAG,mBAAO,kBAAkB,CAAC;AAMzC,MAAM,mBAAmB,GAAG,KAAK,IAAsB,EAAE;IACvD,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAoB,CAAC;IACxD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,eAAe,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,IAAI,EAAC,EAAE,EAAE,CAAC,CAAC;QACvE,GAAG,IAAI;QACP,cAAc,EAAE,mBAAO,CAAC,MAAM,CAAC,eAAe,CAAC;QAC/C,YAAY,EAAE,mBAAO,CAAC,MAAM,CAAC,aAAa,CAAC;QAC3C,OAAO,EAAE;YACP,cAAc,EAAE,mBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;SACxD;KACF,CAAC,CAAY,CAAC;AACjB,CAAC,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Variables.d.ts","sourceRoot":"","sources":["../../../src/domains/variables/Variables.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Variables.d.ts","sourceRoot":"","sources":["../../../src/domains/variables/Variables.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVariables.d.ts","sourceRoot":"","sources":["../../../src/domains/variables/useVariables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"useVariables.d.ts","sourceRoot":"","sources":["../../../src/domains/variables/useVariables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,CAKpD,CAAC;AAEF,aAAK,aAAa,GAAG,OAAO,CAAC,OAAO,gBAAgB,CAAC,GACnD,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,SAAS,EAAE,MAAM,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAExE,QAAA,MAAM,YAAY,kBAAmB,aAAa,KAAG,SASpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const defaultVariables = {
|
|
4
4
|
pathBackend: 'backend',
|
|
5
5
|
pathIntegration: 'integration',
|
|
6
|
-
backendURL: 'http://localhost:4000'
|
|
6
|
+
backendURL: 'http://localhost:4000',
|
|
7
|
+
projectDetailsFileName: 'project_details'
|
|
7
8
|
};
|
|
8
9
|
const useVariables = (userVariables) => {
|
|
9
10
|
const variables = { ...defaultVariables, ...userVariables };
|
|
@@ -11,6 +12,7 @@ const useVariables = (userVariables) => {
|
|
|
11
12
|
process.env.SPREE_CLI_PATH_INTEGRATION = variables.pathIntegration;
|
|
12
13
|
process.env.SPREE_CLI_PROJECT_NAME = variables.projectName;
|
|
13
14
|
process.env.SPREE_CLI_BACKEND_URL = variables.backendURL;
|
|
15
|
+
process.env.SPREE_CLI_PROJECT_DETAILS_FILE_NAME = variables.projectDetailsFileName;
|
|
14
16
|
return variables;
|
|
15
17
|
};
|
|
16
18
|
exports.default = useVariables;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVariables.js","sourceRoot":"","sources":["../../../src/domains/variables/useVariables.ts"],"names":[],"mappings":";;AAGA,MAAM,gBAAgB,GAAmC;IACvD,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,aAAa;IAC9B,UAAU,EAAE,uBAAuB;
|
|
1
|
+
{"version":3,"file":"useVariables.js","sourceRoot":"","sources":["../../../src/domains/variables/useVariables.ts"],"names":[],"mappings":";;AAGA,MAAM,gBAAgB,GAAmC;IACvD,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,aAAa;IAC9B,UAAU,EAAE,uBAAuB;IACnC,sBAAsB,EAAE,iBAAiB;CAC1C,CAAC;AAKF,MAAM,YAAY,GAAG,CAAC,aAA4B,EAAa,EAAE;IAC/D,MAAM,SAAS,GAAG,EAAE,GAAG,gBAAgB,EAAE,GAAG,aAAa,EAAE,CAAC;IAC5D,OAAO,CAAC,GAAG,CAAC,sBAAsB,GAAG,SAAS,CAAC,WAAW,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,0BAA0B,GAAG,SAAS,CAAC,eAAe,CAAC;IACnE,OAAO,CAAC,GAAG,CAAC,sBAAsB,GAAG,SAAS,CAAC,WAAW,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,mCAAmC,GAAG,SAAS,CAAC,sBAAsB,CAAC;IAEnF,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"command": {
|
|
3
|
-
"
|
|
4
|
-
"description": "Generates a Spree
|
|
3
|
+
"new_app": {
|
|
4
|
+
"description": "Generates a Spree project with storefront and backend modules.",
|
|
5
5
|
"input": {
|
|
6
6
|
"project_name": "What's your project name?",
|
|
7
7
|
"integration": "Choose a storefront:",
|
|
8
8
|
"spree": "Choose a Spree setup:",
|
|
9
|
+
"samples": "Do you want to load the samples?",
|
|
9
10
|
"custom_integration_repository": "What's the URL of the custom frontend git repository?",
|
|
10
11
|
"overwrite": "\"./{{ dir }}\" already exists. Overwrite?"
|
|
11
12
|
},
|
|
@@ -19,12 +20,19 @@
|
|
|
19
20
|
"build_scripts": "Getting the build scripts ready",
|
|
20
21
|
"build_scripts_fetching": "Downloading \"{{ name }}\" build script",
|
|
21
22
|
"build_scripts_fetching_done": "Build script for \"{{ name }}\" downloaded!",
|
|
23
|
+
"run_scripts": "Getting the run scripts ready",
|
|
22
24
|
"done": "done",
|
|
23
25
|
"dependency_checking": "Checking {{ name }} {{ expectedVersion }}",
|
|
24
26
|
"dependency_not_found": "Could not find \"{{ name }}\" on your machine. Please install it before running Spree CLI",
|
|
25
27
|
"dependency_version_mismatch": "The configuration you chose requires \"{{ name }}\" \"{{ expectedVersion }}\", while version \"{{ currentVersion }}\" is currently installed. Please install the correct version before running Spree CLI",
|
|
26
28
|
"error": "ERROR"
|
|
27
29
|
}
|
|
30
|
+
},
|
|
31
|
+
"start_app": {
|
|
32
|
+
"description": "Starts up an already generated project.",
|
|
33
|
+
"message": {
|
|
34
|
+
"failure": "No boot script detected for: [\"{{ module }}\"] \"{{ name }}\""
|
|
35
|
+
}
|
|
28
36
|
}
|
|
29
37
|
},
|
|
30
38
|
"domain": {
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.
|
|
1
|
+
{"version":"1.0.0","commands":{"new:app":{"id":"new:app","strict":true,"pluginName":"@spree/cli","pluginAlias":"@spree/cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{},"args":[],"_globalFlags":{}},"start:app":{"id":"start:app","strict":true,"pluginName":"@spree/cli","pluginAlias":"@spree/cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{},"args":[],"_globalFlags":{}}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spree/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Spree's CLI that allows for setting up the store with selected backend template and front-end integration",
|
|
5
5
|
"bin": "./bin/run",
|
|
6
6
|
"homepage": "https://github.com/upsidelab/spree_cli_internal",
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Command } from '@oclif/core';
|
|
2
|
-
import type { Module } from '../../domains/module';
|
|
3
|
-
export default class GenerateStore extends Command {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
static flags: {};
|
|
7
|
-
static args: never[];
|
|
8
|
-
run(): Promise<void>;
|
|
9
|
-
_validateDependencies(modules: Module[]): Promise<void>;
|
|
10
|
-
_validateDependenciesForModule(module: Module): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/commands/generate/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAc7C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.js","sourceRoot":"","sources":["../../../src/domains/dependencies/CheckDependency.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkDockerVersion.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/checkDockerVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,kBAAkB,EAAE,eAEzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const extractDockerVersion_1 = tslib_1.__importDefault(require("./extractDockerVersion"));
|
|
5
|
-
const checkVersionByShellCommand_1 = tslib_1.__importDefault(require("./checkVersionByShellCommand"));
|
|
6
|
-
const checkDockerVersion = async (versionString) => {
|
|
7
|
-
return await (0, checkVersionByShellCommand_1.default)('docker --version', versionString, extractDockerVersion_1.default);
|
|
8
|
-
};
|
|
9
|
-
exports.default = checkDockerVersion;
|
|
10
|
-
//# sourceMappingURL=checkDockerVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkDockerVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/checkDockerVersion.ts"],"names":[],"mappings":";;;AACA,0FAA0D;AAC1D,sGAAsE;AAEtE,MAAM,kBAAkB,GAAoB,KAAK,EAAE,aAAqB,EAAE,EAAE;IAC1E,OAAO,MAAM,IAAA,oCAA0B,EAAC,kBAAkB,EAAE,aAAa,EAAE,8BAAoB,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkNodeVersion.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/checkNodeVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,gBAAgB,EAAE,eAEvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const extractNodeVersion_1 = tslib_1.__importDefault(require("./extractNodeVersion"));
|
|
5
|
-
const checkVersionByShellCommand_1 = tslib_1.__importDefault(require("./checkVersionByShellCommand"));
|
|
6
|
-
const checkNodeVersion = async (versionString) => {
|
|
7
|
-
return await (0, checkVersionByShellCommand_1.default)('node -v', versionString, extractNodeVersion_1.default);
|
|
8
|
-
};
|
|
9
|
-
exports.default = checkNodeVersion;
|
|
10
|
-
//# sourceMappingURL=checkNodeVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkNodeVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/checkNodeVersion.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AACtD,sGAAsE;AAEtE,MAAM,gBAAgB,GAAoB,KAAK,EAAE,aAAqB,EAAE,EAAE;IACxE,OAAO,MAAM,IAAA,oCAA0B,EAAC,SAAS,EAAE,aAAa,EAAE,4BAAkB,CAAC,CAAC;AACxF,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkRubyVersion.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/checkRubyVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,gBAAgB,EAAE,eAEvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const extractRubyVersion_1 = tslib_1.__importDefault(require("./extractRubyVersion"));
|
|
5
|
-
const checkVersionByShellCommand_1 = tslib_1.__importDefault(require("./checkVersionByShellCommand"));
|
|
6
|
-
const checkRubyVersion = async (versionString) => {
|
|
7
|
-
return await (0, checkVersionByShellCommand_1.default)('ruby --version', versionString, extractRubyVersion_1.default);
|
|
8
|
-
};
|
|
9
|
-
exports.default = checkRubyVersion;
|
|
10
|
-
//# sourceMappingURL=checkRubyVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkRubyVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/checkRubyVersion.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AACtD,sGAAsE;AAEtE,MAAM,gBAAgB,GAAoB,KAAK,EAAE,aAAqB,EAAE,EAAE;IACxE,OAAO,MAAM,IAAA,oCAA0B,EAAC,gBAAgB,EAAE,aAAa,EAAE,4BAAkB,CAAC,CAAC;AAC/F,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractDockerVersion.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/extractDockerVersion.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,WAAY,MAAM,KAAG,MAE9C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const extractVersionByRegExp_1 = tslib_1.__importDefault(require("./extractVersionByRegExp"));
|
|
5
|
-
const versionRegExp = /^Docker version (\d+.\d+.\d+).*$/;
|
|
6
|
-
const extractDockerVersion = (output) => {
|
|
7
|
-
return (0, extractVersionByRegExp_1.default)(output, versionRegExp);
|
|
8
|
-
};
|
|
9
|
-
exports.default = extractDockerVersion;
|
|
10
|
-
//# sourceMappingURL=extractDockerVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractDockerVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/extractDockerVersion.ts"],"names":[],"mappings":";;;AAAA,8FAA8D;AAE9D,MAAM,aAAa,GAAG,kCAAkC,CAAC;AAEzD,MAAM,oBAAoB,GAAG,CAAC,MAAc,EAAU,EAAE;IACtD,OAAO,IAAA,gCAAsB,EAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractNodeVersion.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/extractNodeVersion.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,kBAAkB,WAAY,MAAM,KAAG,MAE5C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const extractVersionByRegExp_1 = tslib_1.__importDefault(require("./extractVersionByRegExp"));
|
|
5
|
-
const versionRegExp = /^v(\d+\.\d+\.\d+)$/;
|
|
6
|
-
const extractNodeVersion = (output) => {
|
|
7
|
-
return (0, extractVersionByRegExp_1.default)(output, versionRegExp);
|
|
8
|
-
};
|
|
9
|
-
exports.default = extractNodeVersion;
|
|
10
|
-
//# sourceMappingURL=extractNodeVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractNodeVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/extractNodeVersion.ts"],"names":[],"mappings":";;;AAAA,8FAA8D;AAE9D,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAE3C,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAU,EAAE;IACpD,OAAO,IAAA,gCAAsB,EAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractRubyVersion.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/extractRubyVersion.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,kBAAkB,WAAY,MAAM,KAAG,MAE5C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const extractVersionByRegExp_1 = tslib_1.__importDefault(require("./extractVersionByRegExp"));
|
|
5
|
-
const versionRegExp = /^ruby (\d+\.\d+\.\d+)p.*$/;
|
|
6
|
-
const extractRubyVersion = (output) => {
|
|
7
|
-
return (0, extractVersionByRegExp_1.default)(output, versionRegExp);
|
|
8
|
-
};
|
|
9
|
-
exports.default = extractRubyVersion;
|
|
10
|
-
//# sourceMappingURL=extractRubyVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractRubyVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/extractRubyVersion.ts"],"names":[],"mappings":";;;AAAA,8FAA8D;AAE9D,MAAM,aAAa,GAAG,2BAA2B,CAAC;AAElD,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAU,EAAE;IACpD,OAAO,IAAA,gCAAsB,EAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractVersionByRegExp.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/extractVersionByRegExp.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,WAAY,MAAM,UAAU,MAAM,KAAG,MAOhE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const extractVersionByRegExp = (output, regExp) => {
|
|
4
|
-
const regexResult = output.trim().match(regExp);
|
|
5
|
-
if (!regexResult || !regexResult[1]) {
|
|
6
|
-
throw new Error('Invalid output');
|
|
7
|
-
}
|
|
8
|
-
return regexResult[1];
|
|
9
|
-
};
|
|
10
|
-
exports.default = extractVersionByRegExp;
|
|
11
|
-
//# sourceMappingURL=extractVersionByRegExp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extractVersionByRegExp.js","sourceRoot":"","sources":["../../../src/domains/dependencies/extractVersionByRegExp.ts"],"names":[],"mappings":";;AAAA,MAAM,sBAAsB,GAAG,CAAC,MAAc,EAAE,MAAc,EAAU,EAAE;IACxE,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhD,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;QACnC,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;KACnC;IACD,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.checkRubyVersion = void 0;
|
|
7
|
-
var checkRubyVersion_1 = require("./checkRubyVersion");
|
|
8
|
-
Object.defineProperty(exports, "checkRubyVersion", { enumerable: true, get: function () { return __importDefault(checkRubyVersion_1).default; } });
|
|
9
|
-
var CheckDependency_1 = require("./CheckDependency");
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/dependencies/index.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB;AACpC,qDAA+D"}
|