Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartozzz committed Jan 20, 2019
1 parent 787ed71 commit 2f3eae2
Show file tree
Hide file tree
Showing 11 changed files with 11,629 additions and 16,940 deletions.
20 changes: 11 additions & 9 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"presets" : [
"react",
"presets": [
"@babel/flow",
"@babel/react",
[
"env", {
"@babel/env",
{
"targets": {
"node": "current",
"browser": "last Chrome version"
"chrome": "71"
}
}
]
],

"plugins" : [
"plugins": [
"add-module-exports",
"transform-runtime",
"transform-decorators-legacy",
"transform-object-rest-spread",
"transform-class-properties",
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-object-rest-spread",
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
24 changes: 12 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parser": "babel-eslint",

"extends": [
"standard",
"prettier",
Expand All @@ -8,16 +9,16 @@
"prettier/standard",
"plugin:react/recommended"
],

"plugins": ["react", "flowtype", "standard", "prettier", "jsx-a11y"],

"env": {
"es6": true,
"node": true,
"browser": true,
"shared-node-browser": true
"browser": true
},

"parserOptions": {
"impliedStrict": true,
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
Expand All @@ -26,27 +27,26 @@
}
},

"settings": {
"react": {
"version": "detect"
}
},

"globals": {
"nw": true
},

"rules": {
"quotes": [1, "double"],
"indent": [2, 2, {"SwitchCase": 1}],
"indent": [2, 2, { "SwitchCase": 1 }],

"no-console": [0],
"no-param-reassign": [0],
"no-else-return": 0,
"no-confusing-arrow": 0,
"no-prototype-builtins": 0,

"require-jsdoc": [0],

"react/sort-comp": [0],
"react/no-danger": [0],
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx"]}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],

"prettier/prettier": 2,

Expand Down
22 changes: 11 additions & 11 deletions bin/compile
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#!/usr/bin/env node

const Builder = require('nw-builder');
const path = require('path');
const Builder = require("nw-builder");
const path = require("path");

const nw = new Builder({
files: [
path.resolve(__dirname, '../package.json'),
path.resolve(__dirname, '../dist/**'),
path.resolve(__dirname, "../package.json"),
path.resolve(__dirname, "../dist/**")
],

platforms: ['osx64', 'win64', 'linux64'],
version: 'latest',
macIcns: path.resolve(__dirname, '../logo/icns/1600x1600'),
winIco: path.resolve(__dirname, '../logo/ico/1600x1600.ico'),
platforms: ["osx64", "win64", "linux64"],
version: "latest",
macIcns: path.resolve(__dirname, "../logo/icns/1600x1600"),
winIco: path.resolve(__dirname, "../logo/ico/1600x1600.ico")
});

nw.on('log', console.log);
nw.on("log", console.log);

nw.build()
.then(() => {
console.log('Done');
console.log("Done");
})
.catch((error) => {
.catch(error => {
console.error(error);
});
Loading

0 comments on commit 2f3eae2

Please sign in to comment.