create-valaxy 0.11.1 → 0.11.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/index.js +3 -1
- package/package.json +2 -2
- package/template/.dockerignore +2 -0
- package/template/.editorconfig +9 -0
- package/template/Dockerfile +18 -0
- package/template/README.md +6 -0
- package/template/package.json +5 -2
- package/template/valaxy.config.ts +1 -0
package/index.js
CHANGED
|
@@ -37,7 +37,9 @@ async function init() {
|
|
|
37
37
|
const packageName = await getValidPackageName(targetDir)
|
|
38
38
|
const root = path.join(cwd, targetDir)
|
|
39
39
|
|
|
40
|
-
if (!fs.existsSync(root)) {
|
|
40
|
+
if (!fs.existsSync(root)) {
|
|
41
|
+
fs.mkdirSync(root, { recursive: true })
|
|
42
|
+
}
|
|
41
43
|
else {
|
|
42
44
|
const existing = fs.readdirSync(root)
|
|
43
45
|
if (existing.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-valaxy",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Create Starter Template for Valaxy",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "me@yunyoujun.cn",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"execa": "5",
|
|
25
25
|
"kolorist": "^1.6.0",
|
|
26
|
-
"minimist": "^1.2.
|
|
26
|
+
"minimist": "^1.2.7",
|
|
27
27
|
"prompts": "^2.4.2"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
FROM node:16-alpine as build-stage
|
|
2
|
+
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
RUN corepack enable
|
|
5
|
+
|
|
6
|
+
COPY .npmrc package.json ./
|
|
7
|
+
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
|
|
8
|
+
pnpm install
|
|
9
|
+
|
|
10
|
+
COPY . .
|
|
11
|
+
RUN pnpm build
|
|
12
|
+
|
|
13
|
+
FROM nginx:stable-alpine as production-stage
|
|
14
|
+
|
|
15
|
+
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
|
16
|
+
EXPOSE 80
|
|
17
|
+
|
|
18
|
+
CMD ["nginx", "-g", "daemon off;"]
|
package/template/README.md
CHANGED
package/template/package.json
CHANGED