@jseeio/jsee 0.4.1 → 0.8.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.
- package/CHANGELOG.md +90 -0
- package/LICENSE +21 -0
- package/README.md +583 -55
- package/dist/2b3e1faf89f94a483539.png +0 -0
- package/dist/416d91365b44e4b4f477.png +0 -0
- package/dist/8f2c4d11474275fbc161.png +0 -0
- package/dist/jsee.core.js +1 -0
- package/dist/jsee.full.js +1 -0
- package/dist/jsee.runtime.js +2 -1
- package/package.json +84 -18
- package/src/app.js +130 -33
- package/src/cli.js +474 -64
- package/src/extended-imports.js +11 -0
- package/src/main.js +264 -45
- package/src/overlay.js +26 -1
- package/src/utils.js +390 -12
- package/templates/common-inputs.js +88 -0
- package/templates/common-outputs.js +340 -4
- package/templates/minimal-app.vue +367 -0
- package/templates/minimal-input.vue +573 -0
- package/templates/minimal-output.vue +426 -0
- package/templates/virtual-table.vue +194 -0
- package/.claude/settings.local.json +0 -13
- package/.eslintrc.js +0 -38
- package/AGENTS.md +0 -65
- package/CLAUDE.md +0 -5
- package/CNAME +0 -1
- package/_config.yml +0 -26
- package/dist/jsee.js +0 -1
- package/jest-puppeteer.config.js +0 -14
- package/jest.config.js +0 -8
- package/jest.unit.config.js +0 -8
- package/load/index.html +0 -52
- package/templates/bulma-app.vue +0 -242
- package/templates/bulma-input.vue +0 -125
- package/templates/bulma-output.vue +0 -101
- package/test/class.html +0 -22
- package/test/code.html +0 -25
- package/test/codew.html +0 -25
- package/test/example-class.js +0 -8
- package/test/example-sum.js +0 -3
- package/test/fixtures/lodash-like.js +0 -15
- package/test/fixtures/upload-sample.csv +0 -3
- package/test/importw.html +0 -28
- package/test/minimal.html +0 -14
- package/test/minimal1.html +0 -13
- package/test/minimal2.html +0 -15
- package/test/minimal3.html +0 -10
- package/test/minimal4.html +0 -22
- package/test/pipeline.html +0 -52
- package/test/python.html +0 -41
- package/test/string.html +0 -26
- package/test/stringw.html +0 -29
- package/test/sum.schema.json +0 -17
- package/test/sumw.schema.json +0 -15
- package/test/test-basic.test.js +0 -603
- package/test/test-python.test.js +0 -23
- package/test/unit/cli-fetch.test.js +0 -229
- package/test/unit/utils.test.js +0 -888
- package/webpack.config.js +0 -101
package/webpack.config.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
const { VueLoaderPlugin } = require('vue-loader') // Support Vue's SFCs
|
|
3
|
-
const TerserPlugin = require('terser-webpack-plugin') // Minimize code
|
|
4
|
-
const webpack = require('webpack')
|
|
5
|
-
const package = require('./package.json')
|
|
6
|
-
|
|
7
|
-
module.exports = (env) => {
|
|
8
|
-
const config = {
|
|
9
|
-
entry: './src/main.js',
|
|
10
|
-
output: {
|
|
11
|
-
filename: env.RUNTIME ? 'jsee.runtime.js' : 'jsee.js',
|
|
12
|
-
path: path.resolve(__dirname, 'dist'),
|
|
13
|
-
publicPath: '/dist/', // Should fix Uncaught Error when downloaded: Automatic publicPath is not supported in this browser
|
|
14
|
-
library: {
|
|
15
|
-
type: 'umd',
|
|
16
|
-
name: 'JSEE',
|
|
17
|
-
export: 'default',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
// Define loaders
|
|
21
|
-
module: {
|
|
22
|
-
rules: [
|
|
23
|
-
{
|
|
24
|
-
test: /\.vue$/,
|
|
25
|
-
loader: 'vue-loader'
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
test: /\.js$/,
|
|
29
|
-
loader: 'babel-loader'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
test: /\.html/,
|
|
33
|
-
type: 'asset/source'
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
test: /\.css$/,
|
|
37
|
-
use: [
|
|
38
|
-
'vue-style-loader',
|
|
39
|
-
'css-loader',
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
test: /worker\.js$/,
|
|
44
|
-
loader: "worker-loader",
|
|
45
|
-
options: {
|
|
46
|
-
inline: 'no-fallback'
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
test: /\.scss$/,
|
|
51
|
-
use: [
|
|
52
|
-
'vue-style-loader',
|
|
53
|
-
'css-loader',
|
|
54
|
-
'sass-loader'
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
plugins: [
|
|
60
|
-
new VueLoaderPlugin(),
|
|
61
|
-
// Replace those values in the code
|
|
62
|
-
new webpack.DefinePlugin({
|
|
63
|
-
'VERSION': JSON.stringify(package.version),
|
|
64
|
-
'RUNTIME': JSON.stringify(env.RUNTIME),
|
|
65
|
-
})
|
|
66
|
-
],
|
|
67
|
-
// Load different versions of vue based on RUNTIME value
|
|
68
|
-
resolve: {
|
|
69
|
-
alias: {
|
|
70
|
-
vue$: env.RUNTIME
|
|
71
|
-
? 'vue/dist/vue.runtime.esm-bundler.js'
|
|
72
|
-
: 'vue/dist/vue.esm-bundler'
|
|
73
|
-
},
|
|
74
|
-
fallback: {}
|
|
75
|
-
},
|
|
76
|
-
// Update recommended size limit
|
|
77
|
-
performance: {
|
|
78
|
-
hints: false,
|
|
79
|
-
maxEntrypointSize: 512000,
|
|
80
|
-
maxAssetSize: 512000
|
|
81
|
-
},
|
|
82
|
-
// Remove comments
|
|
83
|
-
optimization: {
|
|
84
|
-
minimize: true,
|
|
85
|
-
minimizer: [new TerserPlugin({
|
|
86
|
-
extractComments: false,
|
|
87
|
-
terserOptions: {
|
|
88
|
-
format: {
|
|
89
|
-
comments: false,
|
|
90
|
-
},
|
|
91
|
-
}
|
|
92
|
-
})],
|
|
93
|
-
},
|
|
94
|
-
// Source map
|
|
95
|
-
devtool: env.DEVELOPMENT
|
|
96
|
-
? 'eval-source-map'
|
|
97
|
-
: false
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return config
|
|
101
|
-
}
|