@atomicservice/ascf-toolkit 1.0.4-beta.0 → 1.0.6-beta.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/ascf-base/index.d.ts +78 -0
- package/lib/ascf-base/index.js +1 -0
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/ascf-define.js +1 -0
- package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -0
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
- package/lib/ascf-compiler/common/exp-utils.js +1 -1
- package/lib/ascf-compiler/common/hash-sum.js +1 -1
- package/lib/ascf-compiler/common/hdc-executor.js +1 -0
- package/lib/ascf-compiler/common/hjs-utils.js +1 -1
- package/lib/ascf-compiler/common/hxml-validator.js +1 -1
- package/lib/ascf-compiler/common/logUndefined.js +1 -1
- package/lib/ascf-compiler/common/manifest-handler.js +1 -0
- package/lib/ascf-compiler/common/manifest-manager.js +1 -0
- package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
- package/lib/ascf-compiler/common/utils.js +1 -1
- package/lib/ascf-compiler/css-process-loader.js +1 -1
- package/lib/ascf-compiler/extract-loader.js +1 -1
- package/lib/ascf-compiler/hcss-loader.js +1 -1
- package/lib/ascf-compiler/hjs-loader.js +1 -1
- package/lib/ascf-compiler/hxml-loader.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
- package/lib/ascf-compiler/js-parser/parser.js +1 -1
- package/lib/ascf-compiler/loader-utils.js +1 -1
- package/lib/ascf-compiler/path-process-loader.js +1 -1
- package/lib/ascf-compiler/plugin/before-loader-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/quick-service-build-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/require-loader.js +1 -1
- package/lib/ascf-compiler/server/dev-server.js +1 -0
- package/lib/ascf-compiler/server/port-manager.js +1 -0
- package/lib/ascf-compiler/swc-loader.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/ascfApisDiff.json +1979 -0
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/path-validator.js +1 -1
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/convertManager.js +1 -0
- package/lib/ascf-converter/features/converter.js +1 -1
- package/lib/ascf-converter/features/fileHandle.js +1 -1
- package/lib/ascf-converter/features/transformReport.js +1 -1
- package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
- package/lib/ascf-converter/parse/babelParser.js +1 -1
- package/lib/ascf-converter/parse/importVisitor.js +1 -1
- package/lib/ascf-converter/parse/wxssParser.js +1 -1
- package/lib/ascf-converter/report/icons/completely.png +0 -0
- package/lib/ascf-converter/report/icons/failed.png +0 -0
- package/lib/ascf-converter/report/icons/portion.png +0 -0
- package/lib/ascf-converter/report/index.html +718 -0
- package/lib/ascf-converter/report/js/index.js +1 -0
- package/lib/ascf-sign-tools/cli.d.ts +1 -0
- package/lib/ascf-sign-tools/cli.js +2 -0
- package/lib/ascf-sign-tools/index.d.ts +17 -0
- package/lib/ascf-sign-tools/index.js +1 -0
- package/lib/bin/ascf.js +1 -1
- package/lib/commands/ascfbuild/index.js +1 -0
- package/lib/commands/build-npm/index.js +1 -0
- package/lib/commands/compile.js +1 -0
- package/lib/commands/convert.js +1 -0
- package/lib/commands/debugger/index.js +1 -0
- package/lib/commands/quickservice/index.js +1 -0
- package/lib/common/config.js +1 -1
- package/lib/common/constants.js +1 -0
- package/lib/common/log4js.js +1 -1
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/string-utils.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -1
- package/lib/index.js +1 -1
- package/lib/tools/release_64/SSL/ct_log_list.cnf +9 -0
- package/lib/tools/release_64/SSL/ct_log_list.cnf.dist +9 -0
- package/lib/tools/release_64/SSL/misc/CA.pl +215 -0
- package/lib/tools/release_64/SSL/misc/tsget.pl +200 -0
- package/lib/tools/release_64/SSL/openssl.cnf +350 -0
- package/lib/tools/release_64/SSL/openssl.cnf.dist +350 -0
- package/lib/tools/release_64/bin/c_rehash.pl +251 -0
- package/lib/tools/release_64/bin/libcrypto-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/libssl-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/openssl.exe +0 -0
- package/package.json +26 -19
- package/lib/ascf-build-npm/build-npm.js +0 -1
- package/lib/ascf-compiler/watch/watch.js +0 -1
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
#!/usr/bin/env perl
|
|
2
|
+
|
|
3
|
+
# WARNING: do not edit!
|
|
4
|
+
# Generated by makefile from tools\c_rehash.in
|
|
5
|
+
# Copyright 1999-2022 The OpenSSL Project Authors. All Rights Reserved.
|
|
6
|
+
#
|
|
7
|
+
# Licensed under the OpenSSL license (the "License"). You may not use
|
|
8
|
+
# this file except in compliance with the License. You can obtain a copy
|
|
9
|
+
# in the file LICENSE in the source distribution or at
|
|
10
|
+
# https://www.openssl.org/source/license.html
|
|
11
|
+
|
|
12
|
+
# Perl c_rehash script, scan all files in a directory
|
|
13
|
+
# and add symbolic links to their hash values.
|
|
14
|
+
|
|
15
|
+
my $dir = "E:\\ws\\workspace\\j_XUI5VAHF\\release_64\\SSL";
|
|
16
|
+
my $prefix = "E:\\ws\\workspace\\j_XUI5VAHF\\release_64";
|
|
17
|
+
|
|
18
|
+
my $errorcount = 0;
|
|
19
|
+
my $openssl = $ENV{OPENSSL} || "openssl";
|
|
20
|
+
my $pwd;
|
|
21
|
+
my $x509hash = "-subject_hash";
|
|
22
|
+
my $crlhash = "-hash";
|
|
23
|
+
my $verbose = 0;
|
|
24
|
+
my $symlink_exists=eval {symlink("",""); 1};
|
|
25
|
+
my $removelinks = 1;
|
|
26
|
+
|
|
27
|
+
## Parse flags.
|
|
28
|
+
while ( $ARGV[0] =~ /^-/ ) {
|
|
29
|
+
my $flag = shift @ARGV;
|
|
30
|
+
last if ( $flag eq '--');
|
|
31
|
+
if ( $flag eq '-old') {
|
|
32
|
+
$x509hash = "-subject_hash_old";
|
|
33
|
+
$crlhash = "-hash_old";
|
|
34
|
+
} elsif ( $flag eq '-h' || $flag eq '-help' ) {
|
|
35
|
+
help();
|
|
36
|
+
} elsif ( $flag eq '-n' ) {
|
|
37
|
+
$removelinks = 0;
|
|
38
|
+
} elsif ( $flag eq '-v' ) {
|
|
39
|
+
$verbose++;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
print STDERR "Usage error; try -h.\n";
|
|
43
|
+
exit 1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
sub help {
|
|
48
|
+
print "Usage: c_rehash [-old] [-h] [-help] [-v] [dirs...]\n";
|
|
49
|
+
print " -old use old-style digest\n";
|
|
50
|
+
print " -h or -help print this help text\n";
|
|
51
|
+
print " -v print files removed and linked\n";
|
|
52
|
+
exit 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
eval "require Cwd";
|
|
56
|
+
if (defined(&Cwd::getcwd)) {
|
|
57
|
+
$pwd=Cwd::getcwd();
|
|
58
|
+
} else {
|
|
59
|
+
$pwd=`pwd`;
|
|
60
|
+
chomp($pwd);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
# DOS/Win32 or Unix delimiter? Prefix our installdir, then search.
|
|
64
|
+
my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':';
|
|
65
|
+
$ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : "");
|
|
66
|
+
|
|
67
|
+
if (! -x $openssl) {
|
|
68
|
+
my $found = 0;
|
|
69
|
+
foreach (split /$path_delim/, $ENV{PATH}) {
|
|
70
|
+
if (-x "$_/$openssl") {
|
|
71
|
+
$found = 1;
|
|
72
|
+
$openssl = "$_/$openssl";
|
|
73
|
+
last;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if ($found == 0) {
|
|
77
|
+
print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n";
|
|
78
|
+
exit 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (@ARGV) {
|
|
83
|
+
@dirlist = @ARGV;
|
|
84
|
+
} elsif ($ENV{SSL_CERT_DIR}) {
|
|
85
|
+
@dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
|
|
86
|
+
} else {
|
|
87
|
+
$dirlist[0] = "$dir/certs";
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (-d $dirlist[0]) {
|
|
91
|
+
chdir $dirlist[0];
|
|
92
|
+
$openssl="$pwd/$openssl" if (!-x $openssl);
|
|
93
|
+
chdir $pwd;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
foreach (@dirlist) {
|
|
97
|
+
if (-d $_ ) {
|
|
98
|
+
if ( -w $_) {
|
|
99
|
+
hash_dir($_);
|
|
100
|
+
} else {
|
|
101
|
+
print "Skipping $_, can't write\n";
|
|
102
|
+
$errorcount++;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exit($errorcount);
|
|
107
|
+
|
|
108
|
+
sub copy_file {
|
|
109
|
+
my ($src_fname, $dst_fname) = @_;
|
|
110
|
+
|
|
111
|
+
if (open(my $in, "<", $src_fname)) {
|
|
112
|
+
if (open(my $out, ">", $dst_fname)) {
|
|
113
|
+
print $out $_ while (<$in>);
|
|
114
|
+
close $out;
|
|
115
|
+
} else {
|
|
116
|
+
warn "Cannot open $dst_fname for write, $!";
|
|
117
|
+
}
|
|
118
|
+
close $in;
|
|
119
|
+
} else {
|
|
120
|
+
warn "Cannot open $src_fname for read, $!";
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
sub hash_dir {
|
|
125
|
+
my $dir = shift;
|
|
126
|
+
my %hashlist;
|
|
127
|
+
|
|
128
|
+
print "Doing $dir\n";
|
|
129
|
+
|
|
130
|
+
if (!chdir $dir) {
|
|
131
|
+
print STDERR "WARNING: Cannot chdir to '$dir', $!\n";
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
opendir(DIR, ".") || print STDERR "WARNING: Cannot opendir '.', $!\n";
|
|
136
|
+
my @flist = sort readdir(DIR);
|
|
137
|
+
closedir DIR;
|
|
138
|
+
if ( $removelinks ) {
|
|
139
|
+
# Delete any existing symbolic links
|
|
140
|
+
foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
|
|
141
|
+
if (-l $_) {
|
|
142
|
+
print "unlink $_\n" if $verbose;
|
|
143
|
+
unlink $_ || warn "Can't unlink $_, $!\n";
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) {
|
|
148
|
+
# Check to see if certificates and/or CRLs present.
|
|
149
|
+
my ($cert, $crl) = check_file($fname);
|
|
150
|
+
if (!$cert && !$crl) {
|
|
151
|
+
print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
|
|
152
|
+
next;
|
|
153
|
+
}
|
|
154
|
+
link_hash_cert($fname) if ($cert);
|
|
155
|
+
link_hash_crl($fname) if ($crl);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
chdir $pwd;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
sub check_file {
|
|
162
|
+
my ($is_cert, $is_crl) = (0,0);
|
|
163
|
+
my $fname = $_[0];
|
|
164
|
+
|
|
165
|
+
open(my $in, "<", $fname);
|
|
166
|
+
while(<$in>) {
|
|
167
|
+
if (/^-----BEGIN (.*)-----/) {
|
|
168
|
+
my $hdr = $1;
|
|
169
|
+
if ($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) {
|
|
170
|
+
$is_cert = 1;
|
|
171
|
+
last if ($is_crl);
|
|
172
|
+
} elsif ($hdr eq "X509 CRL") {
|
|
173
|
+
$is_crl = 1;
|
|
174
|
+
last if ($is_cert);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
close $in;
|
|
179
|
+
return ($is_cert, $is_crl);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
sub compute_hash {
|
|
183
|
+
my $fh;
|
|
184
|
+
if ( $^O eq "VMS" ) {
|
|
185
|
+
# VMS uses the open through shell
|
|
186
|
+
# The file names are safe there and list form is unsupported
|
|
187
|
+
if (!open($fh, "-|", join(' ', @_))) {
|
|
188
|
+
print STDERR "Cannot compute hash on '$fname'\n";
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
} else {
|
|
192
|
+
if (!open($fh, "-|", @_)) {
|
|
193
|
+
print STDERR "Cannot compute hash on '$fname'\n";
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return (<$fh>, <$fh>);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
# Link a certificate to its subject name hash value, each hash is of
|
|
201
|
+
# the form <hash>.<n> where n is an integer. If the hash value already exists
|
|
202
|
+
# then we need to up the value of n, unless its a duplicate in which
|
|
203
|
+
# case we skip the link. We check for duplicates by comparing the
|
|
204
|
+
# certificate fingerprints
|
|
205
|
+
|
|
206
|
+
sub link_hash_cert {
|
|
207
|
+
link_hash($_[0], 'cert');
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
# Same as above except for a CRL. CRL links are of the form <hash>.r<n>
|
|
211
|
+
|
|
212
|
+
sub link_hash_crl {
|
|
213
|
+
link_hash($_[0], 'crl');
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
sub link_hash {
|
|
217
|
+
my ($fname, $type) = @_;
|
|
218
|
+
my $is_cert = $type eq 'cert';
|
|
219
|
+
|
|
220
|
+
my ($hash, $fprint) = compute_hash($openssl,
|
|
221
|
+
$is_cert ? "x509" : "crl",
|
|
222
|
+
$is_cert ? $x509hash : $crlhash,
|
|
223
|
+
"-fingerprint", "-noout",
|
|
224
|
+
"-in", $fname);
|
|
225
|
+
chomp $hash;
|
|
226
|
+
chomp $fprint;
|
|
227
|
+
return if !$hash;
|
|
228
|
+
$fprint =~ s/^.*=//;
|
|
229
|
+
$fprint =~ tr/://d;
|
|
230
|
+
my $suffix = 0;
|
|
231
|
+
# Search for an unused hash filename
|
|
232
|
+
my $crlmark = $is_cert ? "" : "r";
|
|
233
|
+
while(exists $hashlist{"$hash.$crlmark$suffix"}) {
|
|
234
|
+
# Hash matches: if fingerprint matches its a duplicate cert
|
|
235
|
+
if ($hashlist{"$hash.$crlmark$suffix"} eq $fprint) {
|
|
236
|
+
my $what = $is_cert ? 'certificate' : 'CRL';
|
|
237
|
+
print STDERR "WARNING: Skipping duplicate $what $fname\n";
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
$suffix++;
|
|
241
|
+
}
|
|
242
|
+
$hash .= ".$crlmark$suffix";
|
|
243
|
+
if ($symlink_exists) {
|
|
244
|
+
print "link $fname -> $hash\n" if $verbose;
|
|
245
|
+
symlink $fname, $hash || warn "Can't symlink, $!";
|
|
246
|
+
} else {
|
|
247
|
+
print "copy $fname -> $hash\n" if $verbose;
|
|
248
|
+
copy_file($fname, $hash);
|
|
249
|
+
}
|
|
250
|
+
$hashlist{$hash} = $fprint;
|
|
251
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicservice/ascf-toolkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6-beta.4",
|
|
4
4
|
"author": "atomicservice",
|
|
5
5
|
"title": "ASCF toolkit for atomicservice",
|
|
6
6
|
"description": "ASCF toolkit for atomicservice",
|
|
@@ -10,30 +10,19 @@
|
|
|
10
10
|
"loader",
|
|
11
11
|
"webpack"
|
|
12
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
13
|
"dependencies": {
|
|
24
|
-
"@swc/core": "1.10.14",
|
|
25
14
|
"@babel/core": "7.25.9",
|
|
26
15
|
"@babel/generator": "7.25.9",
|
|
27
16
|
"@babel/parser": "7.25.9",
|
|
28
|
-
"@babel/traverse": "7.25.9",
|
|
29
|
-
|
|
30
|
-
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
31
17
|
"@babel/plugin-proposal-object-rest-spread": "7.18.9",
|
|
18
|
+
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
32
19
|
"@babel/plugin-transform-modules-commonjs": "7.25.9",
|
|
33
20
|
"@babel/plugin-transform-runtime": "7.18.10",
|
|
34
21
|
"@babel/preset-env": "7.25.9",
|
|
35
22
|
"@babel/runtime": "7.25.9",
|
|
36
|
-
|
|
23
|
+
"@babel/traverse": "7.25.9",
|
|
24
|
+
"@swc/core": "1.10.14",
|
|
25
|
+
"@swc/helpers": "0.5.17",
|
|
37
26
|
"babel-loader": "10.0.0",
|
|
38
27
|
"cachedir": "2.4.0",
|
|
39
28
|
"commander": "9.4.0",
|
|
@@ -43,6 +32,7 @@
|
|
|
43
32
|
"less-loader": "12.2.0",
|
|
44
33
|
"loader-utils": "2.0.4",
|
|
45
34
|
"log4js": "6.9.1",
|
|
35
|
+
"minimatch": "5.1.6",
|
|
46
36
|
"postcss": "8.4.39",
|
|
47
37
|
"rimraf": "4.4.0",
|
|
48
38
|
"sass": "1.55.0",
|
|
@@ -51,7 +41,12 @@
|
|
|
51
41
|
"stylus": "0.59.0",
|
|
52
42
|
"stylus-loader": "8.1.1",
|
|
53
43
|
"webpack": "5.76.2",
|
|
54
|
-
"
|
|
44
|
+
"webpack-bundle-analyzer": "4.10.2",
|
|
45
|
+
"webpack-dev-server": "5.2.0",
|
|
46
|
+
"jszip": "3.7.1",
|
|
47
|
+
"js-base64": "3.7.2",
|
|
48
|
+
"jsrsasign": "10.5.0",
|
|
49
|
+
"decompress": "4.2.1"
|
|
55
50
|
},
|
|
56
51
|
"devDependencies": {
|
|
57
52
|
"del": "6.1.0",
|
|
@@ -121,5 +116,17 @@
|
|
|
121
116
|
"ascf": "lib/bin/ascf.js"
|
|
122
117
|
},
|
|
123
118
|
"license": "Apache-2.0",
|
|
124
|
-
"licenseFilename": "LICENSE"
|
|
125
|
-
|
|
119
|
+
"licenseFilename": "LICENSE",
|
|
120
|
+
"scripts": {
|
|
121
|
+
"prepare:init": "git submodule update --init && node scripts/prepare",
|
|
122
|
+
"prepare:parse5": "cd thirdparty/parse5/packages/parse5 && pnpm i && pnpm build:cjs && pnpm release:ascf-parse5",
|
|
123
|
+
"prepare:vue": "cd thirdparty/vue && pnpm i && pnpm release:compiler",
|
|
124
|
+
"prepare:base": "cd ../ascf-base && pnpm i && pnpm build:ascf-toolkit && pnpm build:ascf-sign-tools",
|
|
125
|
+
"prepare:sign": "cd ../ascf-sign-tools && pnpm i && pnpm build:ascf-toolkit",
|
|
126
|
+
"prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue && npm run prepare:base && npm run prepare:sign",
|
|
127
|
+
"bep": "gulp dev && npm pack",
|
|
128
|
+
"dev": "gulp dev",
|
|
129
|
+
"build": "gulp release",
|
|
130
|
+
"release": "gulp release && npm pack"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _0x5f1893=_0x541c,_require=((()=>{for(var e=_0x541c,r=_0x27ff();;)try{if(856661==-parseInt(e(139))*(-parseInt(e(126))/2)+parseInt(e(136))/3*(parseInt(e(131))/4)+-parseInt(e(149))/5+parseInt(e(129))/6+-parseInt(e(140))/7*(parseInt(e(145))/8)+-parseInt(e(135))/9*(parseInt(e(133))/10)+parseInt(e(142))/11*(-parseInt(e(154))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x5f1893(141))),readJsonFile=_require.readJsonFile,hasHxml=_require.hasHxml,moveFiles=_require[_0x5f1893(146)],path=require(_0x5f1893(143)),fs=require("fs"),log4js=require(_0x5f1893(144)),logger=log4js.getLogger(_0x5f1893(152));function _0x27ff(){var e=["join","index","ascf_src","12zdtGTQ","Dependencies info not found.","buildMiniProgramNpm","34aEhSZi","miniprogram","All npm dependencies has been built.","9895776ZgSSYy","prototype","8nlycfB","node_modules","3610QkcYXm","warn","5103XRvwAg","1815456eXdymj","error","dependencies","51101uVndOg","7hhXMKS","../common/utils","3002747fIqUEZ","path","../common/log4js","7327032yoNXay","moveFiles","hasOwnProperty","existsSync","7390565XLwEYf","ascf"];return(_0x27ff=function(){return e})()}function _0x541c(e,r){var n=_0x27ff();return(_0x541c=function(e,r){return n[e-=124]})(e,r)}function buildMiniProgramNpm(e){var r=_0x5f1893,n=readJsonFile(path[r(151)](e,r(150),r(153),"package.json"));if(n==={})logger[r(134)](r(124));else{if(n[r(138)])for(var a in n[r(138)])if(Object[r(130)][r(147)].call(n[r(138)],a)){var i=path.join(e,"ascf",r(153),"miniprogram_npm",a);if(!fs[r(148)](i)){var o=path[r(151)](e,r(150),r(153),r(132),a);if(!fs[r(148)](o))return void logger[r(137)]("".concat(a," not found in node_modules, please run npm install ").concat(a,"."));hasHxml(o)&&(a=readJsonFile(path[r(151)](o,"package.json"))[r(127)],moveFiles(a?path[r(151)](o,a):o,i))}}logger.info(r(128))}}exports[_0x5f1893(125)]=buildMiniProgramNpm;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _0x22602d=_0x4abd,_require=((()=>{for(var n=_0x4abd,r=_0x2524();;)try{if(485839==+parseInt(n(276))+-parseInt(n(289))/2*(-parseInt(n(292))/3)+parseInt(n(288))/4*(parseInt(n(287))/5)+parseInt(n(291))/6+parseInt(n(283))/7*(-parseInt(n(277))/8)+-parseInt(n(272))/9*(parseInt(n(270))/10)+-parseInt(n(284))/11)break;r.push(r.shift())}catch(n){r.push(r.shift())}})(),require("child_process")),execSync=_require[_0x22602d(278)],log4js=require(_0x22602d(286)),logger=log4js[_0x22602d(281)]("watch");function _0x4abd(n,r){var e=_0x2524();return(_0x4abd=function(n,r){return e[n-=269]})(n,r)}function _0x2524(){var n=["9UpYDOv","error","verbose","_ascfDebug","214788qwgQAO","1079064RJvgxv","execSync","Run command error: ","watch","getLogger","debug","7MaQtiL","6406521mviaXX","info","../../common/log4js.js","465VAXTPT","20136HgRNjq","262XBaFIq","Run command on changes been watched: ","4912446CcCwlC","2751TabiCj","utf8","4186850vDZvzX","toString"];return(_0x2524=function(){return n})()}function watchRun(n,a){var t=_0x22602d;n[t(280)]({},function(n,r){var e=t;r&&logger[e(285)](r[e(271)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[e(275)]?e(274):e(285)})),n&&logger[e(273)](n),a&&a(n,r)})}var isCommandRunning=!(exports.watchExec=function(n,e){watchRun(n,function(n,r){n?logger[_0x4abd(273)](n):runOnChanges(e,r)})});function runOnChanges(n){var r=_0x22602d;if(n&&!isCommandRunning)try{logger[r(282)](r(290),n),isCommandRunning=!0;var e=execSync(n,{encoding:r(269)});logger[r(282)]("Run command result: ",String(e))}catch(n){logger[r(273)](r(279),n)}finally{isCommandRunning=!1}}
|