almighty-tool 0.0.1
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/.babelrc +17 -0
- package/.editorconfig +13 -0
- package/.eslintignore +7 -0
- package/.eslintrc.js +5 -0
- package/.nvmrc +1 -0
- package/.prettierrc.js +1 -0
- package/.yarnrc +12 -0
- package/CHANGELOG.md +7 -0
- package/README.md +11 -0
- package/jest.config.js +1 -0
- package/lib/api/interfaces/api/base.api.d.ts +48 -0
- package/lib/api/interfaces/api/base.api.js +3 -0
- package/lib/api/interfaces/api/base.api.js.map +1 -0
- package/lib/api/interfaces/models/basic.model.d.ts +4 -0
- package/lib/api/interfaces/models/basic.model.js +3 -0
- package/lib/api/interfaces/models/basic.model.js.map +1 -0
- package/lib/api/interfaces/models/pagination.model.d.ts +26 -0
- package/lib/api/interfaces/models/pagination.model.js +3 -0
- package/lib/api/interfaces/models/pagination.model.js.map +1 -0
- package/lib/api/interfaces/types.d.ts +7 -0
- package/lib/api/interfaces/types.js +3 -0
- package/lib/api/interfaces/types.js.map +1 -0
- package/lib/api/models/basic.model.d.ts +7 -0
- package/lib/api/models/basic.model.js +25 -0
- package/lib/api/models/basic.model.js.map +1 -0
- package/lib/api/models/pagination.model.d.ts +35 -0
- package/lib/api/models/pagination.model.js +113 -0
- package/lib/api/models/pagination.model.js.map +1 -0
- package/lib/common/enum-object.d.ts +48 -0
- package/lib/common/enum-object.js +84 -0
- package/lib/common/enum-object.js.map +1 -0
- package/lib/common/general.d.ts +28 -0
- package/lib/common/general.js +173 -0
- package/lib/common/general.js.map +1 -0
- package/lib/common/validator.d.ts +20 -0
- package/lib/common/validator.js +30 -0
- package/lib/common/validator.js.map +1 -0
- package/lib/dayjs/locales/zh-cn.d.ts +40 -0
- package/lib/dayjs/locales/zh-cn.js +73 -0
- package/lib/dayjs/locales/zh-cn.js.map +1 -0
- package/lib/formats/date.format.d.ts +30 -0
- package/lib/formats/date.format.js +78 -0
- package/lib/formats/date.format.js.map +1 -0
- package/lib/interfaces/common/general.d.ts +186 -0
- package/lib/interfaces/common/general.js +28 -0
- package/lib/interfaces/common/general.js.map +1 -0
- package/lib/interfaces/utils/basic-util.d.ts +22 -0
- package/lib/interfaces/utils/basic-util.js +3 -0
- package/lib/interfaces/utils/basic-util.js.map +1 -0
- package/lib/interfaces/utils/date-util.d.ts +12 -0
- package/lib/interfaces/utils/date-util.js +3 -0
- package/lib/interfaces/utils/date-util.js.map +1 -0
- package/lib/interfaces/utils/format-util.d.ts +7 -0
- package/lib/interfaces/utils/format-util.js +3 -0
- package/lib/interfaces/utils/format-util.js.map +1 -0
- package/lib/locales/en/index.d.ts +19 -0
- package/lib/locales/en/index.js +21 -0
- package/lib/locales/en/index.js.map +1 -0
- package/lib/locales/index.d.ts +0 -0
- package/lib/locales/index.js +2 -0
- package/lib/locales/index.js.map +1 -0
- package/lib/locales/zh-cn/index.d.ts +33 -0
- package/lib/locales/zh-cn/index.js +35 -0
- package/lib/locales/zh-cn/index.js.map +1 -0
- package/lib/utils/accurate.util.d.ts +28 -0
- package/lib/utils/accurate.util.js +123 -0
- package/lib/utils/accurate.util.js.map +1 -0
- package/lib/utils/basic.util.d.ts +83 -0
- package/lib/utils/basic.util.js +286 -0
- package/lib/utils/basic.util.js.map +1 -0
- package/lib/utils/crypto.util.d.ts +65 -0
- package/lib/utils/crypto.util.js +151 -0
- package/lib/utils/crypto.util.js.map +1 -0
- package/lib/utils/date.util.d.ts +52 -0
- package/lib/utils/date.util.js +211 -0
- package/lib/utils/date.util.js.map +1 -0
- package/lib/utils/format.util.d.ts +49 -0
- package/lib/utils/format.util.js +98 -0
- package/lib/utils/format.util.js.map +1 -0
- package/lib/utils/locale.util.d.ts +20 -0
- package/lib/utils/locale.util.js +206 -0
- package/lib/utils/locale.util.js.map +1 -0
- package/lib/utils/number.util.d.ts +21 -0
- package/lib/utils/number.util.js +33 -0
- package/lib/utils/number.util.js.map +1 -0
- package/package.json +102 -0
- package/templates/eslints/eggjs.project.js +15 -0
- package/templates/eslints/element-ui.project.js +4 -0
- package/templates/eslints/recommended.js +26 -0
- package/templates/eslints/rules/recommended.js +26 -0
- package/templates/eslints/rules/vue.js +12 -0
- package/templates/eslints/server.project.js +18 -0
- package/templates/eslints/uni-app-v8.project.js +43 -0
- package/templates/eslints/uni-app.project.js +45 -0
- package/templates/eslints/vue.project.js +39 -0
- package/templates/jest/element-ui.project.js +1 -0
- package/templates/jest/recommended.js +19 -0
- package/templates/jest/vue.project.js +44 -0
- package/templates/postcss/recommended.js +4 -0
- package/templates/postcss/uni-app.js +11 -0
- package/templates/prettiers/recommended.js +26 -0
- package/templates/stylelint/recommended.js +42 -0
- package/templates/stylelint/rules/recommended.js +22 -0
- package/templates/stylelint/uni-app.project.js +11 -0
- package/templates/tsconfigs/eggjs.json +31 -0
- package/templates/tsconfigs/element-ui.json +3 -0
- package/templates/tsconfigs/lib.json +15 -0
- package/templates/tsconfigs/quasar.json +25 -0
- package/templates/tsconfigs/recommended.json +43 -0
- package/templates/tsconfigs/server.json +23 -0
- package/templates/tsconfigs/uni-app.json +39 -0
- package/templates/tsconfigs/vue.json +45 -0
- package/templates/tslints/recommended.json +13 -0
- package/tsconfig.json +9 -0
- package/types/index.d.ts +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"esModuleInterop": true,
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"resolveJsonModule": true,
|
|
7
|
+
"removeComments": true,
|
|
8
|
+
"emitDecoratorMetadata": true,
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"target": "es2017",
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"outDir": "./dist",
|
|
14
|
+
"baseUrl": "./",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"strictNullChecks": false,
|
|
18
|
+
"noImplicitAny": false,
|
|
19
|
+
"strictBindCallApply": false,
|
|
20
|
+
"forceConsistentCasingInFileNames": false,
|
|
21
|
+
"noFallthroughCasesInSwitch": false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"jsx": "preserve",
|
|
7
|
+
"importHelpers": true,
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"allowSyntheticDefaultImports": true,
|
|
12
|
+
"experimentalDecorators":true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"baseUrl": ".",
|
|
15
|
+
"types": [
|
|
16
|
+
"node",
|
|
17
|
+
"webpack-env",
|
|
18
|
+
"jest",
|
|
19
|
+
"@dcloudio/types/uni-app"
|
|
20
|
+
],
|
|
21
|
+
"paths": {
|
|
22
|
+
"@/*": [
|
|
23
|
+
"./src/*"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"lib": [
|
|
27
|
+
"esnext",
|
|
28
|
+
"dom",
|
|
29
|
+
"dom.iterable",
|
|
30
|
+
"scripthost"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"exclude": [
|
|
34
|
+
"vendor",
|
|
35
|
+
"node_modules",
|
|
36
|
+
"unpackage",
|
|
37
|
+
"src/**/*.nvue"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "esnext",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"jsx": "preserve",
|
|
7
|
+
"importHelpers": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"noEmitOnError": true,
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"baseUrl": ".",
|
|
17
|
+
"types": [
|
|
18
|
+
"node",
|
|
19
|
+
"jest",
|
|
20
|
+
"webpack-env"
|
|
21
|
+
],
|
|
22
|
+
"paths": {
|
|
23
|
+
"@/*": [
|
|
24
|
+
"src/*"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"lib": [
|
|
28
|
+
"esnext",
|
|
29
|
+
"dom",
|
|
30
|
+
"dom.iterable",
|
|
31
|
+
"scripthost"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"include": [
|
|
35
|
+
"src/**/*.d.ts",
|
|
36
|
+
"src/**/*.ts",
|
|
37
|
+
"src/**/*.tsx",
|
|
38
|
+
"src/**/*.vue",
|
|
39
|
+
"tests/**/*.ts",
|
|
40
|
+
"tests/**/*.tsx"
|
|
41
|
+
],
|
|
42
|
+
"exclude": [
|
|
43
|
+
"node_modules"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultSeverity": "error",
|
|
3
|
+
"extends": ["tslint:recommended"],
|
|
4
|
+
"jsRules": {},
|
|
5
|
+
"rules": {
|
|
6
|
+
"semi": ["error", "always"],
|
|
7
|
+
"object-literal-sort-keys": false,
|
|
8
|
+
"no-console": false,
|
|
9
|
+
"quotemark": [true, "single", "jsx-single"],
|
|
10
|
+
"no-unused-variable": false
|
|
11
|
+
},
|
|
12
|
+
"rulesDirectory": []
|
|
13
|
+
}
|
package/tsconfig.json
ADDED
package/types/index.d.ts
ADDED
|
File without changes
|