funkophile 0.0.23 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/dist/esm/index.js +3 -4
- package/index.ts +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
The _func_ tional _file_ processor.
|
|
4
4
|
|
|
5
|
-
### About
|
|
6
5
|
#### *What* is Funkophile?
|
|
7
6
|
|
|
8
|
-
Funkophile is a build tool that inputs files, processes them, and then outputs them. Optionally, it can watch those files for changes, and updating the output files very efficiently. No plugins are needed because what once was configuration is now code- EVERYTHING is done in redux selectors.
|
|
7
|
+
Funkophile is a build tool that inputs files, processes them, and then outputs them. Optionally, it can watch those files for changes, and updating the output files very efficiently. No plugins are needed because what once was configuration is now code- EVERYTHING is done in redux selectors.
|
|
9
8
|
|
|
10
9
|
#### What is Funkophile *not*?
|
|
11
10
|
|
|
@@ -16,7 +15,7 @@ Funkophile is a build tool that inputs files, processes them, and then outputs t
|
|
|
16
15
|
|
|
17
16
|
#### *Why* is Funkophile **awesome**?
|
|
18
17
|
|
|
19
|
-
Funkophile is a functional file processor. It lets you manipulate files in a
|
|
18
|
+
Funkophile is a functional file processor. It lets you manipulate files in a functionally - using redux selectors- and it does so efficiently- using promises. **It lets you focus on the logic of your selectors and disregard the processing of files**. You setup in some files to read, some files to write, and some selectors filled with easily testable logic- Funkophile will handle the borings parts for you! When you first start Funkophile, it will process every file. Subsequent changes to an input file will run through your selectors and automatically update _only_ the dependent output files. It just works! (tm)
|
|
20
19
|
|
|
21
20
|
#### What Funkophile *can do*
|
|
22
21
|
|
package/dist/esm/index.js
CHANGED
|
@@ -7,7 +7,6 @@ import { glob } from "glob";
|
|
|
7
7
|
import path from "path";
|
|
8
8
|
import Promise from "bluebird";
|
|
9
9
|
export default (funkophileConfig) => {
|
|
10
|
-
// if (funkophileConfig.mode)
|
|
11
10
|
Promise.config({
|
|
12
11
|
cancellation: true,
|
|
13
12
|
});
|
|
@@ -145,11 +144,11 @@ export default (funkophileConfig) => {
|
|
|
145
144
|
})
|
|
146
145
|
.on("add", (p) => {
|
|
147
146
|
logger.watchAdd(p);
|
|
148
|
-
dispatchUpsert(store, inputRuleKey,
|
|
147
|
+
dispatchUpsert(store, inputRuleKey, p, funkophileConfig.encodings);
|
|
149
148
|
})
|
|
150
149
|
.on("change", (p) => {
|
|
151
150
|
logger.watchChange(p);
|
|
152
|
-
dispatchUpsert(store, inputRuleKey,
|
|
151
|
+
dispatchUpsert(store, inputRuleKey, p, funkophileConfig.encodings);
|
|
153
152
|
})
|
|
154
153
|
.on("unlink", (p) => {
|
|
155
154
|
logger.watchUnlink(p);
|
|
@@ -157,7 +156,7 @@ export default (funkophileConfig) => {
|
|
|
157
156
|
type: REMOVE,
|
|
158
157
|
payload: {
|
|
159
158
|
key: inputRuleKey,
|
|
160
|
-
file:
|
|
159
|
+
file: p,
|
|
161
160
|
},
|
|
162
161
|
});
|
|
163
162
|
})
|
package/index.ts
CHANGED
|
@@ -19,7 +19,6 @@ export default (funkophileConfig: {
|
|
|
19
19
|
outputs: (x: any) => any;
|
|
20
20
|
}) => {
|
|
21
21
|
|
|
22
|
-
// if (funkophileConfig.mode)
|
|
23
22
|
Promise.config({
|
|
24
23
|
cancellation: true,
|
|
25
24
|
});
|
|
@@ -211,7 +210,7 @@ export default (funkophileConfig: {
|
|
|
211
210
|
dispatchUpsert(
|
|
212
211
|
store,
|
|
213
212
|
inputRuleKey,
|
|
214
|
-
|
|
213
|
+
p,
|
|
215
214
|
funkophileConfig.encodings
|
|
216
215
|
);
|
|
217
216
|
})
|
|
@@ -220,7 +219,7 @@ export default (funkophileConfig: {
|
|
|
220
219
|
dispatchUpsert(
|
|
221
220
|
store,
|
|
222
221
|
inputRuleKey,
|
|
223
|
-
|
|
222
|
+
p,
|
|
224
223
|
funkophileConfig.encodings
|
|
225
224
|
);
|
|
226
225
|
})
|
|
@@ -230,7 +229,7 @@ export default (funkophileConfig: {
|
|
|
230
229
|
type: REMOVE,
|
|
231
230
|
payload: {
|
|
232
231
|
key: inputRuleKey,
|
|
233
|
-
file:
|
|
232
|
+
file: p,
|
|
234
233
|
},
|
|
235
234
|
});
|
|
236
235
|
})
|