@dword-design/base-config-app 9.0.2 → 9.0.3
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/dist/index.js +9 -12
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -12,8 +12,6 @@ import dockerCompose from "./docker-compose.js";
|
|
|
12
12
|
import getEcosystemConfig from "./get-ecosystem-config.js";
|
|
13
13
|
import getNginxConfig from "./get-nginx-config.js";
|
|
14
14
|
const resolver = createRequire(import.meta.url);
|
|
15
|
-
const requirementsYml = fs.readFileSync(resolver.resolve("./requirements.yml"), "utf8");
|
|
16
|
-
const playbookYml = fs.readFileSync(resolver.resolve("./playbook.yml"), "utf8");
|
|
17
15
|
export default defineBaseConfig(function (config) {
|
|
18
16
|
const packageConfig = readPackageSync({
|
|
19
17
|
cwd: this.cwd
|
|
@@ -21,8 +19,8 @@ export default defineBaseConfig(function (config) {
|
|
|
21
19
|
const baseConfigNuxt = getBaseConfigNuxt.call(this, config);
|
|
22
20
|
return {
|
|
23
21
|
...baseConfigNuxt,
|
|
24
|
-
allowedMatches: [...baseConfigNuxt.allowedMatches, "docker-compose.yml", "ecosystem.json", "nginx", "playbook.yml", "requirements.yml"],
|
|
25
|
-
editorIgnore: [...baseConfigNuxt.editorIgnore, "docker-compose.yml", "ecosystem.json", "nginx", "playbook.yml", "requirements.yml"],
|
|
22
|
+
allowedMatches: [...baseConfigNuxt.allowedMatches, "docker-compose.yml", "ecosystem.json", "nginx", ...(packageConfig.private ? [] : ["playbook.yml", "requirements.yml"])],
|
|
23
|
+
editorIgnore: [...baseConfigNuxt.editorIgnore, "docker-compose.yml", "ecosystem.json", "nginx", ...(packageConfig.private ? [] : ["playbook.yml", "requirements.yml"])],
|
|
26
24
|
eslintConfig: getEslintConfig({
|
|
27
25
|
ignore: ["ecosystem.json"],
|
|
28
26
|
virtualImports: config.virtualImports
|
|
@@ -36,8 +34,13 @@ export default defineBaseConfig(function (config) {
|
|
|
36
34
|
"docker-compose.yml": yaml.stringify(dockerCompose),
|
|
37
35
|
"ecosystem.json": JSON.stringify(getEcosystemConfig(packageConfig), void 0, 2),
|
|
38
36
|
"nginx/default.config": getNginxConfig(packageConfig),
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
...(!packageConfig.private && (await (async () => {
|
|
38
|
+
const [playbookYml, requirementsYml] = await Promise.all([fs.readFile(resolver.resolve("./playbook.yml"), "utf8"), fs.readFile(resolver.resolve("./requirements.yml"), "utf8")]);
|
|
39
|
+
return {
|
|
40
|
+
"playbook.yml": playbookYml,
|
|
41
|
+
"requirements.yml": requirementsYml
|
|
42
|
+
};
|
|
43
|
+
})()))
|
|
41
44
|
});
|
|
42
45
|
},
|
|
43
46
|
renovateConfig: {
|
|
@@ -99,12 +102,6 @@ export default defineBaseConfig(function (config) {
|
|
|
99
102
|
cwd: this.cwd,
|
|
100
103
|
stdio: "inherit"
|
|
101
104
|
})
|
|
102
|
-
},
|
|
103
|
-
setupDeploy: {
|
|
104
|
-
handler: () => execaCommand(`${packageName`pm2`} deploy production setup`, {
|
|
105
|
-
cwd: this.cwd,
|
|
106
|
-
stdio: "inherit"
|
|
107
|
-
})
|
|
108
105
|
}
|
|
109
106
|
}
|
|
110
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base-config-app",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"repository": "dword-design/base-config-app",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"fs-extra": "^11.3.2",
|
|
40
40
|
"output-files": "^3.0.0",
|
|
41
41
|
"parse-packagejson-name": "npm:@dword-design/parse-packagejson-name-fork@^0.0.2",
|
|
42
|
-
"pm2": "^6.0.14",
|
|
43
42
|
"read-pkg": "^10.0.0",
|
|
44
43
|
"tagged-template-noop": "^2.1.1",
|
|
45
44
|
"yaml": "^2.8.2"
|