Skip to content

Commit

Permalink
Merge pull request goatslacker#1 from xiangxn/update-node
Browse files Browse the repository at this point in the history
upgrade node to v16, and update dependencies
  • Loading branch information
xiangxn authored Dec 31, 2021
2 parents b6b42ce + ffa88be commit 0c499b8
Show file tree
Hide file tree
Showing 25 changed files with 6,553 additions and 11,597 deletions.
12 changes: 10 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"presets": ["env", "babel-preset-react", "airbnb", "babel-preset-stage-0"],
"presets": [
[
"@babel/preset-env",
{ "modules": false, "targets": { "node": "current" } }
],
["@babel/preset-react", { "targets": { "node": "current" } }],
"airbnb"
],
"plugins": [
"add-module-exports",
"transform-class-properties",
["transform-es2015-classes", { loose: true }],
"@babel/plugin-transform-classes",
["transform-es2015-classes", { "loose": true }]
]
}
32 changes: 28 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,36 @@
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"ecmaFeatures": {
"modules": true,
"jsx": true
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"rules": {
"semi": [2, "never"],
"no-redeclare": 0,
"max-classes-per-file": 0,
"quotes": 0,
"indent": 0,
"import/no-import-module-exports": 0,
"no-useless-constructor": 0,
"no-multiple-empty-lines": 0,
"no-prototype-builtins": 0,
"no-param-reassign": 0,
"no-else-return": 0,
"prefer-spread": 0,
"no-underscore-dangle": 0,
"arrow-parens": 0,
"operator-linebreak": 0,
"no-return-assign": 0,
"comma-dangle": 0,
"object-shorthand": 0,
"no-plusplus": 0,
"no-unneeded-ternary": 0,
"class-methods-use-this": 0,
"prefer-destructuring": 0,
"arrow-body-style": 0
}
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ coverage
node_modules
npm-debug.log
test/browser/tests.js
lib
utils/*
flux.js
flux-build.js
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sudo: false
language: node_js
script: npm run lint && npm run coverage
node_js: 16
script: yarn run lint && yarn run coverage
after_script: cat ./coverage/lcov.info | coveralls
node_js:
- "stable"
3 changes: 2 additions & 1 deletion dist.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ module.exports = {
entry: {
'alt': ['./index.js'],
},
mode: "production",
output: {
path: __dirname + '/dist',
filename: '[name].js',
library: 'Alt',
libraryTarget: 'umd'
},
module: {
loaders: [{
rules: [{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
Expand Down
3 changes: 2 additions & 1 deletion dist.min.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ module.exports = {
entry: {
'alt': ['./index.js'],
},
mode: "production",
output: {
path: __dirname + '/dist',
filename: '[name].min.js',
library: 'Alt',
libraryTarget: 'umd'
},
module: {
loaders: [{
rules: [{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
Expand Down
Loading

0 comments on commit 0c499b8

Please sign in to comment.