@appthen/cli 1.0.2

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/jest.config.js ADDED
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ preset: 'ts-jest',
3
+ testEnvironment: 'node',
4
+ testPathIgnorePatterns: ['/node_modules/', '/test-cases/', '/static-files/', '/lib/'],
5
+ };
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@appthen/cli",
3
+ "version": "1.0.2",
4
+ "description": "Appthen Cli Tool",
5
+ "files": [
6
+ "dist",
7
+ "tests",
8
+ "jest.config.js",
9
+ ".editorconfig",
10
+ ".eslintignore",
11
+ ".eslintrc.js",
12
+ ".gitignore",
13
+ ".prettierignore",
14
+ ".prettierrc",
15
+ "CHANGELOG.md",
16
+ "CONTRIBUTING.md",
17
+ "package.json",
18
+ "README.md",
19
+ "tsconfig.json"
20
+ ],
21
+ "main": "dist/index.js",
22
+ "bin": {
23
+ "appthen": "bin/code-generator.js"
24
+ },
25
+ "scripts": {
26
+ "start": "jest --watch",
27
+ "build": "npm run clean && concurrently 'npm run build:ts' 'npm run lint'",
28
+ "build:ts": "tsc",
29
+ "build:rollup": "rollup --config rollup.config.js",
30
+ "check:type": "tsc -p . --noEmit",
31
+ "clean": "rm -rf build dist lib generated",
32
+ "dev": "build-scripts start",
33
+ "lint": "eslint --ext .tsx,.ts,.js,.jsx src",
34
+ "lintfix": "eslint --fix --color --ext .tsx,.ts,.js,.jsx src",
35
+ "postpublish": "git push origin master --tags",
36
+ "test": "jest",
37
+ "test:watch": "jest --watch",
38
+ "test:update-snapshots": "cross-env UPDATE_EXPECTED=true npx jest"
39
+ },
40
+ "author": "",
41
+ "license": "ISC",
42
+ "publishConfig": {
43
+ "registry": "https://registry.npmjs.org"
44
+ },
45
+ "dependencies": {
46
+ "@alilc/lowcode-types": "^1.3.1",
47
+ "@liangshen/youdao": "^1.0.3",
48
+ "@mengti/code-generator": "^1.0.7",
49
+ "axios": "^0.27.2",
50
+ "cssjson": "^2.1.3",
51
+ "flat-cache": "3.0.4",
52
+ "form-data": "^4.0.0",
53
+ "getpinyin": "^1.1.4",
54
+ "nanoid": "3.3.4",
55
+ "nanomatch": "^1.2.13",
56
+ "qiniu": "^7.10.0",
57
+ "translators": "^1.0.3",
58
+ "tslib": "^2.3.0"
59
+ },
60
+ "devDependencies": {
61
+ "@rollup/plugin-commonjs": "^11.0.2",
62
+ "@rollup/plugin-json": "^4.0.2",
63
+ "@rollup/plugin-node-resolve": "^7.1.1",
64
+ "@rollup/plugin-typescript": "^11.1.6",
65
+ "@types/async": "^3.2.3",
66
+ "@types/flat-cache": "^2.0.0",
67
+ "@types/jest": "^26.0.17",
68
+ "@typescript-eslint/eslint-plugin": "^4.28.4",
69
+ "@typescript-eslint/parser": "^4.28.4",
70
+ "async": "^3.2.0",
71
+ "babel-runtime": "^6.26.0",
72
+ "concurrently": "^5.2.0",
73
+ "cross-env": "^7.0.0",
74
+ "debug": "^4.1.1",
75
+ "eslint": "^7.31.0",
76
+ "eslint-config-ali": "^12.1.0",
77
+ "eslint-plugin-import": "^2.23.4",
78
+ "eslint-plugin-react": "^7.24.0",
79
+ "eslint-plugin-react-hooks": "^4.2.0",
80
+ "glob": "^7.2.0",
81
+ "husky": "4.2.5",
82
+ "jest": "^26.6.3",
83
+ "json5": "^2.2.0",
84
+ "lint-staged": "10.1.x",
85
+ "lodash": "^4.17.21",
86
+ "md5": "^2.2.1",
87
+ "prettier": "^2.3.2",
88
+ "rollup": "^2.3.1",
89
+ "rollup-plugin-terser": "^7.0.2",
90
+ "rollup-plugin-typescript2": "^0.27.0",
91
+ "ts-jest": "^26.4.4",
92
+ "ts-node": "^9.0.0",
93
+ "typescript": "4.x"
94
+ }
95
+ }
@@ -0,0 +1,4 @@
1
+ test('basic functions should be ok', () => {
2
+ // 这里放一些单元测试
3
+ expect(0).toBe(0);
4
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "esModuleInterop": true,
4
+ "declaration": false,
5
+ "experimentalDecorators": true,
6
+ "forceConsistentCasingInFileNames": true,
7
+ "importHelpers": true,
8
+ "incremental": false,
9
+ "jsx": "react",
10
+ "moduleResolution": "node",
11
+ "resolveJsonModule": true,
12
+ "skipLibCheck": true,
13
+ "sourceMap": false,
14
+ "strict": true,
15
+ "stripInternal": true,
16
+ "outDir": "./lib",
17
+ "rootDirs": ["./src"],
18
+ "target": "esnext",
19
+ "module": "ES2015",
20
+ "lib": ["esnext"],
21
+ "types": ["jest", "node"],
22
+ "noUnusedLocals": false,
23
+ "noUnusedParameters": false
24
+ },
25
+ "include": ["src/**/*", "typings/**/*"]
26
+ }