Home - hdknr/gatsby-home GitHub Wiki

Welcome to the gatsby-home wiki!

node

% node -v
v14.5.0

Install

% npm install -g gatsby-cli
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
/Users/hdknr/.anyenv/envs/nodenv/versions/14.5.0/bin/gatsby -> /Users/hdknr/.anyenv/envs/nodenv/versions/14.5.0/lib/node_modules/gatsby-cli/cli.js

> [email protected] postinstall /Users/hdknr/.anyenv/envs/nodenv/versions/14.5.0/lib/node_modules/gatsby-cli/node_modules/gatsby-telemetry
> node src/postinstall.js || true


> [email protected] postinstall /Users/hdknr/.anyenv/envs/nodenv/versions/14.5.0/lib/node_modules/gatsby-cli
> node scripts/postinstall.js

Success!

Welcome to the Gatsby CLI! Please visit https://www.gatsbyjs.org/docs/gatsby-cli/ for more information.

npm WARN [email protected] requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.

+ [email protected]
updated 19 packages in 21.314s

New

% npx gatsby new gatsby-home https://github.com/gatsbyjs/gatsby-starter-hello-world
info Creating new site from git: https://github.com/gatsbyjs/gatsby-starter-hello-world.git
Cloning into 'gatsby-home'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 16 (delta 0), reused 9 (delta 0), pack-reused 0
Unpacking objects: 100% (16/16), 360.79 KiB | 658.00 KiB/s, done.
success Created starter directory layout
info Installing packages...
✔ Which package manager would you like to use ? › npm
info Preferred package manager set to "npm"

> [email protected] install /Users/hdknr/Documents/Dropbox/Projects/sample/gatsby-home/node_modules/fsevents
> node install.js

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> [email protected] postinstall /Users/hdknr/Documents/Dropbox/Projects/sample/gatsby-home/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall /Users/hdknr/Documents/Dropbox/Projects/sample/gatsby-home/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall /Users/hdknr/Documents/Dropbox/Projects/sample/gatsby-home/node_modules/gatsby-telemetry
> node src/postinstall.js || true


> [email protected] postinstall /Users/hdknr/Documents/Dropbox/Projects/sample/gatsby-home/node_modules/gatsby/node_modules/gatsby-cli
> node scripts/postinstall.js


> [email protected] postinstall /Users/hdknr/Documents/Dropbox/Projects/sample/gatsby-home/node_modules/gatsby
> node scripts/postinstall.js

added 1885 packages from 988 contributors and audited 1887 packages in 23.515s

134 packages are looking for funding
  run `npm fund` for details

found 651 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
info Initialising git in gatsby-home
Initialized empty Git repository in /Users/hdknr/Documents/Dropbox/Projects/sample/gatsby-home/.git/
info Create initial git commit in gatsby-home
info
Your new Gatsby site has been successfully bootstrapped. Start developing it by running:

  cd gatsby-home
  gatsby develop

structure:

% tree -I "node_modules" 
.
├── LICENSE
├── README.md
├── gatsby-config.js
├── package-lock.json
├── package.json
├── public
│   ├── favicon.ico
│   ├── index.html
│   ├── page-data
│   │   ├── dev-404-page
│   │   │   └── page-data.json
│   │   └── index
│   │       └── page-data.json
│   └── static
├── src
│   └── pages
│       └── index.js
└── static
    └── favicon.ico

8 directories, 11 files

Develop

% gatsby develop
success open and validate gatsby-configs - 0.014s
success load plugins - 0.032s
success onPreInit - 0.003s
success initialize cache - 0.007s
success copy gatsby files - 0.043s
success onPreBootstrap - 0.013s
success createSchemaCustomization - 0.005s
success source and transform nodes - 0.017s
success building schema - 0.121s
success createPages - 0.002s
success createPagesStatefully - 0.041s
success updating schema - 0.018s
success onPreExtractQueries - 0.002s
success extract queries from components - 0.063s
success write out redirect data - 0.003s
success onPostBootstrap - 0.001s
info bootstrap finished - 2.389s
success run page queries - 0.022s - 2/2 89.00/s
success write out requires - 0.004s
⠀
You can now view gatsby-starter-hello-world in the browser.
⠀
  http://localhost:8000/
⠀
View GraphiQL, an in-browser IDE, to explore your site's data and schema
⠀
  http://localhost:8000/___graphql
⠀
Note that the development build is not optimized.
To create a production build, use gatsby build
⠀
success Building development bundle - 3.190s
success Re-building development bundle - 0.036s