tmcsplit 0.0.10 → 0.0.11
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/{fs-worker.js → dist/libtmcsplit/fs-worker.js} +1 -1
- package/dist/libtmcsplit/index.html +31 -0
- package/dist/libtmcsplit/libtmcsplit.js +2 -0
- package/dist/tmcsplit/fs-worker.js +1 -0
- package/dist/tmcsplit/index.html +31 -0
- package/dist/tmcsplit/tmcsplit.js +2 -0
- package/eslint.config.mjs +12 -11
- package/fs-worker.webpack.config.cjs +19 -1
- package/libtmcsplit +2 -1
- package/libtmcsplit.webpack.config.cjs +7 -12
- package/package.json +9 -9
- package/webpack.config.cjs +5 -12
- package/tmcsplit.js +0 -2
package/eslint.config.mjs
CHANGED
|
@@ -31,21 +31,26 @@ const
|
|
|
31
31
|
_project =
|
|
32
32
|
"tmcsplit";
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
ignores: [
|
|
34
|
+
const
|
|
35
|
+
_ignores = [
|
|
37
36
|
"build/**",
|
|
37
|
+
"dist/**",
|
|
38
38
|
"node_modules/**",
|
|
39
39
|
"eslint.config.js",
|
|
40
|
+
"fs-worker.js",
|
|
40
41
|
"man/**"
|
|
41
|
-
]
|
|
42
|
+
];
|
|
43
|
+
export default defineConfig([
|
|
44
|
+
{
|
|
45
|
+
ignores:
|
|
46
|
+
_ignores,
|
|
42
47
|
rules:
|
|
43
48
|
{ semi:
|
|
44
49
|
"error",
|
|
45
50
|
"prefer-const":
|
|
46
51
|
"error" },
|
|
47
52
|
files:
|
|
48
|
-
[ "
|
|
53
|
+
[ "**/*.{js,mjs,cjs}",
|
|
49
54
|
`**/${_project}*`,
|
|
50
55
|
`**/lib${_project}`
|
|
51
56
|
],
|
|
@@ -58,12 +63,8 @@ export default defineConfig([
|
|
|
58
63
|
{ ...globals.browser,
|
|
59
64
|
...globals.node } } },
|
|
60
65
|
{
|
|
61
|
-
ignores:
|
|
62
|
-
|
|
63
|
-
"eslint.config.js",
|
|
64
|
-
"node_modules/**",
|
|
65
|
-
"man/**"
|
|
66
|
-
],
|
|
66
|
+
ignores:
|
|
67
|
+
_ignores,
|
|
67
68
|
rules:
|
|
68
69
|
{ semi:
|
|
69
70
|
"error",
|
|
@@ -21,6 +21,21 @@ _output = {
|
|
|
21
21
|
filename:
|
|
22
22
|
_output_file_name
|
|
23
23
|
};
|
|
24
|
+
const
|
|
25
|
+
_node_fs_ignore =
|
|
26
|
+
{ resourceRegExp:
|
|
27
|
+
/^node:fs$/ };
|
|
28
|
+
const
|
|
29
|
+
_webpack =
|
|
30
|
+
require(
|
|
31
|
+
"webpack");
|
|
32
|
+
const
|
|
33
|
+
_ignore_plugin =
|
|
34
|
+
_webpack.IgnorePlugin;
|
|
35
|
+
const
|
|
36
|
+
_node_fs_ignore_plugin =
|
|
37
|
+
new _ignore_plugin(
|
|
38
|
+
_node_fs_ignore);
|
|
24
39
|
module.exports = {
|
|
25
40
|
entry:
|
|
26
41
|
_input_file_path,
|
|
@@ -44,5 +59,8 @@ module.exports = {
|
|
|
44
59
|
__dirname,
|
|
45
60
|
'node_modules/path/mod.js'),
|
|
46
61
|
},
|
|
47
|
-
}
|
|
62
|
+
},
|
|
63
|
+
plugins: [
|
|
64
|
+
_node_fs_ignore_plugin,
|
|
65
|
+
]
|
|
48
66
|
};
|
package/libtmcsplit
CHANGED
|
@@ -47,13 +47,9 @@ const
|
|
|
47
47
|
_output_file_name
|
|
48
48
|
};
|
|
49
49
|
const
|
|
50
|
-
|
|
50
|
+
_node_fs_ignore =
|
|
51
51
|
{ resourceRegExp:
|
|
52
|
-
/^
|
|
53
|
-
const
|
|
54
|
-
_web_worker_ignore =
|
|
55
|
-
{ resourceRegExp:
|
|
56
|
-
/^web-worker$/ };
|
|
52
|
+
/^node:fs$/ };
|
|
57
53
|
const
|
|
58
54
|
_yargs_ignore =
|
|
59
55
|
{ resourceRegExp:
|
|
@@ -70,13 +66,9 @@ const
|
|
|
70
66
|
_ignore_plugin =
|
|
71
67
|
_webpack.IgnorePlugin;
|
|
72
68
|
const
|
|
73
|
-
|
|
69
|
+
_node_fs_ignore_plugin =
|
|
74
70
|
new _ignore_plugin(
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
_web_worker_ignore_plugin =
|
|
78
|
-
new _ignore_plugin(
|
|
79
|
-
_web_worker_ignore);
|
|
71
|
+
_node_fs_ignore);
|
|
80
72
|
const
|
|
81
73
|
_yargs_ignore_plugin =
|
|
82
74
|
new _ignore_plugin(
|
|
@@ -121,6 +113,8 @@ module.exports = {
|
|
|
121
113
|
'node_modules/yargs-parser/browser.mjs'),
|
|
122
114
|
},
|
|
123
115
|
fallback: {
|
|
116
|
+
"node:fs":
|
|
117
|
+
false,
|
|
124
118
|
"utils":
|
|
125
119
|
false,
|
|
126
120
|
"web-worker":
|
|
@@ -135,6 +129,7 @@ module.exports = {
|
|
|
135
129
|
{ yargs:
|
|
136
130
|
'yargs' },
|
|
137
131
|
plugins: [
|
|
132
|
+
_node_fs_ignore_plugin,
|
|
138
133
|
_yargs_ignore_plugin,
|
|
139
134
|
_yargs_helpers_ignore_plugin
|
|
140
135
|
]
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name":
|
|
3
3
|
"tmcsplit",
|
|
4
4
|
"version":
|
|
5
|
-
"0.0.
|
|
5
|
+
"0.0.11",
|
|
6
6
|
"description":
|
|
7
7
|
"Basic Javascript implementation of GNU Split.",
|
|
8
8
|
"funding": {
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"AUTHORS.rst",
|
|
18
18
|
"COPYING",
|
|
19
19
|
"README.md",
|
|
20
|
+
"dist",
|
|
20
21
|
"eslint.config.mjs",
|
|
21
22
|
"package.json",
|
|
22
|
-
"tmcsplit.js",
|
|
23
23
|
"tmcsplit",
|
|
24
|
-
"fs-worker.js",
|
|
25
24
|
"fs-worker.webpack.config.cjs",
|
|
26
25
|
"index.html",
|
|
27
26
|
"serve.json",
|
|
27
|
+
"libtmcsplit",
|
|
28
28
|
"libtmcsplit.webpack.config.cjs",
|
|
29
29
|
"webpack.config.cjs"
|
|
30
30
|
],
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"crash-js-webpack":
|
|
60
|
-
"^0.0.
|
|
60
|
+
"^0.0.27",
|
|
61
61
|
"eslint":
|
|
62
62
|
"^10.0.3",
|
|
63
63
|
"globals":
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"crash-js":
|
|
76
|
-
"^0.1.
|
|
76
|
+
"^0.1.133",
|
|
77
77
|
"split-file":
|
|
78
78
|
"npm:@themartiancompany/split-file@2.3.15"
|
|
79
79
|
},
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
"tmcsplit" },
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build-fs-worker":
|
|
89
|
-
"npx webpack --mode 'production' --config 'fs-worker.webpack.config.cjs' --stats-error-details",
|
|
89
|
+
"npx webpack --mode 'production' --config 'fs-worker.webpack.config.cjs' --stats-error-details && cp 'fs-worker.js' 'dist/libtmcsplit' && cp 'fs-worker.js' 'dist/tmcsplit'",
|
|
90
90
|
"build-lib":
|
|
91
|
-
"npx webpack --mode 'production' --config 'libtmcsplit.webpack.config.cjs' --stats-error-details",
|
|
91
|
+
"npx webpack --mode 'production' --config 'libtmcsplit.webpack.config.cjs' --stats-error-details && cp 'libtmcsplit.js' 'dist/libtmcsplit'",
|
|
92
92
|
"build-bin":
|
|
93
|
-
"npx webpack --mode 'production' --config 'webpack.config.cjs' --stats-error-details",
|
|
93
|
+
"npx webpack --mode 'production' --config 'webpack.config.cjs' --stats-error-details&& cp 'tmcsplit.js' 'dist/tmcsplit'",
|
|
94
94
|
"build":
|
|
95
95
|
"npm run build-fs-worker && npm run build-lib && npm run build-bin",
|
|
96
96
|
"lint":
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"publish-npm":
|
|
99
99
|
"npm lint && npm run build && npm publish --access public",
|
|
100
100
|
"start":
|
|
101
|
-
"npx safely-serve
|
|
101
|
+
"npx safely-serve 'dist/tmcsplit'",
|
|
102
102
|
"test":
|
|
103
103
|
"echo \"Error: no test specified\" && exit 1"
|
|
104
104
|
}
|
package/webpack.config.cjs
CHANGED
|
@@ -47,13 +47,9 @@ const
|
|
|
47
47
|
_output_file_name
|
|
48
48
|
};
|
|
49
49
|
const
|
|
50
|
-
|
|
50
|
+
_node_fs_ignore =
|
|
51
51
|
{ resourceRegExp:
|
|
52
|
-
/^
|
|
53
|
-
const
|
|
54
|
-
_web_worker_ignore =
|
|
55
|
-
{ resourceRegExp:
|
|
56
|
-
/^web-worker$/ };
|
|
52
|
+
/^node:fs$/ };
|
|
57
53
|
const
|
|
58
54
|
_yargs_ignore =
|
|
59
55
|
{ resourceRegExp:
|
|
@@ -70,13 +66,9 @@ const
|
|
|
70
66
|
_ignore_plugin =
|
|
71
67
|
_webpack.IgnorePlugin;
|
|
72
68
|
const
|
|
73
|
-
|
|
74
|
-
new _ignore_plugin(
|
|
75
|
-
_utils_ignore);
|
|
76
|
-
const
|
|
77
|
-
_web_worker_ignore_plugin =
|
|
69
|
+
_node_fs_ignore_plugin =
|
|
78
70
|
new _ignore_plugin(
|
|
79
|
-
|
|
71
|
+
_node_fs_ignore);
|
|
80
72
|
const
|
|
81
73
|
_yargs_ignore_plugin =
|
|
82
74
|
new _ignore_plugin(
|
|
@@ -135,6 +127,7 @@ module.exports = {
|
|
|
135
127
|
{ yargs:
|
|
136
128
|
'yargs' },
|
|
137
129
|
plugins: [
|
|
130
|
+
_node_fs_ignore_plugin,
|
|
138
131
|
_yargs_ignore_plugin,
|
|
139
132
|
_yargs_helpers_ignore_plugin
|
|
140
133
|
]
|