Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spfx-fast-serve

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spfx-fast-serve - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

12

CHANGELOG.md
# 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 @@

3

lib/common/Logger.js

@@ -44,2 +44,5 @@ "use strict";

}
info(message) {
this.logger(logSymbols.info, message);
}
newLine() {

@@ -46,0 +49,0 @@ this.logger('');

7

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc