Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
George Cook committed Apr 25, 2019
1 parent 2fdf84f commit 0fc3fc0
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,27 +83,14 @@ The following working gulpfile can be found in my [roku MVVM spike](https://gith

- `npm install rooibos-preprocessor --save-dev`
- Add the following to the top of gulpfile.ts `import { RooibosProcessor } from "rooibos-preprocessor";`
- Create a task to process your files, with the desired regex replacements, such as:
- Create a task to process your test files, such as:

```
export function addDevLogs(cb) {
let config: BurpConfig = {
"sourcePath": "build/.roku-deploy-staging",
// "sourcePath": "build/wtf",
"globPattern": "**/*.brs",
"replacements": [
{
"regex": "(^.*(logInfo|logError|logVerbose|logDebug)\\((\\s*\"))",
"replacement": "$1#FullPath# "
},
{
"regex": "(^.*(logMethod)\\((\\s*\"))",
"replacement": "$1#FullPath# "
}
]
}
const processor = new BurpProcessor(config);
export async function prepareTests(cb) {
await rokuDeploy.prepublishToStaging(args);
let processor = new RooibosProcessor('build/.roku-deploy-staging/source/tests', 'build/.roku-deploy-staging', 'build/.roku-deploy-staging/source/tests');
processor.processFiles();
cb();
}
```
Expand Down

0 comments on commit 0fc3fc0

Please sign in to comment.