-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from hangts/master
#merge develop into master
- Loading branch information
Showing
777 changed files
with
405,110 additions
and
8,656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"../.eslintrc.json", | ||
"plugin:node/recommended" | ||
], | ||
"plugins": [ "node" ], | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
}, | ||
"rules": { | ||
"node/no-unpublished-require": "off", | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./webpack.config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
const path = require('path'); | ||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); | ||
|
||
const root = path.resolve(`${__dirname}/..`); | ||
const srcRoot = `${root}/src`; | ||
const production = (process.env.NODE_ENV === 'production'); | ||
|
||
module.exports = { | ||
entry: `${srcRoot}/index.ts`, | ||
output: { | ||
path: `${root}/dist`, | ||
filename: 'index.js', | ||
library: 'irishub-sdk', | ||
libraryTarget: 'umd' | ||
}, | ||
resolve: { | ||
extensions: ['.ts', '.js'] | ||
}, | ||
module: { | ||
rules: [{ | ||
enforce: 'pre', | ||
test: /\.ts$/, | ||
include: [srcRoot], | ||
use: [{ | ||
loader: 'eslint-loader', | ||
options: { | ||
failOnWarning: production | ||
} | ||
}] | ||
}, { | ||
test: /\.ts$/, | ||
include: [srcRoot], | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { | ||
compact: false, | ||
presets: [ | ||
'@babel/preset-typescript', | ||
['@babel/preset-env', { | ||
targets: { | ||
chrome: '73', | ||
ie: '11', | ||
firefox: '66', | ||
safari: '12' | ||
} | ||
}] | ||
] | ||
} | ||
} | ||
] | ||
}] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const merge = require('webpack-merge'); | ||
const common = require('./webpack.common'); | ||
const web = require('./webpack.web'); | ||
const node = require('./webpack.node'); | ||
|
||
const env = (process.env.NODE_ENV === 'production') | ||
? require('./webpack.production') | ||
: require('./webpack.development'); | ||
|
||
module.exports = [ | ||
merge(common, web, env), | ||
merge(common, node, env) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
mode: 'development', | ||
devtool: 'source-map' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
target: 'node', | ||
output: { | ||
filename: 'node.js' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
mode: 'production', | ||
devtool: false | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
target: 'web', | ||
output: { | ||
filename: 'web.js' | ||
} | ||
}; |
Oops, something went wrong.