guideai-app 0.1.1 → 0.1.2
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/GuideAI.js +1 -1
- package/dist/GuideAI.js.LICENSE.txt +37 -0
- package/dist/GuideAI.js.map +1 -1
- package/package.json +10 -4
- package/webpack.config.js +66 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "guideai-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "AI-powered guide component for React applications",
|
|
5
5
|
"main": "dist/GuideAI.js",
|
|
6
6
|
"types": "dist/GuideAI.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc && javascript-obfuscator dist/GuideAI.js --config obfuscator.json --output dist/GuideAI.js",
|
|
8
|
+
"build": "webpack && tsc --emitDeclarationOnly && javascript-obfuscator dist/GuideAI.js --config obfuscator.json --output dist/GuideAI.js",
|
|
9
9
|
"prepare": "npm run build",
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
11
|
},
|
|
@@ -30,6 +30,12 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/react": "^18.2.0",
|
|
32
32
|
"javascript-obfuscator": "^4.1.0",
|
|
33
|
-
"
|
|
33
|
+
"process": "^0.11.10",
|
|
34
|
+
"stream-browserify": "^3.0.0",
|
|
35
|
+
"ts-loader": "^9.5.2",
|
|
36
|
+
"typescript": "^5.0.0",
|
|
37
|
+
"util": "^0.12.5",
|
|
38
|
+
"webpack": "^5.98.0",
|
|
39
|
+
"webpack-cli": "^6.0.1"
|
|
34
40
|
}
|
|
35
|
-
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
mode: 'production',
|
|
5
|
+
entry: './src/GuideAI.tsx',
|
|
6
|
+
output: {
|
|
7
|
+
path: path.resolve(__dirname, 'dist'),
|
|
8
|
+
filename: 'GuideAI.js',
|
|
9
|
+
library: {
|
|
10
|
+
name: 'GuideAI',
|
|
11
|
+
type: 'umd',
|
|
12
|
+
export: 'default',
|
|
13
|
+
},
|
|
14
|
+
globalObject: 'this'
|
|
15
|
+
},
|
|
16
|
+
resolve: {
|
|
17
|
+
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
|
18
|
+
fallback: {
|
|
19
|
+
"stream": require.resolve("stream-browserify"),
|
|
20
|
+
"util": require.resolve("util/"),
|
|
21
|
+
"process": require.resolve("process/browser")
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
module: {
|
|
25
|
+
rules: [
|
|
26
|
+
{
|
|
27
|
+
test: /\.tsx?$/,
|
|
28
|
+
use: 'ts-loader',
|
|
29
|
+
exclude: /node_modules/
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
externals: {
|
|
34
|
+
// Mark React and ReactDOM as external dependencies
|
|
35
|
+
// This means they won't be bundled with the package
|
|
36
|
+
// The consuming application is expected to provide them
|
|
37
|
+
'react': {
|
|
38
|
+
commonjs: 'react',
|
|
39
|
+
commonjs2: 'react',
|
|
40
|
+
amd: 'React',
|
|
41
|
+
root: 'React'
|
|
42
|
+
},
|
|
43
|
+
'react-dom': {
|
|
44
|
+
commonjs: 'react-dom',
|
|
45
|
+
commonjs2: 'react-dom',
|
|
46
|
+
amd: 'ReactDOM',
|
|
47
|
+
root: 'ReactDOM'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
performance: {
|
|
51
|
+
hints: false
|
|
52
|
+
},
|
|
53
|
+
optimization: {
|
|
54
|
+
moduleIds: 'deterministic'
|
|
55
|
+
},
|
|
56
|
+
// Suppress the dynamic import warnings
|
|
57
|
+
ignoreWarnings: [
|
|
58
|
+
{
|
|
59
|
+
module: /node_modules/
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
message: /Critical dependency: the request of a dependency is an expression/
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
devtool: 'source-map'
|
|
66
|
+
};
|