Nick Heiner
Nick Heiner
My package structure is: ``` tsconfig.json packages/ **/*.ts ``` I'd like to only transform the files under `packages`, but I want to use the `tsconfig.json` at the root. However, that...
I've done testing, and found that [Piscina](https://www.npmjs.com/package/piscina) is 30-50x faster than in-process transforming. My codebase is 15k+ files, so the speedup really helps.
When I use `worker_threads` directly, I'm able to set up a bidirectional communication between the parent and workers: ```js // parent.js const { MessageChannel, Worker } = require('worker_threads'); const subChannel...
I'm making [a codemod runner](https://github.com/NickHeiner/jscodemod/) that uses Piscina. The logic currently blasts thousands of files onto the queue at once: ```js function transformFiles() { const piscina = new Piscina({filename: require.resolve('./worker')});...
`startTour()` accepts a `stepNum` argument: ```js this.startTour = function(tour, stepNum) { ``` If the document is not ready, the following code runs: ```js // If document isn't ready, wait for...
I see the from the examples that you can pass a single array of arguments to the solutions to verify them: **setup.js** ``` js function rndint () { return Math.ceil(Math.random()...
I'm trying to integration Foundation for Apps into an existing project, so I don't want to use the cli tools to wire everything together. I'm on the [Installation](http://foundation.zurb.com/apps/docs/#!/installation) page of...
 The indentation is non-existent in the code samples in the [apps docs](http://foundation.zurb.com/apps/docs/). It looks like there's a bug in whatever tool is generating the docs. Cheers!
When I update my project to TS 4.8, I get this error: ``` node_modules/relay-hooks/lib/RelayHooksTypes.d.ts:56:78 - error TS2536: Type '0' cannot be used to index type 'NonNullable'. 56 export declare type...
The deps in `package.json` are reordered by `npm` because I did `npm install --save-dev`. These are just some best practices and general cleanup changes. Let me know if you want...