Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsjng committed Apr 22, 2019
1 parent 6f6f597 commit e36c0d0
Show file tree
Hide file tree
Showing 6 changed files with 427 additions and 1,492 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
es6: true
node: true

parserOptions:
ecmaVersion: 2019

rules:
array-bracket-spacing: [2, never]
arrow-parens: [2, as-needed]
Expand Down
2 changes: 1 addition & 1 deletion dist/kjua.min.js

Large diffs are not rendered by default.

24 changes: 1 addition & 23 deletions ghu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,8 @@ ghu.task('clean', () => {
});

ghu.task('build:script', runtime => {
const webpackConfig = {
mode: 'none',
output: {
library: NAME,
libraryTarget: 'umd',
umdNamedDefine: true,
globalObject: '(typeof self !== \'undefined\' ? self : this)'
},
module: {
rules: [
{
include: [SRC],
loader: 'babel-loader',
query: {
cacheDirectory: true,
presets: ['@babel/preset-env']
}
}
]
}
};

return read(`${SRC}/${NAME}.js`)
.then(webpack(webpackConfig, {showStats: false}))
.then(webpack(webpack.cfg_umd(NAME, [SRC]), {showStats: false}))
.then(includeit())
.then(uglify())
.then(wrap(runtime.commentJs))
Expand Down
Loading

0 comments on commit e36c0d0

Please sign in to comment.