@s-ui/bundler 7.35.0 → 7.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # sui-bunder
1
+ # sui-bundler
2
2
 
3
3
  > Config-free bundler for ES6 React apps.
4
4
 
@@ -25,7 +25,8 @@ const linkLoaderConfigBuilder = require('../loaders/linkLoaderConfigBuilder')
25
25
  const log = require('../shared/log')
26
26
 
27
27
  const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000
28
- const HOST = process.env.HOST || '0.0.0.0'
28
+ const {CI = false, HOST = '0.0.0.0'} = process.env
29
+ const DEFAULT_WATCH = !CI
29
30
 
30
31
  if (!module.parent) {
31
32
  program
@@ -43,6 +44,11 @@ if (!module.parent) {
43
44
  },
44
45
  []
45
46
  )
47
+ .option(
48
+ '-w, --watch',
49
+ 'Watch files and restart the server on change',
50
+ DEFAULT_WATCH
51
+ )
46
52
  .on('--help', () => {
47
53
  console.log(' Examples:')
48
54
  console.log('')
@@ -52,6 +58,7 @@ if (!module.parent) {
52
58
  console.log('')
53
59
  })
54
60
  .parse(process.argv)
61
+
55
62
  const {context} = program
56
63
  webpackConfig.context = context || webpackConfig.context
57
64
  }
@@ -29,6 +29,7 @@ module.exports = config => ({
29
29
  historyApiFallback: {
30
30
  disableDotRule: true
31
31
  },
32
+ watch: config.watch,
32
33
  onAfterSetupMiddleware(devServer) {
33
34
  // This service worker file is effectively a 'no-op' that will reset any
34
35
  // previous service worker registered for the same host:port combination.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "7.35.0",
3
+ "version": "7.37.0",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-bundler#readme",
23
23
  "dependencies": {
24
- "@babel/core": "7.15.8",
24
+ "@babel/core": "7.16.0",
25
25
  "@s-ui/helpers": "1",
26
26
  "autoprefixer": "9.8.6",
27
27
  "babel-loader": "8.2.3",