Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 6475d1a

Browse files
author
Lance McCluskey
committed
chore: Merging with main
2 parents 7643340 + 41c7636 commit 6475d1a

File tree

7 files changed

+2014
-2968
lines changed

7 files changed

+2014
-2968
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
run: npm run test-ci
3333

3434
- name: Upload coverage to Codecov
35-
uses: codecov/codecov-action@v2.0.3
35+
uses: codecov/codecov-action@v2.1.0

package-lock.json

Lines changed: 1963 additions & 2939 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@mdx-js/react": "^1.6.22",
1010
"@popperjs/core": "^2.9.3",
1111
"@storybook/addon-actions": "^6.3.8",
12-
"@storybook/addon-links": "^6.3.7",
12+
"@storybook/addon-links": "^6.3.8",
1313
"@storybook/addons": "^6.3.8",
1414
"@storybook/builder-webpack5": "^6.3.5",
1515
"@storybook/manager-webpack5": "^6.3.4",
@@ -22,30 +22,30 @@
2222
"color-string": "^1.6.0",
2323
"dompurify": "2.3.1",
2424
"dotenv": "^10.0.0",
25-
"gatsby": "^3.12.1",
25+
"gatsby": "^3.13.0",
2626
"gatsby-plugin-canonical-urls": "^3.13.0",
2727
"gatsby-plugin-catch-links": "^3.13.0",
2828
"gatsby-plugin-dark-mode": "^1.1.2",
29-
"gatsby-plugin-manifest": "^3.11.0",
30-
"gatsby-plugin-mdx": "^2.11.0",
29+
"gatsby-plugin-manifest": "^3.13.0",
30+
"gatsby-plugin-mdx": "^2.13.0",
3131
"gatsby-plugin-meta-redirect": "^1.1.1",
32-
"gatsby-plugin-offline": "^4.11.0",
32+
"gatsby-plugin-offline": "^4.13.0",
3333
"gatsby-plugin-react-helmet": "^4.13.0",
3434
"gatsby-plugin-sass": "^4.13.0",
3535
"gatsby-plugin-sharp": "^3.13.0",
3636
"gatsby-plugin-sitemap": "^4.9.0",
37-
"gatsby-plugin-typescript": "^3.11.0",
37+
"gatsby-plugin-typescript": "^3.13.0",
3838
"gatsby-remark-autolink-headers": "^4.10.0",
39-
"gatsby-remark-copy-linked-files": "^4.8.0",
39+
"gatsby-remark-copy-linked-files": "^4.10.0",
4040
"gatsby-remark-images": "^5.10.0",
41-
"gatsby-remark-prismjs": "^5.8.0",
42-
"gatsby-source-filesystem": "^3.11.0",
41+
"gatsby-remark-prismjs": "^5.10.0",
42+
"gatsby-source-filesystem": "^3.13.0",
4343
"gatsby-transformer-remark": "^4.10.0",
4444
"gatsby-transformer-yaml": "^3.13.0",
4545
"highlight.js": "^11.2.0",
4646
"intersection-observer": "^0.12.0",
4747
"moment": "^2.29.1",
48-
"node-fetch": "^2.6.1",
48+
"node-fetch": "^2.6.2",
4949
"prism-react-renderer": "^1.2.1",
5050
"prismjs": "^1.24.0",
5151
"react": "^17.0.2",
@@ -57,7 +57,7 @@
5757
"react-tabs": "3.2.2",
5858
"rrule": "^2.6.8",
5959
"throttle-debounce": "^3.0.1",
60-
"typescript": "4.4.2"
60+
"typescript": "4.4.3"
6161
},
6262
"keywords": [
6363
"gatsby",
@@ -87,12 +87,12 @@
8787
"type-check": "tsc --noEmit"
8888
},
8989
"devDependencies": {
90-
"@babel/core": "^7.15.0",
90+
"@babel/core": "^7.15.5",
9191
"@babel/preset-typescript": "^7.15.0",
9292
"@storybook/semver": "^7.3.2",
93-
"@testing-library/dom": "^8.2.0",
93+
"@testing-library/dom": "^8.5.0",
9494
"@testing-library/jest-dom": "^5.14.1",
95-
"@testing-library/react": "^12.0.0",
95+
"@testing-library/react": "^12.1.0",
9696
"@testing-library/user-event": "^13.2.1",
9797
"@types/classnames": "^2.3.1",
9898
"@types/color": "^3.0.2",
@@ -103,28 +103,28 @@
103103
"@types/react-dom": "^17.0.9",
104104
"@types/react-helmet": "6.1.2",
105105
"@types/throttle-debounce": "^2.1.0",
106-
"@typescript-eslint/eslint-plugin": "^4.29.3",
107-
"@typescript-eslint/parser": "^4.30.0",
108-
"babel-jest": "^27.1.0",
106+
"@typescript-eslint/eslint-plugin": "^4.31.0",
107+
"@typescript-eslint/parser": "^4.31.0",
108+
"babel-jest": "^27.2.0",
109109
"babel-loader": "^8.1.0",
110110
"babel-plugin-remove-graphql-queries": "^3.13.0",
111-
"babel-preset-gatsby": "1.12.0",
111+
"babel-preset-gatsby": "1.13.0",
112112
"eslint": "^7.32.0",
113113
"eslint-config-airbnb": "18.2.1",
114114
"eslint-config-prettier": "^8.3.0",
115-
"eslint-import-resolver-typescript": "2.4.0",
115+
"eslint-import-resolver-typescript": "2.5.0",
116116
"eslint-plugin-import": "^2.24.2",
117117
"eslint-plugin-jsx-a11y": "6.4.1",
118-
"eslint-plugin-prettier": "^3.4.1",
118+
"eslint-plugin-prettier": "^4.0.0",
119119
"eslint-plugin-react": "^7.25.1",
120120
"eslint-plugin-react-hooks": "4.2.0",
121-
"eslint-plugin-testing-library": "^4.12.0",
121+
"eslint-plugin-testing-library": "^4.12.2",
122122
"identity-obj-proxy": "^3.0.0",
123-
"jest": "^27.1.0",
123+
"jest": "^27.2.0",
124124
"jest-fetch-mock": "^3.0.3",
125125
"node-sass": "6.0.1",
126126
"pa11y": "6.0.1",
127-
"prettier": "^2.3.2",
127+
"prettier": "^2.4.0",
128128
"remark-cli": "^10.0.0",
129129
"remark-frontmatter": "^4.0.0",
130130
"remark-preset-lint-node": "^3.0.1",

src/documentation/0007-node-run-cli/index.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Run Node.js scripts from the command line
33
description: 'How to run any Node.js script from the CLI'
4-
authors: flaviocopes, MylesBorins, fhemberger, LaRuaNa, ahmadawais
4+
authors: flaviocopes, MylesBorins, fhemberger, LaRuaNa, ahmadawais, akazyti
55
section: Getting Started
66
category: learn
77
---
@@ -14,4 +14,24 @@ If your main Node.js application file is `app.js`, you can call it by typing:
1414
node app.js
1515
```
1616

17+
Above, you are explicitly telling the shell to run your script with `node`. You can also embed this information into your JavaScript file with a "shebang" line. The "shebang" is the first line in the file, and tells the OS which interpreter to use for running the script. Below is the first line of JavaScript:
18+
19+
```bash
20+
#!/usr/bin/node
21+
```
22+
23+
Above, we are explicitly giving the absolute path of interpreter. Not all operating systems have `node` in the bin folder, but all should have `env`. You can tell the OS to run `env` with node as parameter:
24+
25+
```bash
26+
#!/usr/bin/env node
27+
28+
// your code
29+
```
30+
31+
To use a shebang, your file should have executable permission. You can give `app.js` the executable permission by running:
32+
33+
```bash
34+
chmod u+x app.js
35+
```
36+
1737
While running the command, make sure you are in the same directory which contains the `app.js` file.

src/documentation/0017-where-npm-install-packages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ On Windows it could be `C:\Users\YOU\AppData\Roaming\npm\node_modules`
3838

3939
If you use `nvm` to manage Node.js versions, however, that location would differ.
4040

41-
I for example use `nvm` and my packages location was shown as `/Users/joe/.nvm/versions/node/v8.9.0/lib/node_modules`.
41+
I, for example, use `nvm` and my packages location was shown as `/Users/joe/.nvm/versions/node/v8.9.0/lib/node_modules`.

src/documentation/0052-nodejs-streams/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ then implement `_transform`:
249249

250250
```js
251251
TransformStream._transform = (chunk, encoding, callback) => {
252-
console.log(chunk.toString().toUpperCase());
252+
this.push(chunk.toString().toUpperCase());
253253
callback();
254254
}
255255
```
256256

257257
Pipe readable stream:
258258

259259
```js
260-
process.stdin.pipe(TransformStream);
260+
process.stdin.pipe(TransformStream).pipe(process.stdout);
261261
```

src/styles/learn.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,11 @@
180180
top: 95px;
181181

182182
&.side-nav--open {
183-
max-height: calc(100vh - var(--nav-height));
183+
height: auto;
184+
max-height: calc(100% - var(--nav-height));
184185
overflow: visible;
185186
overflow-y: scroll;
187+
padding-bottom: var(--space-20);
186188
position: fixed;
187189
top: var(--nav-height);
188190
}

0 commit comments

Comments
 (0)