cc-core-cli 1.0.155 → 1.0.157

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/bin/index.js CHANGED
@@ -65,7 +65,7 @@ if (action === 'upgrade') {
65
65
  }
66
66
 
67
67
  const spinner = ora('(1/2) Copying files!').start();
68
- const IGNORE_FILES = ['src/modules', 'docker-compose.yml', 'Dockerfile', 'package.json', 'version.json', 'README.md', 'custom.less', '.env.develop', '_env', '_gitignore', '_npmrc'];
68
+ const IGNORE_FILES = ['src/modules', 'docker-compose.yml', 'package.json', 'version.json', 'README.md', 'custom.less', '.env.develop', '_env', '_gitignore', '_npmrc'];
69
69
  fs.copySync(`${__dirname}/../template/${project}`, '.', {
70
70
  recursive: true,
71
71
  filter: (name) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.155",
3
+ "version": "1.0.157",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -1,10 +1,13 @@
1
- FROM node:22-alpine
1
+ FROM node:18.20.0-alpine3.18
2
2
 
3
3
  RUN mkdir /app
4
4
  WORKDIR /app
5
5
 
6
+ ARG NPM_TOKEN
7
+ RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc \
8
+ && echo "@shopstack:registry=https://registry.npmjs.org/" >> .npmrc
9
+
6
10
  COPY package.json .
7
- COPY .npmrc .
8
11
  COPY . .
9
12
  RUN npm install --production
10
13
 
@@ -1,15 +1,15 @@
1
- FROM node:22-alpine
1
+ FROM node:18.20.0-alpine3.18
2
2
 
3
3
  RUN mkdir /app
4
4
  WORKDIR /app
5
5
 
6
- COPY package.json .
7
- RUN npm install
6
+ ARG NPM_TOKEN
7
+ RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc \
8
+ && echo "@shopstack:registry=https://registry.npmjs.org/" >> .npmrc
8
9
 
10
+ COPY package.json .
9
11
  COPY . .
10
-
11
- ARG commit_hash
12
- ENV BUILD_ID ${commit_hash}
12
+ RUN npm install --production
13
13
 
14
14
  RUN npm run build
15
- CMD ["npm", "run", "start"]
15
+ CMD ["npm", "run", "production"]
@@ -5,13 +5,19 @@ RUN apk add --no-cache build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev
5
5
  RUN apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing libmount ttf-dejavu ttf-droid ttf-freefont ttf-liberation fontconfig
6
6
 
7
7
  WORKDIR /usr/src/app
8
+
9
+ ARG NPM_TOKEN
10
+ RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc \
11
+ && echo "@shopstack:registry=https://registry.npmjs.org/" >> .npmrc
12
+
13
+
8
14
  COPY package.json .
9
- COPY .npmrc .
10
15
  COPY . .
11
- RUN npm install -g @nestjs/cli && npm install
12
- RUN npm run build
13
16
 
17
+ RUN cat .npmrc
14
18
 
19
+ RUN npm install -g @nestjs/cli && npm install
20
+ RUN npm run build
15
21
 
16
22
  FROM node:22.14.0-alpine3.20 as production
17
23
 
@@ -45,8 +51,12 @@ RUN fc-cache -f -v
45
51
  RUN fc-list | grep "Sarabun"
46
52
 
47
53
  WORKDIR /usr/src/app
54
+
55
+ ARG NPM_TOKEN
56
+ RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc \
57
+ && echo "@shopstack:registry=https://registry.npmjs.org/" >> .npmrc
58
+
48
59
  COPY package.json .
49
- COPY .npmrc .
50
60
  COPY . .
51
61
  RUN npm install --only=production
52
62
  COPY --from=development /usr/src/app/dist ./dist
@@ -57,4 +67,4 @@ RUN find /usr/local/lib/node_modules -name "package-lock.json" -type f -delete
57
67
  RUN find /usr/src/app/node_modules -name "yarn.lock" -type f -delete
58
68
  RUN find /usr/src/app/node_modules -name "package-lock.json" -type f -delete
59
69
 
60
- CMD ["npm", "run", "start:prod"]
70
+ CMD ["npm", "run", "start:prod"]
@@ -5,13 +5,19 @@ RUN apk add --no-cache build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev
5
5
  RUN apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing libmount ttf-dejavu ttf-droid ttf-freefont ttf-liberation fontconfig
6
6
 
7
7
  WORKDIR /usr/src/app
8
+
9
+ ARG NPM_TOKEN
10
+ RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc \
11
+ && echo "@shopstack:registry=https://registry.npmjs.org/" >> .npmrc
12
+
13
+
8
14
  COPY package.json .
9
- COPY .npmrc .
10
15
  COPY . .
11
- RUN npm install -g @nestjs/cli && npm install
12
- RUN npm run build
13
16
 
17
+ RUN cat .npmrc
14
18
 
19
+ RUN npm install -g @nestjs/cli && npm install
20
+ RUN npm run build
15
21
 
16
22
  FROM node:22.14.0-alpine3.20 as production
17
23
 
@@ -45,8 +51,12 @@ RUN fc-cache -f -v
45
51
  RUN fc-list | grep "Sarabun"
46
52
 
47
53
  WORKDIR /usr/src/app
54
+
55
+ ARG NPM_TOKEN
56
+ RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc \
57
+ && echo "@shopstack:registry=https://registry.npmjs.org/" >> .npmrc
58
+
48
59
  COPY package.json .
49
- COPY .npmrc .
50
60
  COPY . .
51
61
  RUN npm install --only=production
52
62
  COPY --from=development /usr/src/app/dist ./dist
@@ -57,4 +67,4 @@ RUN find /usr/local/lib/node_modules -name "package-lock.json" -type f -delete
57
67
  RUN find /usr/src/app/node_modules -name "yarn.lock" -type f -delete
58
68
  RUN find /usr/src/app/node_modules -name "package-lock.json" -type f -delete
59
69
 
60
- CMD ["npm", "run", "start:prod"]
70
+ CMD ["npm", "run", "start:prod"]