-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Chore: Test on Windows and macOS * Fix: npm prepare script on Windows (refs #166) The previous script worked on macOS and Linux, but I neglected to consider Windows. This wouldn't affect users thankfully, only developers, so the blast radius would have been small had it not been caught. Now that we're testing on Windows, future bugs like this should be caught. I'm out of ideas for doing this entirely inside npm scripts, so I broke down and did it in JS. * Chore: Increase test timeout for Windows and macOS runners They occasionally exhibit extremely slow filesystem performance. * Add npm-prepare script JSDoc header
- Loading branch information
Showing
4 changed files
with
29 additions
and
3 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,20 @@ | ||
/** | ||
* @fileoverview Install examples' dependencies as part of local npm install for | ||
* development and CI. | ||
* @author btmills | ||
*/ | ||
|
||
"use strict"; | ||
|
||
const childProcess = require("child_process"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
const examplesDir = path.resolve(__dirname, "examples"); | ||
const examples = fs.readdirSync(examplesDir); | ||
|
||
for (const example of examples) { | ||
childProcess.execSync("npm install", { | ||
cwd: path.resolve(examplesDir, example) | ||
}); | ||
} |
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