Skip to content

Commit 5ac7da2

Browse files
authored
Add files via upload
1 parent 7b20e12 commit 5ac7da2

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "jsonstat-explorer",
3+
"version": "1.0.0",
4+
"description": "An interactive viewer for JSON-stat/CSV-stat/SDMX-JSON responses or documents.",
5+
"scripts": {
6+
"build": "webpack --mode=production",
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [
10+
"json-stat",
11+
"viewer",
12+
"stats",
13+
"cube",
14+
"opendata"
15+
],
16+
"author": "Xavier Badosa",
17+
"license": "ISC",
18+
"repository": "github:badosa/JSON-stat",
19+
"dependencies": {
20+
"@babel/core": "^7.8.3",
21+
"babel-loader": "^8.0.6",
22+
"@babel/preset-env": "^7.8.3",
23+
"@babel/preset-react": "^7.8.3",
24+
"babel-cli": "^6.26.0",
25+
"axios": ">=0.19.2",
26+
"babel-plugin-add-module-exports": "^1.0.2",
27+
"babel-plugin-react-html-attrs": "^2.1.0",
28+
"babel-plugin-transform-class-properties": "^6.24.1",
29+
"@babel/plugin-proposal-decorators": "^7.8.3",
30+
"@babel/plugin-proposal-function-bind": "^7.8.3",
31+
"jsonstat-toolkit": "^1.0.8",
32+
"jsonstat-suite": "^3.0.3",
33+
"react": "16.12.0",
34+
"react-dom": "16.12.0",
35+
"webpack": "^4.41.5",
36+
"webpack-cli": "^3.3.10"
37+
}
38+
}

webpack.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const
2+
webpack = require('webpack'),
3+
path = require('path')
4+
;
5+
6+
module.exports = {
7+
context: path.join(__dirname, "src"),
8+
entry: "./main.max.js",
9+
10+
plugins: [
11+
new webpack.DefinePlugin({
12+
VERSION: JSON.stringify(process.env.npm_package_version)
13+
})
14+
],
15+
16+
module: {
17+
rules: [
18+
{
19+
test: /\.jsx?$/,
20+
exclude: /node_modules/,
21+
use: {
22+
loader: 'babel-loader',
23+
options: {
24+
presets: [["@babel/env", { "modules": "commonjs" }], '@babel/preset-react'],
25+
plugins: ['add-module-exports','react-html-attrs', ['@babel/plugin-proposal-decorators', { 'legacy': true }], 'transform-class-properties', '@babel/plugin-proposal-function-bind'],
26+
}
27+
}
28+
}
29+
]
30+
},
31+
output: {
32+
path: __dirname + "/dist/",
33+
filename: "main.js"
34+
}
35+
};

0 commit comments

Comments
 (0)