-
Notifications
You must be signed in to change notification settings - Fork 3
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 #14 from Drill4J/develop
release 0.1.2
- Loading branch information
Showing
170 changed files
with
9,796 additions
and
40,881 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,7 @@ | ||
pipeline: | ||
build: | ||
image: node:8 | ||
commands: | ||
- yarn | ||
- yarn typecheck | ||
- yarn lint |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
const webpack = require('webpack'); | ||
|
||
const config = require('../webpack.config'); | ||
|
||
delete config.chromeExtensionBoilerplate; | ||
|
||
webpack(config, (err) => { | ||
if (err) throw err; | ||
}); |
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,5 @@ | ||
// tiny wrapper with default env vars | ||
module.exports = { | ||
NODE_ENV: process.env.NODE_ENV || 'development', | ||
PORT: process.env.PORT || 3002, | ||
}; |
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,36 @@ | ||
/* eslint-disable no-restricted-syntax */ | ||
const WebpackDevServer = require('webpack-dev-server'); | ||
|
||
const webpack = require('webpack'); | ||
|
||
const path = require('path'); | ||
const config = require('../webpack.config'); | ||
|
||
const env = require('./env'); | ||
|
||
const options = config.chromeExtensionBoilerplate || {}; | ||
const excludeEntriesToHotReload = options.notHotReload || []; | ||
|
||
for (const entryName in config.entry) { | ||
if (excludeEntriesToHotReload.indexOf(entryName) === -1) { | ||
config.entry[entryName] = [ | ||
`webpack-dev-server/client?http://localhost:${env.PORT}`, | ||
'webpack/hot/dev-server', | ||
].concat(config.entry[entryName]); | ||
} | ||
} | ||
|
||
config.plugins = [new webpack.HotModuleReplacementPlugin()].concat(config.plugins || []); | ||
|
||
delete config.chromeExtensionBoilerplate; | ||
|
||
const compiler = webpack(config); | ||
|
||
const server = new WebpackDevServer(compiler, { | ||
hot: true, | ||
contentBase: path.join(__dirname, '../build'), | ||
headers: { 'Access-Control-Allow-Origin': '*' }, | ||
disableHostCheck: true, | ||
}); | ||
|
||
server.listen(env.PORT); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.