@atomicservice/ascf-toolkit 1.0.0

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.
Files changed (65) hide show
  1. package/.editorconfig +15 -0
  2. package/LICENSE +201 -0
  3. package/README.md +22 -0
  4. package/lib/ascf-compiler/appjson-loader.js +1 -0
  5. package/lib/ascf-compiler/chalk/bundle.cjs.js +1 -0
  6. package/lib/ascf-compiler/common/appjson-validator.js +1 -0
  7. package/lib/ascf-compiler/common/css-runtime-api.js +1 -0
  8. package/lib/ascf-compiler/common/exp-utils.js +1 -0
  9. package/lib/ascf-compiler/common/extjson-validator.js +1 -0
  10. package/lib/ascf-compiler/common/fixComponentName.js +1 -0
  11. package/lib/ascf-compiler/common/hash-sum.js +1 -0
  12. package/lib/ascf-compiler/common/hjs-utils.js +1 -0
  13. package/lib/ascf-compiler/common/hxml-validator.js +1 -0
  14. package/lib/ascf-compiler/common/logUndefined.js +1 -0
  15. package/lib/ascf-compiler/common/packoptions-utils.js +1 -0
  16. package/lib/ascf-compiler/common/utils.js +1 -0
  17. package/lib/ascf-compiler/css-process-loader.js +1 -0
  18. package/lib/ascf-compiler/extract-loader.js +1 -0
  19. package/lib/ascf-compiler/hcss-loader.js +1 -0
  20. package/lib/ascf-compiler/hjs-loader.js +1 -0
  21. package/lib/ascf-compiler/hxml-loader.js +1 -0
  22. package/lib/ascf-compiler/loader-utils.js +1 -0
  23. package/lib/ascf-compiler/path-process-loader.js +1 -0
  24. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -0
  25. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -0
  26. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -0
  27. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -0
  28. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -0
  29. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -0
  30. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -0
  31. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -0
  32. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -0
  33. package/lib/ascf-compiler/template/attr-utils.js +1 -0
  34. package/lib/ascf-compiler/template/node-name-utils.js +1 -0
  35. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -0
  36. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -0
  37. package/lib/ascf-compiler/trustlist-verify/config.js +1 -0
  38. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -0
  39. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -0
  40. package/lib/ascf-compiler/web.webpack.config.js +1 -0
  41. package/lib/ascf-converter/common/commonConfig.js +1 -0
  42. package/lib/ascf-converter/common/commonUtils.js +1 -0
  43. package/lib/ascf-converter/common/textDocument.js +1 -0
  44. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -0
  45. package/lib/ascf-converter/features/converter.js +1 -0
  46. package/lib/ascf-converter/features/fileHandle.js +1 -0
  47. package/lib/ascf-converter/features/transformReport.js +1 -0
  48. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -0
  49. package/lib/ascf-converter/lib/locale.json +214 -0
  50. package/lib/ascf-converter/parse/babelParser.js +1 -0
  51. package/lib/ascf-converter/parse/importVisitor.js +1 -0
  52. package/lib/ascf-converter/parse/wxssParser.js +1 -0
  53. package/lib/ascf-project-generator/templates/Index.ets +0 -0
  54. package/lib/ascf-project-generator/templates/build-profile.json5 +25 -0
  55. package/lib/ascf-project-generator/templates/hvigorfile.ts +6 -0
  56. package/lib/ascf-project-generator/templates/obfuscation-rules.txt +18 -0
  57. package/lib/ascf-project-generator/templates/oh-package.json5 +11 -0
  58. package/lib/ascf-project-generator/templates/src/main/module.json5 +13 -0
  59. package/lib/ascf-project-generator/templates/src/main/resources/base/element/string.json +8 -0
  60. package/lib/bin/ascf.js +2 -0
  61. package/lib/common/logger-plugin.js +1 -0
  62. package/lib/common/remove-strict-mode-plugin.js +1 -0
  63. package/lib/common/utils.js +1 -0
  64. package/notice/openSourceSoftwareNotice.html +5132 -0
  65. package/package.json +156 -0
package/package.json ADDED
@@ -0,0 +1,156 @@
1
+ {
2
+ "name": "@atomicservice/ascf-toolkit",
3
+ "version": "1.0.0",
4
+ "author": "atomicservice",
5
+ "title": "ASCF toolkit for atomicservice",
6
+ "description": "ASCF toolkit for atomicservice",
7
+ "main": "./lib/bin/index.js",
8
+ "keywords": [
9
+ "atomicservice",
10
+ "loader",
11
+ "webpack"
12
+ ],
13
+ "scripts": {
14
+ "prepare:init": "git submodule update --init && node scripts/prepare",
15
+ "prepare:parse5": "cd thirdparty/parse5/packages/parse5 && pnpm i && pnpm build:cjs && pnpm release:ascf-parse5",
16
+ "prepare:vue": "cd thirdparty/vue && pnpm i && pnpm release:compiler",
17
+ "prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue",
18
+ "bep": "gulp dev && npm pack",
19
+ "dev": "gulp dev",
20
+ "build": "gulp release",
21
+ "release": "gulp release && npm pack"
22
+ },
23
+ "dependencies": {
24
+ "@babel/core": "7.25.7",
25
+ "@babel/generator": "7.25.7",
26
+ "@babel/parser": "7.25.7",
27
+ "@babel/traverse": "7.25.7",
28
+
29
+ "@babel/plugin-proposal-class-properties": "7.18.6",
30
+ "@babel/plugin-proposal-object-rest-spread": "7.18.9",
31
+ "@babel/plugin-transform-modules-commonjs": "7.25.7",
32
+ "@babel/plugin-transform-runtime": "7.18.10",
33
+ "@babel/preset-env": "7.25.7",
34
+ "@babel/runtime": "7.25.7",
35
+
36
+ "babel-loader": "8.2.5",
37
+ "commander": "9.4.0",
38
+ "eslint": "8.31.0",
39
+ "jimp": "0.22.10",
40
+ "js-base64": "3.7.7",
41
+ "json5": "2.2.3",
42
+ "jsrsasign": "11.0.0",
43
+ "jszip": "3.10.1",
44
+ "less": "4.1.2",
45
+ "less-loader": "10.2.0",
46
+ "loader-utils": "2.0.4",
47
+ "postcss": "8.4.39",
48
+ "rimraf": "4.4.0",
49
+ "rollup-plugin-babel": "4.4.0",
50
+ "sass": "1.55.0",
51
+ "sass-loader": "10.3.1",
52
+ "semver": "7.5.4",
53
+ "source-map": "0.7.4",
54
+ "stylus": "0.59.0",
55
+ "stylus-loader": "7.0.0",
56
+ "webpack": "5.76.2"
57
+ },
58
+ "devDependencies": {
59
+ "del": "6.1.0",
60
+ "gulp": "4.0.0",
61
+ "gulp-babel": "8.0.0",
62
+ "gulp-javascript-obfuscator": "1.1.6",
63
+ "gulp-plumber": "1.2.1",
64
+ "gulp-uglify": "3.0.2"
65
+ },
66
+ "overrides": {
67
+ "minipass": "3.3.6",
68
+ "minimatch": "5.1.6",
69
+ "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "7.25.7",
70
+ "@babel/plugin-bugfix-safari-class-field-initializer-scope": "7.25.7",
71
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "7.25.7",
72
+ "@babel/plugin-syntax-import-assertions": "7.25.7",
73
+ "@babel/plugin-transform-optional-chaining": "7.25.7",
74
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "7.25.7",
75
+ "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "7.25.7",
76
+ "@babel/plugin-syntax-import-attributes": "7.25.7",
77
+ "@babel/plugin-transform-async-generator-functions": "7.25.7",
78
+ "@babel/plugin-transform-class-properties": "7.25.7",
79
+ "@babel/plugin-transform-class-static-block": "7.25.7",
80
+ "@babel/plugin-transform-dotall-regex": "7.25.7",
81
+ "@babel/plugin-transform-duplicate-keys": "7.25.7",
82
+ "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "7.25.7",
83
+ "@babel/plugin-transform-dynamic-import": "7.25.7",
84
+ "@babel/plugin-transform-exponentiation-operator": "7.25.7",
85
+ "@babel/helper-builder-binary-assignment-operator-visitor": "7.25.7",
86
+ "@babel/plugin-transform-export-namespace-from": "7.25.7",
87
+ "@babel/plugin-transform-json-strings": "7.25.7",
88
+ "@babel/plugin-transform-logical-assignment-operators": "7.25.7",
89
+ "@babel/plugin-transform-modules-amd": "7.25.7",
90
+ "@babel/plugin-transform-modules-systemjs": "7.25.7",
91
+ "@babel/plugin-transform-modules-umd": "7.25.7",
92
+ "@babel/plugin-transform-new-target": "7.25.7",
93
+ "@babel/plugin-transform-nullish-coalescing-operator": "7.25.7",
94
+ "@babel/plugin-transform-numeric-separator": "7.25.7",
95
+ "@babel/plugin-transform-object-rest-spread": "7.25.7",
96
+ "@babel/plugin-transform-optional-catch-binding": "7.25.7",
97
+ "@babel/plugin-transform-private-methods": "7.25.7",
98
+ "@babel/plugin-transform-private-property-in-object": "7.25.7",
99
+ "@babel/plugin-transform-regenerator": "7.25.7",
100
+ "@babel/plugin-transform-reserved-words": "7.25.7",
101
+ "@babel/plugin-transform-typeof-symbol": "7.25.7",
102
+ "@babel/plugin-transform-unicode-escapes": "7.25.7",
103
+ "@babel/plugin-transform-unicode-property-regex": "7.25.7",
104
+ "@babel/plugin-transform-unicode-sets-regex": "7.25.7",
105
+ "@types/node": "18.15.5",
106
+ "cross-spawn": "7.0.3",
107
+ "esquery": "1.4.0",
108
+ "js-sdsl": "4.2.0",
109
+ "@jimp/custom": "0.22.10",
110
+ "@jimp/core": "0.22.10",
111
+ "@jimp/utils": "0.22.10",
112
+ "@jimp/plugins": "0.22.10",
113
+ "@jimp/plugin-blit": "0.22.10",
114
+ "@jimp/plugin-blur": "0.22.10",
115
+ "@jimp/plugin-circle": "0.22.10",
116
+ "@jimp/plugin-color": "0.22.10",
117
+ "@jimp/plugin-contain": "0.22.10",
118
+ "@jimp/plugin-resize": "0.22.10",
119
+ "@jimp/plugin-scale": "0.22.10",
120
+ "@jimp/plugin-cover": "0.22.10",
121
+ "@jimp/plugin-crop": "0.22.10",
122
+ "@jimp/plugin-displace": "0.22.10",
123
+ "@jimp/plugin-dither": "0.22.10",
124
+ "@jimp/plugin-fisheye": "0.22.10",
125
+ "@jimp/plugin-flip": "0.22.10",
126
+ "@jimp/plugin-rotate": "0.22.10",
127
+ "@jimp/plugin-gaussian": "0.22.10",
128
+ "@jimp/plugin-invert": "0.22.10",
129
+ "@jimp/plugin-mask": "0.22.10",
130
+ "@jimp/plugin-normalize": "0.22.10",
131
+ "@jimp/plugin-print": "0.22.10",
132
+ "@jimp/plugin-shadow": "0.22.10",
133
+ "@jimp/plugin-threshold": "0.22.10",
134
+ "@jimp/types": "0.22.10",
135
+ "@jimp/bmp": "0.22.10",
136
+ "@jimp/gif": "0.22.10",
137
+ "@jimp/jpeg": "0.22.10",
138
+ "@jimp/png": "0.22.10",
139
+ "@jimp/tiff": "0.22.10",
140
+ "glob": "7.2.3",
141
+ "load-bmfont": "1.4.1",
142
+ "parse-bmfont-xml": "1.1.4",
143
+ "xml2js": "0.4.23",
144
+ "phin": "2.9.3",
145
+ "@types/eslint": "8.21.3",
146
+ "caniuse-lite": "1.0.30001468",
147
+ "electron-to-chromium": "1.4.334",
148
+ "terser": "5.16.6",
149
+ "sax": "1.3.0"
150
+ },
151
+ "bin": {
152
+ "ascf": "lib/bin/ascf.js"
153
+ },
154
+ "license": "Apache-2.0",
155
+ "licenseFilename": "LICENSE"
156
+ }