create-nocobase-app 0.19.0-alpha.2 → 0.19.0-alpha.4

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/lib/generator.js CHANGED
@@ -127,7 +127,7 @@ const _AppGenerator = class _AppGenerator extends Generator {
127
127
  APP_ENV: "development",
128
128
  DB_DIALECT: dbDialect,
129
129
  APP_KEY: crypto.randomBytes(256).toString("base64"),
130
- PLUGIN_PACKAGE_PREFIX: `@nocobase/plugin-,@nocobase/preset-,@${this.context.name}/plugin-`,
130
+ // PLUGIN_PACKAGE_PREFIX: `@nocobase/plugin-,@nocobase/preset-,@${this.context.name}/plugin-`,
131
131
  ...env
132
132
  }
133
133
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nocobase-app",
3
- "version": "0.19.0-alpha.2",
3
+ "version": "0.19.0-alpha.4",
4
4
  "main": "src/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
@@ -18,5 +18,5 @@
18
18
  "url": "git+https://github.com/nocobase/nocobase.git",
19
19
  "directory": "packages/core/create-nocobase-app"
20
20
  },
21
- "gitHead": "cff5b77ecf12ccdb450d50d505b3aa44a68478c8"
21
+ "gitHead": "9583023f7bea828da5192384a5c002782c341b65"
22
22
  }
package/src/generator.js CHANGED
@@ -134,7 +134,7 @@ class AppGenerator extends Generator {
134
134
  APP_ENV: 'development',
135
135
  DB_DIALECT: dbDialect,
136
136
  APP_KEY: crypto.randomBytes(256).toString('base64'),
137
- PLUGIN_PACKAGE_PREFIX: `@nocobase/plugin-,@nocobase/preset-,@${this.context.name}/plugin-`,
137
+ // PLUGIN_PACKAGE_PREFIX: `@nocobase/plugin-,@nocobase/preset-,@${this.context.name}/plugin-`,
138
138
  ...env,
139
139
  },
140
140
  };
@@ -17,6 +17,7 @@
17
17
  "build": "nocobase build",
18
18
  "test": "nocobase test",
19
19
  "e2e": "nocobase e2e",
20
+ "tar": "nocobase tar",
20
21
  "postinstall": "nocobase postinstall",
21
22
  "lint": "eslint ."
22
23
  },
@@ -1,33 +0,0 @@
1
- const { pathsToModuleNameMapper } = require('ts-jest/utils');
2
- const { compilerOptions } = require('./tsconfig.paths.json');
3
- const { resolve } = require('path');
4
-
5
- module.exports = {
6
- rootDir: process.cwd(),
7
- collectCoverage: false,
8
- verbose: true,
9
- testEnvironment: 'jsdom',
10
- preset: 'ts-jest',
11
- testMatch: ['**/__tests__/**/*.test.[jt]s?(x)'],
12
- setupFilesAfterEnv: [require.resolve('jest-dom/extend-expect'), resolve(__dirname, './jest.setup.ts')],
13
- moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
14
- prefix: '<rootDir>/',
15
- }),
16
- globals: {
17
- 'ts-jest': {
18
- babelConfig: false,
19
- tsconfig: './tsconfig.jest.json',
20
- diagnostics: false,
21
- },
22
- },
23
- modulePathIgnorePatterns: ['/esm/', '/es/', '/dist/', '/lib/'],
24
- coveragePathIgnorePatterns: [
25
- '/node_modules/',
26
- '/__tests__/',
27
- '/esm/',
28
- '/lib/',
29
- 'package.json',
30
- '/demo/',
31
- 'package-lock.json',
32
- ],
33
- };
@@ -1,12 +0,0 @@
1
- import prettyFormat from 'pretty-format';
2
-
3
- global['prettyFormat'] = prettyFormat;
4
-
5
- jest.setTimeout(300000);
6
-
7
- (() => {
8
- const spy = jest.spyOn(console, 'error');
9
- afterAll(() => {
10
- spy.mockRestore();
11
- });
12
- })();
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "target": "ES6",
5
- "module": "CommonJS"
6
- },
7
- "exclude": [
8
- "./packages/*/esm",
9
- "./packages/*/es",
10
- "./packages/*/dist",
11
- "./packages/*/lib"
12
- ]
13
- }