This repository has been archived by the owner on Apr 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: use config-loader + update to latest eslint-config-webpack * fix: linting errors * chore: clean up comments * test: add webpack init failure test * fix: remove webpack < 4 hook * refactor: setting content defaults handled by options.js * refactor: --help is managed by meow * test: add additional coverage * test: don't run http2 tests < node 9 * chore: fix lint errors after merge
- Loading branch information
1 parent
7b7f9ea
commit a7a682e
Showing
61 changed files
with
779 additions
and
646 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
root: true, | ||
plugins: ['prettier'], | ||
extends: ['@webpack-contrib/eslint-config-webpack'], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' }, | ||
], | ||
}, | ||
}; |
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
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
|
||
const compress = require('compression'); | ||
const convert = require('koa-connect'); | ||
|
||
module.exports = { | ||
entry: { | ||
index: [path.resolve(__dirname, 'app.js')] | ||
index: [path.resolve(__dirname, 'app.js')], | ||
}, | ||
mode: 'development', | ||
output: { | ||
filename: 'output.js' | ||
} | ||
filename: 'output.js', | ||
}, | ||
}; | ||
|
||
module.exports.serve = { | ||
content: [__dirname], | ||
add: (app, middleware, options) => { | ||
app.use(convert(compress())); | ||
} | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const compress = require('koa-compress'); | ||
|
||
module.exports = { | ||
entry: { | ||
index: [path.resolve(__dirname, 'app.js')] | ||
index: [path.resolve(__dirname, 'app.js')], | ||
}, | ||
mode: 'development', | ||
output: { | ||
filename: 'output.js' | ||
} | ||
filename: 'output.js', | ||
}, | ||
}; | ||
|
||
module.exports.serve = { | ||
content: [__dirname], | ||
add: (app, middleware, options) => { | ||
app.use(compress()); | ||
} | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
|
||
const internalIp = require('internal-ip'); | ||
|
||
module.exports = { | ||
entry: { | ||
index: [path.resolve(__dirname, 'app.js')] | ||
index: [path.resolve(__dirname, 'app.js')], | ||
}, | ||
mode: 'development', | ||
output: { | ||
filename: 'output.js' | ||
} | ||
filename: 'output.js', | ||
}, | ||
}; | ||
|
||
module.exports.serve = { | ||
content: [__dirname], | ||
host: internalIp.v4.sync() | ||
host: internalIp.v4.sync(), | ||
}; |
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
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
Oops, something went wrong.