cc-core-cli 1.0.58 → 1.0.60

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,17 +65,13 @@ 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','.env.develop','_env','_gitignore','_npmrc'];
68
69
  fs.copySync(`${__dirname}/../template/${project}`, '.', {
69
70
  recursive: true,
70
71
  filter: (name) => {
71
- return project === 'core' ? !name.includes('src/modules') : true
72
+ return !IGNORE_FILES.find(f => name.includes(f))
72
73
  }
73
74
  })
74
- if (['core', 'admin'].includes(project)) {
75
- fs.renameSync(`./_env`, `./.env`)
76
- fs.renameSync(`./_gitignore`, `./.gitignore`)
77
- fs.renameSync(`./_npmrc`, `./.npmrc`)
78
- }
79
75
  spinner.succeed('(1/2) Copying files!')
80
76
  spinner.start('(2/2) Running npm install!')
81
77
  exec('npm install', (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
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": {
@@ -7,8 +7,8 @@ RUN apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testin
7
7
  WORKDIR /usr/src/app
8
8
  COPY package.json .
9
9
  COPY .npmrc .
10
- RUN npm install -g @nestjs/cli && npm install
11
10
  COPY . .
11
+ RUN npm install -g @nestjs/cli && npm install
12
12
  RUN npm run build
13
13
 
14
14
 
@@ -30,8 +30,8 @@ RUN apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testin
30
30
  WORKDIR /usr/src/app
31
31
  COPY package.json .
32
32
  COPY .npmrc .
33
- RUN npm install --only=production
34
33
  COPY . .
34
+ RUN npm install --only=production
35
35
  COPY --from=development /usr/src/app/dist ./dist
36
36
 
37
37
  RUN find /usr/local/lib/node_modules -name "yarn.lock" -type f -delete
@@ -14,12 +14,7 @@
14
14
  "start:dev": "source ./newrelic.sh && nest start --watch",
15
15
  "start:debug": "nest start --debug --watch",
16
16
  "start:prod": "source ./newrelic.sh && node dist/src/main",
17
- "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
18
- "test": "jest",
19
- "test:watch": "jest --watch",
20
- "test:cov": "jest --coverage",
21
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
22
- "test:e2e": "jest --config ./test/jest-e2e.json"
17
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
23
18
  },
24
19
  "dependencies": {
25
20
  "@shopstack/cc-core-lib": "^2.5.41"
@@ -27,7 +22,6 @@
27
22
  "devDependencies": {
28
23
  "@types/bull": "^3.14.4",
29
24
  "@types/express": "^4.17.8",
30
- "@types/jest": "25.1.4",
31
25
  "@types/node": "^13.13.27",
32
26
  "@types/supertest": "^2.0.10",
33
27
  "@typescript-eslint/eslint-plugin": "^6.1.0",
@@ -35,27 +29,11 @@
35
29
  "eslint": "^8.44.0",
36
30
  "eslint-config-prettier": "^6.13.0",
37
31
  "eslint-plugin-import": "^2.22.1",
38
- "jest": "^29.3.1",
39
32
  "prettier": "^1.19.1",
40
33
  "supertest": "^4.0.2",
41
- "ts-jest": "^29.0.5",
42
34
  "ts-loader": "^6.2.1",
43
35
  "ts-node": "^10.9.1",
44
36
  "tsconfig-paths": "^3.9.0",
45
37
  "typescript": "^4.8.4"
46
- },
47
- "jest": {
48
- "moduleFileExtensions": [
49
- "js",
50
- "json",
51
- "ts"
52
- ],
53
- "rootDir": "src",
54
- "testRegex": ".spec.ts$",
55
- "transform": {
56
- "^.+\\.(t|j)s$": "ts-jest"
57
- },
58
- "coverageDirectory": "../coverage",
59
- "testEnvironment": "node"
60
38
  }
61
39
  }