@dword-design/base-config-app 7.0.12 → 8.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/dist/get-ecosystem-config.d.ts +3 -1
- package/dist/get-ecosystem-config.js +3 -3
- package/dist/get-nginx-config.d.ts +3 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +7 -4
- package/package.json +20 -19
|
@@ -9,8 +9,8 @@ export default (packageConfig, {
|
|
|
9
9
|
const repositoryUrl = fs.existsSync(pathLib.join(cwd, ".git")) ? parseGitConfig.sync({
|
|
10
10
|
cwd
|
|
11
11
|
})['remote "origin"']?.url : void 0;
|
|
12
|
-
const gitInfo = hostedGitInfo.fromUrl(repositoryUrl)
|
|
13
|
-
if (repositoryUrl !== void 0 && gitInfo
|
|
12
|
+
const gitInfo = hostedGitInfo.fromUrl(repositoryUrl);
|
|
13
|
+
if (repositoryUrl !== void 0 && gitInfo?.type !== "github") {
|
|
14
14
|
throw new Error("Only GitHub repositories are supported.");
|
|
15
15
|
}
|
|
16
16
|
const packageName = parsePackagejsonName(packageConfig.name).fullName;
|
|
@@ -27,7 +27,7 @@ export default (packageConfig, {
|
|
|
27
27
|
host: ["sebastianlandwehr.com"],
|
|
28
28
|
path: `/var/www/${packageName}`,
|
|
29
29
|
"post-deploy": "source ~/.nvm/nvm.sh && pnpm install --frozen-lockfile && pnpm checkUnknownFiles && pnpm prepublishOnly && pm2 startOrReload ecosystem.json",
|
|
30
|
-
...(
|
|
30
|
+
...(gitInfo && {
|
|
31
31
|
repo: `git@github.com:${gitInfo.user}/${gitInfo.project}.git`
|
|
32
32
|
}),
|
|
33
33
|
ref: "origin/master",
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { defineBaseConfig } from "@dword-design/base";
|
|
1
2
|
import getBaseConfigNuxt, { getEslintConfig } from "@dword-design/base-config-nuxt";
|
|
2
3
|
import packageName from "depcheck-package-name";
|
|
3
4
|
import { execaCommand } from "execa";
|
|
4
|
-
import loadPkg from "load-pkg";
|
|
5
5
|
import outputFiles from "output-files";
|
|
6
|
+
import { readPackageSync } from "read-pkg";
|
|
6
7
|
import yaml from "yaml";
|
|
7
8
|
import dockerCompose from "./docker-compose.js";
|
|
8
9
|
import getEcosystemConfig from "./get-ecosystem-config.js";
|
|
9
10
|
import getNginxConfig from "./get-nginx-config.js";
|
|
10
|
-
export default function (config) {
|
|
11
|
-
const packageConfig =
|
|
11
|
+
export default defineBaseConfig(function (config) {
|
|
12
|
+
const packageConfig = readPackageSync({
|
|
13
|
+
cwd: this.cwd
|
|
14
|
+
});
|
|
12
15
|
const baseConfigNuxt = getBaseConfigNuxt.call(this, config);
|
|
13
16
|
return {
|
|
14
17
|
...baseConfigNuxt,
|
|
@@ -82,4 +85,4 @@ export default function (config) {
|
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
};
|
|
85
|
-
}
|
|
88
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base-config-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"repository": "dword-design/base-config-app",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"types": "./dist/index.d.ts"
|
|
14
|
-
}
|
|
11
|
+
"default": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
15
13
|
}
|
|
16
14
|
},
|
|
17
15
|
"main": "dist/index.js",
|
|
@@ -31,33 +29,36 @@
|
|
|
31
29
|
"verify": "base verify"
|
|
32
30
|
},
|
|
33
31
|
"dependencies": {
|
|
34
|
-
"@dword-design/base
|
|
35
|
-
"@
|
|
32
|
+
"@dword-design/base": "^16.1.0",
|
|
33
|
+
"@dword-design/base-config-nuxt": "^9.0.1",
|
|
34
|
+
"@semantic-release/exec": "^7.1.0",
|
|
36
35
|
"ceiling": "^4.0.0",
|
|
37
|
-
"depcheck-package-name": "^4.0.
|
|
36
|
+
"depcheck-package-name": "^4.0.1",
|
|
38
37
|
"endent": "npm:@dword-design/endent@^1.4.7",
|
|
39
|
-
"execa": "^9.6.
|
|
40
|
-
"fs-extra": "^11.3.
|
|
41
|
-
"hosted-git-info": "^
|
|
42
|
-
"load-pkg": "^4.0.0",
|
|
38
|
+
"execa": "^9.6.1",
|
|
39
|
+
"fs-extra": "^11.3.2",
|
|
40
|
+
"hosted-git-info": "^9.0.2",
|
|
43
41
|
"output-files": "^3.0.0",
|
|
44
42
|
"parse-git-config": "npm:@dword-design/parse-git-config@^0.0.1",
|
|
45
|
-
"parse-packagejson-name": "
|
|
46
|
-
"pm2": "^6.0.
|
|
43
|
+
"parse-packagejson-name": "npm:@dword-design/parse-packagejson-name-fork@^0.0.2",
|
|
44
|
+
"pm2": "^6.0.14",
|
|
45
|
+
"read-pkg": "^10.0.0",
|
|
47
46
|
"tagged-template-noop": "^2.1.1",
|
|
48
|
-
"yaml": "^2.8.
|
|
47
|
+
"yaml": "^2.8.2"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"@
|
|
52
|
-
"@playwright/
|
|
53
|
-
"@
|
|
50
|
+
"@playwright/browser-chromium": "^1.57.0",
|
|
51
|
+
"@playwright/test": "^1.57.0",
|
|
52
|
+
"@types/fs-extra": "^11.0.4",
|
|
53
|
+
"@types/hosted-git-info": "^3.0.5",
|
|
54
|
+
"@types/parse-git-config": "^3.0.4",
|
|
54
55
|
"get-port": "^7.1.0",
|
|
55
56
|
"nuxt-dev-ready": "^5.0.1",
|
|
56
57
|
"tree-kill-promise": "^4.0.0"
|
|
57
58
|
},
|
|
58
59
|
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad",
|
|
59
60
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
61
|
+
"node": ">=22"
|
|
61
62
|
},
|
|
62
63
|
"publishConfig": {
|
|
63
64
|
"access": "public"
|