Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/react-native-windows-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Alternatives considered:
* T4: This would have required visual studio to be installed on the users machine and therefore only work on Windows. There were also some perf concerns and we would have to write and ship a standalone executable for the MSBuild tasks so we can call it from JavaScript.

### Quick mustache tutorial:
For proper docs see the [manual](http://mustache.github.io/mustache.5.html) of [mustache](http://mustache.github.io/)
For proper docs see the [manual](https://mustache.github.io/mustache.5.html) of [mustache](https://mustache.github.io/)
But in short:
You run `mustache` via `const text = mustache.render(inputText, obj);` where obj is a regular JavaScript object.
For example:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"husky": "^4.2.5",
"prettier-plugin-hermes-parser": "0.21.1",
"react-native-platform-override": "0.0.0-canary.1017",
"unbroken": "1.0.27",
"@rnw-scripts/unbroken": "*",
"lage": "^2.7.1",
"lodash": "^4.17.15"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/@rnw-scripts/unbroken/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
extends: ['@rnw-scripts'],
parserOptions: {tsconfigRootDir : __dirname},
};
2 changes: 2 additions & 0 deletions packages/@rnw-scripts/unbroken/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib/
lib-commonjs/
2 changes: 2 additions & 0 deletions packages/@rnw-scripts/unbroken/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib-commonjs
bin.js
22 changes: 22 additions & 0 deletions packages/@rnw-scripts/unbroken/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2020-2022 Alexander Sklar
Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
12 changes: 12 additions & 0 deletions packages/@rnw-scripts/unbroken/bin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env node

/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Forked from https://github.com/asklar/unbroken
* Original Copyright (c) 2020-2022 Alexander Sklar
*/

process.setSourceMapsEnabled(true);
require('./lib-commonjs/unbroken');
44 changes: 44 additions & 0 deletions packages/@rnw-scripts/unbroken/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@rnw-scripts/unbroken",
"version": "0.0.1",
"private": true,
"description": "Detect broken links in markdown files. Forked from https://github.com/asklar/unbroken",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/react-native-windows",
"directory": "packages/@rnw-scripts/unbroken"
},
"scripts": {
"build": "rnw-scripts build",
"clean": "rnw-scripts clean",
"lint": "rnw-scripts lint",
"lint:fix": "rnw-scripts lint:fix",
"watch": "rnw-scripts watch"
},
"main": "lib-commonjs/unbroken.js",
"bin": {
"unbroken": "./bin.js"
},
"dependencies": {
"@react-native-windows/fs": "^0.0.0-canary.70"
},
"devDependencies": {
"@rnw-scripts/eslint-config": "1.2.38",
"@rnw-scripts/just-task": "2.3.58",
"@rnw-scripts/ts-config": "2.0.6",
"@types/node": "^22.14.0",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"eslint": "^8.19.0",
"prettier": "^3.0.0",
"typescript": "5.0.4"
},
"files": [
"bin.js",
"lib-commonjs"
],
"engines": {
"node": ">= 22"
}
}
Loading
Loading