spfx-fast-serve
Advanced tools
Comparing version 3.0.1 to 3.0.2-beta.0
# Change Log | ||
## [3.0.2] - 10 June 2021 | ||
### Features | ||
- schema changed to support latest SPFx | ||
- minor improvements | ||
## [3.0.1] - 08 June 2021 | ||
@@ -4,0 +11,0 @@ |
@@ -28,3 +28,3 @@ # How to configure `spfx-fast-serve` with library components | ||
`[port number]` is any free TCP port except `4321`, because it's the default for main SPFx web server. For example, you case use `4322`, `4323`, etc. The only rule is that you should use unique port for every library component project per your SPFx solution. The `port` value is provided without any quotes, i.e. `--port 4323`. | ||
`[port number]` is any free TCP port except `4321`, because it's the default for main SPFx web server. For example, you can use `4322`, `4323`, etc. The only rule is that you should use a unique port for every library component project per your SPFx solution. The `port` value is provided without any quotes, i.e. `--port 4323`. | ||
@@ -69,3 +69,3 @@ 4. In both folders run | ||
`[port number]` is any free TCP port except `4321`, because it's the default for main SPFx web server. For example, you case use `4322`, `4323`, etc. The only rule is that you should use unique port for every library component project per your SPFx solution. The `port` value is provided without any quotes, i.e. `--port 4323`. | ||
`[port number]` is any free TCP port except `4321`, because it's the default for main SPFx web server. For example, you can use `4322`, `4323`, etc. The only rule is that you should use a unique port for every library component project per your SPFx solution. The `port` value is provided without any quotes, i.e. `--port 4323`. | ||
@@ -72,0 +72,0 @@ 4. Update `spfx-webparts/package.json` and add dependency on `"corporate-library": "0.0.1"` |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GulpFileName = exports.WebpackExtendFileName = exports.SchemaUrl = exports.ConfigFileName = exports.FastServeFolderName = void 0; | ||
exports.GulpFileName = exports.WebpackExtendFileName = exports.SchemaUrlOld = exports.SchemaUrl = exports.ConfigFileName = exports.FastServeFolderName = void 0; | ||
exports.FastServeFolderName = 'fast-serve'; | ||
exports.ConfigFileName = 'config.json'; | ||
exports.SchemaUrl = 'https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.1.1.schema.json'; | ||
exports.SchemaUrl = 'https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.latest.schema.json'; | ||
exports.SchemaUrlOld = 'https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.1.1.schema.json'; | ||
exports.WebpackExtendFileName = 'webpack.extend.js'; | ||
exports.GulpFileName = 'gulpfile.js'; | ||
//# sourceMappingURL=consts.js.map |
@@ -30,2 +30,3 @@ "use strict"; | ||
const consts_1 = require("./consts"); | ||
const utils_1 = require("./utils"); | ||
class SettingsManager { | ||
@@ -42,4 +43,9 @@ static createSettings() { | ||
} | ||
let schemaUrl = consts_1.SchemaUrl; | ||
const spfxVersion = utils_1.getSpfxMinorVersion(); | ||
if (spfxVersion === 4) { | ||
schemaUrl = consts_1.SchemaUrlOld; | ||
} | ||
const defaultSettings = { | ||
$schema: consts_1.SchemaUrl, | ||
$schema: schemaUrl, | ||
cli: cliArgs | ||
@@ -46,0 +52,0 @@ }; |
@@ -17,3 +17,4 @@ #!/usr/bin/env node | ||
Logger_1.logger.newLine(); | ||
Logger_1.logger.warning(chalk_1.default.bgRed('Now you should run \'npm install\'. When you\'re done, simply execute \'npm run serve\'')); | ||
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)); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "spfx-fast-serve", | ||
"version": "3.0.1", | ||
"version": "3.0.2-beta.0", | ||
"author": "Sergei Sergeev (https://github.com/s-KaiNet)", | ||
@@ -5,0 +5,0 @@ "description": "Improve your SharePoint Framework development by speeding up 'serve' command", |
@@ -69,8 +69,9 @@ # :rocket: SPFx Fast Serve Tool | ||
- `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) | ||
- `hotRefresh` - boolean, default `false`. When `true` enables webpack's [Hot Module Replacement](https://webpack.js.org/concepts/hot-module-replacement/) (HMR). This features is considered as experimental meaning that you can try and use if it works well for your project. Read [more here](/docs/HMR.md) how to properly configure SPFx to work with HMR. | ||
Here is a full configuration example: | ||
Here is a sample configuration: | ||
```json | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.1.1.schema.json", | ||
"$schema": "https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.latest.schema.json", | ||
"cli": { | ||
@@ -82,4 +83,3 @@ "isLibraryComponent": false | ||
"openUrl": "https://<org>.sharepoint.com/sites/dev/_layouts/15/workbench.aspx", | ||
"fullScreenErrors": true, | ||
"loggingLevel": 'normal' | ||
"fullScreenErrors": true | ||
} | ||
@@ -86,0 +86,0 @@ } |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
522846
56
12424
1