spfx-fast-serve
Advanced tools
Comparing version 3.0.6 to 3.0.7-beta.1
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
# Change Log | ||
## [3.0.7] - 17 Sep 2023 | ||
### Features | ||
- grammar fix | ||
- added additional webpack parameter to the extend function | ||
## [3.0.6] - 19 Nov 2022 | ||
@@ -4,0 +11,0 @@ |
@@ -0,0 +0,0 @@ # ESLint configuration |
@@ -0,0 +0,0 @@ # FAQs / known issues <!-- omit in toc --> |
@@ -0,0 +0,0 @@ # HMR with SharePoint Framework |
@@ -0,0 +0,0 @@ # How to configure `spfx-fast-serve` with library components |
@@ -0,0 +0,0 @@ # NGROK serve plugin |
@@ -0,0 +0,0 @@ # How to upgrade to 3.x version from **any** earlier version |
@@ -0,0 +0,0 @@ # SharePoint Framework to `spfx-fast-serve-helpers` version matrix |
@@ -36,3 +36,3 @@ "use strict"; | ||
const filePath = path.join(process.cwd(), consts_1.FastServeFolderName, consts_1.WebpackExtendFileName); | ||
const webpackContent = fs.readFileSync((0, utils_1.getTemplatesPath)(consts_1.WebpackExtendFileName)).toString(); | ||
const webpackContent = fs.readFileSync(utils_1.getTemplatesPath(this.getFileName())).toString(); | ||
if (!fs.existsSync(filePath)) { | ||
@@ -44,4 +44,14 @@ fs.writeFileSync(filePath, webpackContent); | ||
} | ||
getFileName() { | ||
const minorVersion = utils_1.getSpfxMinorVersion(); | ||
const baseFileName = path.parse(consts_1.WebpackExtendFileName).name; | ||
if (minorVersion < 17) { | ||
return `${baseFileName}.js`; | ||
} | ||
else { | ||
return `${baseFileName}.v2.js`; | ||
} | ||
} | ||
} | ||
exports.CreateWebPackExtendFile = CreateWebPackExtendFile; | ||
//# sourceMappingURL=CreateWebPackExtendFile.js.map |
@@ -53,3 +53,3 @@ "use strict"; | ||
} | ||
const replaceContent = fs.readFileSync((0, utils_1.getTemplatesPath)('gulpfile.js')).toString(); | ||
const replaceContent = fs.readFileSync(utils_1.getTemplatesPath('gulpfile.js')).toString(); | ||
const options = { | ||
@@ -56,0 +56,0 @@ files: gulpfilePath, |
@@ -37,5 +37,5 @@ "use strict"; | ||
const packageString = fs.readFileSync(packagePath).toString(); | ||
const indent = (0, detect_indent_1.default)(packageString).indent || ' '; | ||
const indent = detect_indent_1.default(packageString).indent || ' '; | ||
const packageJson = JSON.parse(packageString); | ||
const minorVersion = (0, utils_1.getSpfxMinorVersion)(); | ||
const minorVersion = utils_1.getSpfxMinorVersion(); | ||
const templateDeps = {}; | ||
@@ -54,3 +54,3 @@ if (minorVersion >= 4 && minorVersion < 9) { | ||
} | ||
if ((0, utils_1.isBeta)()) { | ||
if (utils_1.isBeta()) { | ||
templateDeps['spfx-fast-serve-helpers'] = `${templateDeps['spfx-fast-serve-helpers']}-beta.0`; | ||
@@ -57,0 +57,0 @@ } |
@@ -33,3 +33,3 @@ "use strict"; | ||
static createSettings() { | ||
const argv = (0, yargs_1.default)(process.argv.slice(2)).options({ | ||
const argv = yargs_1.default(process.argv.slice(2)).options({ | ||
port: { type: 'number' } | ||
@@ -44,3 +44,3 @@ }).argv; | ||
let schemaUrl = consts_1.SchemaUrl; | ||
const spfxVersion = (0, utils_1.getSpfxMinorVersion)(); | ||
const spfxVersion = utils_1.getSpfxMinorVersion(); | ||
if (spfxVersion === 4) { | ||
@@ -47,0 +47,0 @@ schemaUrl = consts_1.SchemaUrlOld; |
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
const pkg = require('./../package.json'); | ||
(0, update_notifier_1.default)({ pkg }).notify(); | ||
update_notifier_1.default({ pkg }).notify(); | ||
const Logger_1 = require("./common/Logger"); | ||
@@ -21,4 +21,4 @@ const commands_1 = require("./commands"); | ||
Logger_1.logger.newLine(); | ||
const message = 'Now restore dependecies (\'npm install\' for npm) and execute \'npm run serve\' afterwards.'; | ||
const message = 'Now restore dependencies (\'npm install\' for npm) and execute \'npm run serve\' afterwards.'; | ||
Logger_1.logger.info(chalk_1.default.bgMagenta.white(message)); | ||
//# sourceMappingURL=index.js.map |
@@ -0,0 +0,0 @@ /* fast-serve */ |
@@ -0,0 +0,0 @@ /* |
{ | ||
"name": "spfx-fast-serve", | ||
"version": "3.0.6", | ||
"version": "3.0.7-beta.1", | ||
"author": "Sergei Sergeev (https://github.com/s-KaiNet)", | ||
@@ -32,2 +32,3 @@ "description": "Improve your SharePoint Framework development by speeding up 'serve' command", | ||
"dependencies": { | ||
"@types/node": "20.4.1", | ||
"@types/update-notifier": "5.1.0", | ||
@@ -34,0 +35,0 @@ "@types/yargs": "16.0.3", |
@@ -0,0 +0,0 @@ # :rocket: SPFx Fast Serve Tool |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,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
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
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
133364
50
767
9
1
+ Added@types/node@20.4.1
+ Added@types/node@20.4.1(transitive)