Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 1d0f623

Browse files
+ faster external links check, minor content fixes
1 parent 7a32098 commit 1d0f623

File tree

4 files changed

+48
-50
lines changed

4 files changed

+48
-50
lines changed

.build-helpers.ps1

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,43 +27,13 @@ function Require-Variable($value, $description) {
2727
if($value -eq $null) {
2828
throw "Variable is null: $description"
2929
}
30-
3130
}
3231

3332
function Edit-ValueInFile($path, $old, $new) {
3433
(Get-Content $path).replace( $old, $new ) `
3534
| Set-Content $path
3635
}
3736

38-
function Confirm-NpmModule($name, $global = $False) {
39-
40-
$needInstall = $False
41-
42-
try {
43-
npm config set error
44-
45-
if( $global -eq $True) {
46-
npm list $name -g | out-null
47-
} else {
48-
npm list $name | out-null
49-
}
50-
} catch {
51-
$needInstall = $True
52-
}
53-
54-
if ($LASTEXITCODE -ne 0 -or $needInstall -eq $True) {
55-
Write-Build Yellow "[~] installing npm module: $name"
56-
if( $global -eq $True) {
57-
npm install $name -g --silent
58-
} else {
59-
npm install $name --silent
60-
}
61-
}
62-
else {
63-
Write-Build Green "[+] npm module installed: $name"
64-
}
65-
}
66-
6737
function Copy-NetlifyConfig {
6838
Copy-Item "$dirPath/netlify/*" "$buildFolder/" -Recurse -Force
6939
}

.build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ task NpmInstall {
3333

3434
task NetlifyInstall {
3535
if($null -eq (Get-Command netlify -ErrorAction SilentlyContinue) ) {
36-
Confirm-NpmModule 'netlify-cli' $true
36+
npm config set error
37+
38+
npm install netlify-cli -g --silent
39+
npm install typescript -g --silent
3740
} else {
3841
Write-Build Green "[+] netlify-cli"
3942
}
@@ -230,6 +233,7 @@ task NetlifyRepublish DefaultBuild, NetlifyPublish
230233
task Appveyor AppveyorPrepare,
231234
NpmInstall,
232235
NetlifyInstall,
236+
ShowTools,
233237
DefaultBuild,
234238
CreateZipArchive,
235239
NetlifyPrePublish,

docs/spmeta2/getting-started/Releases.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We tend to be agile and deliver new features and fixes as soon as possible:
1616

1717
* On weekly basis new features and minor fixes are published as -beta to NuGet
1818
* On monthly basis a major release is published to [NuGet](https://www.nuget.org/profiles/SubPointSupport)
19-
* Every commit to github [gets build with Appveyor](https://ci.appveyor.com/project/SubPointSupport/spmeta2) and the gets published to the [staging MyGet feed](https://www.myget.org/gallery/subpointsolutions-staging)
19+
* Every commit to github [gets build with Appveyor](https://www.appveyor.com) and the gets published to the [staging MyGet feed](https://www.myget.org/gallery/subpointsolutions-staging)
2020

2121
### Planning and feature requiests
2222
We tend to use scrum and weekly iterations, aligning our roadmap with the comnunity using the following channels:
@@ -143,10 +143,9 @@ AssemblyFileVersion: 1.2.15334.1243
143143

144144
#### Support & Issue Resolution
145145

146-
In case you have unexpected issues please contact support on SPMeta2 Yammer or YouTrack:
146+
In case you have unexpected issues please contact support on SPMeta2 Yammer:
147147

148148
* https://www.yammer.com/spmeta2feedback
149-
* https://subpointsolutions.myjetbrains.com/youtrack/issues
150149

151150
<hr />
152151

@@ -230,10 +229,9 @@ AssemblyFileVersion: 1.2.15321.0933
230229

231230
#### Support & Issue Resolution
232231

233-
In case you have unexpected issues please contact support on SPMeta2 Yammer or YouTrack:
232+
In case you have unexpected issues please contact support on SPMeta2 Yammer:
234233

235234
* https://www.yammer.com/spmeta2feedback
236-
* https://subpointsolutions.myjetbrains.com/youtrack/issues
237235

238236
<hr />
239237

@@ -270,10 +268,9 @@ AssemblyFileVersion: 1.2.15306.0935
270268

271269
#### Support & Issue Resolution
272270

273-
In case you have unexpected issues please contact support on SPMeta2 Yammer or YouTrack:
271+
In case you have unexpected issues please contact support on SPMeta2 Yammer:
274272

275273
* https://www.yammer.com/spmeta2feedback
276-
* https://subpointsolutions.myjetbrains.com/youtrack/issues
277274

278275
<hr />
279276

@@ -334,10 +331,9 @@ AssemblyFileVersion: 1.2.15301.0536
334331

335332
#### Support & Issue Resolution
336333

337-
In case you have unexpected issues please contact support on SPMeta2 Yammer or YouTrack:
334+
In case you have unexpected issues please contact support on SPMeta2 Yammer:
338335

339336
* https://www.yammer.com/spmeta2feedback
340-
* https://subpointsolutions.myjetbrains.com/youtrack/issues
341337

342338
<hr />
343339

@@ -492,9 +488,8 @@ The following information aims to provide an overview on assembly related change
492488

493489
Please review it carefully, consider that depending on your solution and API usage additional effort might be required to get updated to v1.2.XXX. Once updated, make sure your solution can be compiled without errors, then give a few rounds of provision.
494490

495-
In case you have unexpected issues please contact support on SPMeta2 Yammer or YouTrack:
491+
In case you have unexpected issues please contact support on SPMeta2 Yammer:
496492
* https://www.yammer.com/spmeta2feedback
497-
* https://subpointsolutions.myjetbrains.com/youtrack/issues
498493

499494
AssemblyFileVersion - 1.2.15265.2146
500495

@@ -527,9 +522,8 @@ Current test coverage is split into three major categories:
527522
* Scenario based definition provision - manually written provision to cover various real word provision scenarios. Validation process is the same - deploy several times, check, changes, deploy and check again.
528523

529524
#### Support & Issue Resolution
530-
In case you have unexpected issues please contact support on SPMeta2 Yammer or YouTrack:
525+
In case you have unexpected issues please contact support on SPMeta2 Yammer:
531526
* https://www.yammer.com/spmeta2feedback
532-
* https://subpointsolutions.myjetbrains.com/youtrack/issues
533527

534528
<hr />
535529

tests/run-broken-link-checker.js

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,20 @@ const colors = require('colors');
55
const siteUrl = process.env.SITE_URL || "http://localhost:3000";
66
const reportStep = parseInt(process.env.REPORT_STEP) || 1000;
77

8+
const showInternal = process.env.SHOW_INTERNAL_RESULTS == '1';
9+
const showExternal = (process.env.SHOW_EXTERNAL_RESULTS || "1") == '1';
10+
811
var options = {
912
excludedKeywords: [
1013
'linkedin',
14+
'twitter.com',
15+
'www.netlify.com',
16+
'https://docusaurus.io',
17+
'https://www.yammer.com/spmeta2feedback',
18+
'http://subpointsolutions.com',
19+
'appveyor.com',
20+
'myget.org',
21+
1122
'https://github.com/SubPointSolutions/subpointsolutions-docs',
1223

1324
// external links
@@ -32,8 +43,14 @@ var options = {
3243
'1stquad.com',
3344
'hersheytech.com',
3445
'blogs.msdn.com',
35-
'hekstra.org'
36-
46+
'hekstra.org',
47+
'http://www.boostsolutions.com',
48+
'msdn.microsoft.com',
49+
50+
// external links
51+
'https://github.com/SubPointSolutions/spmeta2/issues',
52+
'https://github.com/SubPointSolutions',
53+
'https://medium.com/@SubPointSocial',
3754
]
3855
}
3956

@@ -45,21 +62,34 @@ var linksCount = 0;
4562
var siteChecker = new blc.SiteChecker(options, {
4663
link: function(result, customData){
4764
var broken = result.broken;
48-
65+
4966
var base = result.base.resolved;
5067
var target = result.url.resolved
5168

69+
var brokenFlag = result.broken == true ? "[-]" : "[+]";
70+
var internalFlag = result.internal == true ? "[in]" : "[ex]";
71+
5272
if(broken == true) {
5373
failResults.push(result);
5474

5575
console.log( base.yellow);
56-
console.log( ("[-] " +target).yellow );
76+
console.log( (`${brokenFlag} ${internalFlag} ` + target).red );
5777
// console.log( result.http );
5878
} else {
5979
validResults.push(result);
6080

61-
// console.log(base.green);
62-
// console.log( ("[+] " + target).green);
81+
if(result.internal) {
82+
if(showInternal) {
83+
console.log(base.yellow);
84+
console.log( (`${brokenFlag} ${internalFlag} ` + target).green);
85+
}
86+
} else {
87+
if(showExternal)
88+
{
89+
console.log(base.yellow);
90+
console.log( (`${brokenFlag} ${internalFlag} ` + target).blue);
91+
}
92+
}
6393
}
6494

6595
if(linksCount > 0 && linksCount % reportStep == 0) {

0 commit comments

Comments
 (0)