spfx-fast-serve
Advanced tools
Comparing version 3.0.3 to 3.0.4
# Change Log | ||
## [3.0.5] - 11 Mar 2021 | ||
### Features | ||
- minor changes | ||
## [3.0.4] - 11 Mar 2021 | ||
### Features | ||
- self-update checker | ||
## [3.0.3] - 09 Dec 2021 | ||
@@ -4,0 +16,0 @@ |
@@ -44,2 +44,5 @@ "use strict"; | ||
} | ||
info(message) { | ||
this.logger(logSymbols.info, message); | ||
} | ||
newLine() { | ||
@@ -46,0 +49,0 @@ this.logger(''); |
@@ -8,2 +8,5 @@ #!/usr/bin/env node | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const update_notifier_1 = __importDefault(require("update-notifier")); | ||
const pkg = require('./../package.json'); | ||
(0, update_notifier_1.default)({ pkg }).notify(); | ||
const Logger_1 = require("./common/Logger"); | ||
@@ -18,4 +21,4 @@ const commands_1 = require("./commands"); | ||
Logger_1.logger.newLine(); | ||
const message = 'Now you should run \'npm install\'. When you\'re done, simply execute \'npm run serve\''; | ||
Logger_1.logger.warning(chalk_1.default.bgRed(message)); | ||
const message = 'Now restore dependecies (\'npm install\' for npm) and execute \'npm run serve\' afterwards.'; | ||
Logger_1.logger.info(chalk_1.default.bgMagenta.white(message)); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "spfx-fast-serve", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"author": "Sergei Sergeev (https://github.com/s-KaiNet)", | ||
@@ -32,7 +32,9 @@ "description": "Improve your SharePoint Framework development by speeding up 'serve' command", | ||
"dependencies": { | ||
"@types/update-notifier": "5.1.0", | ||
"@types/yargs": "16.0.3", | ||
"chalk": "^3.0.0", | ||
"detect-indent": "^6.0.0", | ||
"log-symbols": "^3.0.0", | ||
"replace-in-file": "^5.0.2", | ||
"chalk": "4.1.2", | ||
"detect-indent": "6.1.0", | ||
"log-symbols": "4.1.0", | ||
"replace-in-file": "5.0.2", | ||
"update-notifier": "5.1.0", | ||
"yargs": "16.2.0" | ||
@@ -39,0 +41,0 @@ }, |
@@ -18,3 +18,3 @@ # :rocket: SPFx Fast Serve Tool | ||
Read more info in my [blog post here](https://spblog.net/post/2020/03/24/spfx-overclockers-or-how-significantly-speed-up-the-gulp-serve-command). | ||
Curious how it works under the hood? Read my [blog post here](https://spblog.net/post/2020/03/24/spfx-overclockers-or-how-significantly-speed-up-the-gulp-serve-command). | ||
@@ -29,12 +29,5 @@ ## How to use | ||
## Migration to 3.x version of `spfx-fast-serve` | ||
> **IMPORTANT!** | ||
> Minimal supported NodeJS version for SPFx 1.12+ and `spfx-fast-serve` is `12.x`. | ||
Please use [this guide](/docs/Upgrade%20to%203x.md) if you're planning to migrate your project to `spfx-fast-serve` 3.x. | ||
## Migration between SPFx versions | ||
As soon as you use `3.x` version, then the migration is as easy as just changing the version of `spfx-fast-serve-helpers` in your `package.json` to match the corresponding SPFx **minor** version (**do not** change patch version). | ||
The migration is as easy as just changing the version of `spfx-fast-serve-helpers` in your `package.json` to match the corresponding SPFx **minor** version (**do not** change patch version). | ||
@@ -65,3 +58,3 @@ For example, if your project is based on SPFx 1.11 and `spfx-fast-serve@3.x`, then you have below dependency: | ||
- `openUrl` - string, default `undefined`, which url to open. If empty, local workbench will be opened | ||
- `openUrl` - string, default `undefined`, which url to open. If empty, no url will be opened | ||
- `loggingLevel` - string, default `normal`, valid values are `"minimal", "normal", "detailed"`. `minimal` notifies about errors and new builds only, `normal` adds bundle information, `detailed` adds details about each bundle. | ||
@@ -71,2 +64,4 @@ - `fullScreenErrors` - boolean, default `true`, whether to show full-screen (overlay) errors. Corresponds to [webpack's dev server overlay](https://webpack.js.org/configuration/dev-server/#devserveroverlay) | ||
- `eslint` - *[SPFx 1.13+]* boolean, default `false`. When `true`, adds [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin) to lint your code. Read [more here](/docs/ESLint.md) how to properly configure it. | ||
- `reactProfiling` - *[SPFx 1.13+]* boolean, default `false`. When `true`, enables react profiling mode through [React Chrome extension](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en). By default profiling doesn't work in SPFx solutions (even in dev mode). | ||
- `containers` - *[SPFx 1.13+]* boolean, by default `fast-serve` automatically detects containerized environment (like Docker) and applies needed configuration. But if it doesn't work for you, you can explicitly disable or enable support for containers using this option. | ||
@@ -89,2 +84,16 @@ Here is a sample configuration: | ||
Starting from SPFx 1.13+ the library also support SPFx serve configurations. If you have any custom serve configuration (`serveConfigurations` node under `./config/serve.json`), then you can apply it to the `spfx-fast-serve` as well by running: | ||
```bash | ||
npm run serve -- --config=[serve-config-name] | ||
``` | ||
Or just duplicate "serve" npm script and add additional parameter: | ||
```json | ||
"serve-config": "gulp bundle --custom-serve --max_old_space_size=4096 && fast-serve --config=[serve-config-name]" | ||
``` | ||
It works exactly the same as the OOB `gulp serve --config=[config-name]` | ||
## Which SharePoint Framework versions are supported | ||
@@ -91,0 +100,0 @@ |
@@ -53,2 +53,10 @@ { | ||
"description": "[SPFx 1.13+] Enables eslint for the project. Read more https://github.com/s-KaiNet/spfx-fast-serve#configuration-options" | ||
}, | ||
"reactProfiling": { | ||
"type": "boolean", | ||
"description": "[SPFx 1.13+] Enables react profiling mode. You can profile SPFx solution using React Chromium extension" | ||
}, | ||
"containers": { | ||
"type": "boolean", | ||
"description": "[SPFx 1.13+] By default fast-serve automatically detects containerized environment (like Docker) and applies needed configuration. But if it doesn't work for you, you can explicitly disable or enable support for containers using this option." | ||
} | ||
@@ -55,0 +63,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
131141
731
157
0
8
+ Added@types/update-notifier@5.1.0
+ Addedupdate-notifier@5.1.0
+ Added@sindresorhus/is@0.14.0(transitive)
+ Added@szmarczak/http-timer@1.1.2(transitive)
+ Added@types/configstore@6.0.2(transitive)
+ Added@types/update-notifier@5.1.0(transitive)
+ Addedansi-align@3.0.1(transitive)
+ Addedboxen@4.2.05.1.2(transitive)
+ Addedcacheable-request@6.1.0(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedci-info@2.0.0(transitive)
+ Addedcli-boxes@2.2.1(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addedconfigstore@5.0.1(transitive)
+ Addedcrypto-random-string@2.0.0(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddefer-to-connect@1.1.3(transitive)
+ Addeddot-prop@5.3.0(transitive)
+ Addedduplexer3@0.1.5(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedescape-goat@2.1.1(transitive)
+ Addedget-stream@4.1.05.2.0(transitive)
+ Addedglobal-dirs@3.0.1(transitive)
+ Addedgot@9.6.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-yarn@2.1.0(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedimport-lazy@2.1.0(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedini@1.3.82.0.0(transitive)
+ Addedis-ci@2.0.0(transitive)
+ Addedis-installed-globally@0.4.0(transitive)
+ Addedis-npm@5.0.0(transitive)
+ Addedis-obj@2.0.0(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedis-unicode-supported@0.1.0(transitive)
+ Addedis-yarn-global@0.3.0(transitive)
+ Addedjson-buffer@3.0.0(transitive)
+ Addedkeyv@3.1.0(transitive)
+ Addedlatest-version@5.1.0(transitive)
+ Addedlog-symbols@4.1.0(transitive)
+ Addedlowercase-keys@1.0.12.0.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednormalize-url@4.5.1(transitive)
+ Addedp-cancelable@1.1.0(transitive)
+ Addedpackage-json@6.5.0(transitive)
+ Addedprepend-http@2.0.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedpupa@2.1.1(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedregistry-auth-token@4.2.2(transitive)
+ Addedregistry-url@5.1.0(transitive)
+ Addedresponselike@1.0.2(transitive)
+ Addedsemver@6.3.17.6.3(transitive)
+ Addedsemver-diff@3.1.1(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedterm-size@2.2.1(transitive)
+ Addedto-readable-stream@1.0.0(transitive)
+ Addedtype-fest@0.20.20.8.1(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedunique-string@2.0.0(transitive)
+ Addedupdate-notifier@5.1.0(transitive)
+ Addedurl-parse-lax@3.0.0(transitive)
+ Addedwidest-line@3.1.0(transitive)
+ Addedwrite-file-atomic@3.0.3(transitive)
+ Addedxdg-basedir@4.0.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedlog-symbols@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedchalk@4.1.2
Updateddetect-indent@6.1.0
Updatedlog-symbols@4.1.0
Updatedreplace-in-file@5.0.2