Skip to content

Commit

Permalink
Fix yaml and move task implementation into sub-directory
Browse files Browse the repository at this point in the history
Having custom taks in dedicated directories might be the more common approach
  • Loading branch information
RandomByte committed Mar 27, 2019
1 parent e74b8b3 commit 56aa167
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rfcs/0004-simple-build-extensibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ type: task
metadata:
name: generateMarkdownFiles
task:
path: generateMarkdownFiles.js
path: lib/tasks/generateMarkdownFiles.js
```

**`generateMarkdownFiles.js`**:
**`lib/tasks/generateMarkdownFiles.js`**:
```js
const markdownGenerator = require("./markdownGenerator");
Expand Down Expand Up @@ -105,14 +105,14 @@ builder:
afterTask: uglify
configuration:
color: blue
----
---
specVersion: "0.1"
kind: extension
type: task
metadata:
name: generateMarkdownFiles
task:
path: generateMarkdownFiles.js
path: lib/tasks/generateMarkdownFiles.js
```

In this case the extension is no dependency of any kind but automatically collected and processed with the processing of the project.
Expand Down

0 comments on commit 56aa167

Please sign in to comment.