@squidcloud/cli 1.0.316 → 1.0.317
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/dist/index.js +26795 -2
- package/dist/resources/user-build.webpack.config.js +63 -0
- package/package.json +2 -2
- package/dist/index.js.LICENSE.txt +0 -17
@@ -0,0 +1,63 @@
|
|
1
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
2
|
+
const CopyPlugin = require('copy-webpack-plugin');
|
3
|
+
const ZipPlugin = require('zip-webpack-plugin');
|
4
|
+
const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin');
|
5
|
+
const path = require('path');
|
6
|
+
|
7
|
+
module.exports = function () {
|
8
|
+
return {
|
9
|
+
entry: './src/index.ts',
|
10
|
+
target: 'node',
|
11
|
+
mode: 'production',
|
12
|
+
devtool: 'source-map',
|
13
|
+
externalsPresets: { node: true },
|
14
|
+
output: {
|
15
|
+
path: path.resolve(process.cwd(), 'dist'),
|
16
|
+
filename: 'index.js',
|
17
|
+
library: {
|
18
|
+
type: 'commonjs',
|
19
|
+
},
|
20
|
+
},
|
21
|
+
optimization: {
|
22
|
+
minimize: true,
|
23
|
+
minimizer: [
|
24
|
+
new TerserPlugin({
|
25
|
+
terserOptions: {
|
26
|
+
keep_classnames: true,
|
27
|
+
keep_fnames: true,
|
28
|
+
sourceMap: true,
|
29
|
+
},
|
30
|
+
}),
|
31
|
+
],
|
32
|
+
},
|
33
|
+
plugins: [
|
34
|
+
new CopyPlugin({
|
35
|
+
patterns: [
|
36
|
+
{ from: 'src/public', to: 'public', noErrorOnMissing: true },
|
37
|
+
],
|
38
|
+
}),
|
39
|
+
new ZipPlugin({
|
40
|
+
path: path.resolve(process.cwd(), 'dist'),
|
41
|
+
filename: 'bundle.zip',
|
42
|
+
include: [/([0-9]*\.)?index.js(.map)?/, /^public\/.*$/],
|
43
|
+
}),
|
44
|
+
],
|
45
|
+
module: {
|
46
|
+
rules: [
|
47
|
+
{
|
48
|
+
test: /\.(ts|tsx)$/i,
|
49
|
+
loader: 'ts-loader',
|
50
|
+
exclude: /node_modules/,
|
51
|
+
},
|
52
|
+
{
|
53
|
+
test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i,
|
54
|
+
type: 'asset',
|
55
|
+
},
|
56
|
+
],
|
57
|
+
},
|
58
|
+
resolve: {
|
59
|
+
plugins: [new TsconfigPathsPlugin()],
|
60
|
+
extensions: ['.tsx', '.ts', '.jsx', '.js'],
|
61
|
+
},
|
62
|
+
};
|
63
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squidcloud/cli",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.317",
|
4
4
|
"description": "The Squid CLI",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"node": ">=18.0.0"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@squidcloud/local-backend": "^1.0.
|
32
|
+
"@squidcloud/local-backend": "^1.0.317",
|
33
33
|
"copy-webpack-plugin": "^12.0.2",
|
34
34
|
"decompress": "^4.2.1",
|
35
35
|
"nodemon": "^3.1.3",
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
object-assign
|
3
|
-
(c) Sindre Sorhus
|
4
|
-
@license MIT
|
5
|
-
*/
|
6
|
-
|
7
|
-
/*!
|
8
|
-
* is-natural-number.js | MIT (c) Shinnosuke Watanabe
|
9
|
-
* https://github.com/shinnn/is-natural-number.js
|
10
|
-
*/
|
11
|
-
|
12
|
-
/*!
|
13
|
-
* strip-dirs | MIT (c) Shinnosuke Watanabe
|
14
|
-
* https://github.com/shinnn/node-strip-dirs
|
15
|
-
*/
|
16
|
-
|
17
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|