-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steel Brain
committed
Sep 10, 2018
1 parent
7f6f00c
commit d2acd5c
Showing
6 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src/ | ||
*.flow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "pundle-job-transformer-js-dedupe", | ||
"version": "3.0.0-beta8", | ||
"description": "TODO", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/steelbrain/pundle.git" | ||
}, | ||
"main": "lib/index.js", | ||
"flow:main": "src/index.js", | ||
"scripts": {}, | ||
"dependencies": { | ||
}, | ||
"peerDependencies": { | ||
"pundle-api": "3.0.0-beta8" | ||
}, | ||
"author": "steelbrain", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"pundle-api": "^3.0.0-beta8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// @flow | ||
|
||
import { createJobTransformer } from 'pundle-api' | ||
import { name, version } from '../package.json' | ||
|
||
function createComponent() { | ||
return createJobTransformer({ | ||
name, | ||
version, | ||
callback({ context, worker, job }) { | ||
console.log('dedupe transformer') | ||
return null | ||
}, | ||
}) | ||
} | ||
|
||
module.exports = createComponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters