Initial build setup
This commit is contained in:
parent
e7b05877c5
commit
bfaa701f18
4 changed files with 75 additions and 0 deletions
19
.eslintrc.json
Normal file
19
.eslintrc.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"extends": "airbnb-base",
|
||||
"rules": {
|
||||
"class-methods-use-this": 0,
|
||||
"no-continue": 0,
|
||||
"no-plusplus": 0,
|
||||
"object-curly-newline": 0
|
||||
},
|
||||
"globals": {
|
||||
"customElements": false,
|
||||
"document": false,
|
||||
"fetch": false,
|
||||
"Plotly": false
|
||||
},
|
||||
"settings": {
|
||||
"import/parser": "babel-eslint"
|
||||
},
|
||||
"parser": "babel-eslint"
|
||||
}
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
/node_modules/
|
||||
/dist/
|
||||
npm-debug.log
|
32
package.json
Normal file
32
package.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"name": "infoscreens",
|
||||
"version": "1.0.0",
|
||||
"description": "c-base info screens",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "webpack",
|
||||
"pretest": "eslint lib/*.js elements/*.js index.js",
|
||||
"start": "http-server . -p 3000 -s",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Henri Bergius <henri.bergius@iki.fi>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@webcomponents/webcomponentsjs": "^1.0.19",
|
||||
"d3": "^4.12.0",
|
||||
"plotly.js": "^1.31.2",
|
||||
"skatejs": "^5.0.0-beta.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0-beta.32",
|
||||
"@babel/preset-env": "^7.0.0-beta.32",
|
||||
"babel-eslint": "^8.0.2",
|
||||
"babel-loader": "^8.0.0-beta.0",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"eslint": "^4.12.0",
|
||||
"eslint-config-airbnb-base": "^12.1.0",
|
||||
"eslint-plugin-import": "^2.8.0",
|
||||
"http-server": "^0.10.0",
|
||||
"webpack": "^3.8.1"
|
||||
}
|
||||
}
|
21
webpack.config.js
Normal file
21
webpack.config.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
module.exports = {
|
||||
entry: './index.js',
|
||||
output: {
|
||||
path: __dirname,
|
||||
filename: 'dist/infoscreens.js'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env'],
|
||||
plugins: ['transform-class-properties'],
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue