Gathering detailed insights and metrics for create-gatsby-web
Gathering detailed insights and metrics for create-gatsby-web
Gathering detailed insights and metrics for create-gatsby-web
Gathering detailed insights and metrics for create-gatsby-web
npm install create-gatsby-web
Typescript
Module System
Node Version
NPM Version
JavaScript (42.59%)
CSS (30.81%)
Shell (15.37%)
TypeScript (11.22%)
Total Downloads
2,991
Last Day
2
Last Week
6
Last Month
59
Last Year
365
10 Stars
43 Commits
5 Forks
3 Watching
62 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.2
Package Id
create-gatsby-web@2.0.2
Unpacked Size
5.20 MB
Size
1.72 MB
File Count
111
NPM Version
6.14.4
Node Version
13.3.0
Cumulative downloads
Total Downloads
Last day
-50%
2
Compared to previous day
Last week
-62.5%
6
Compared to previous week
Last month
293.3%
59
Compared to previous month
Last year
-21.3%
365
Compared to previous year
Bootstrap a Gatsby Web with pre configured development utilities, SEO optimized, ready support for CI/CD pipeline and CMS.
Create Gatsby Web works on macOS, Windows, and Linux.
If something doesn’t work, please file an issue.
If you have questions or need help, please email me at hoangtri241097@gmail.com.
1npx create-gatsby-web 2cd <your-project-name> 3npm run develop/ yarn develop
If you've previously installed create-gatsby-web
globally via npm install -g create-gatsby-web
, we recommend you uninstall the package using npm uninstall -g create-gatsby-web
to ensure that npx always uses the latest version.
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
Your site is now running at http://localhost:8000
!
Note: You'll also see a second link: http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
When you’re ready to deploy to production, create a minified bundle with npm run build/ yarn build
.
You don’t need to install or configure tools.
They are preconfigured so that you can focus on the code. However, all configuration files are exposed so you can customize them whenever you need.
Create a project, and you’re good to go!
You just need to sign up for services, get access tokens and connect your services and the rest is handle my create-gatsby-web
Integrated with scripts to provide real develop-staging-production experience.
Learn more here
Pre built webhooks support for CMS, you can configure your CMS to call to CircleCI webhooks. CircleCI is already pre configured run CI/CD job if being call by this webhook.
No more broken deployment if client makes a mistake!
Learn more here
You’ll need to have Node 10 or later version on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
To create a new web, you may choose one of the following methods:
1npx create-gatsby-web
(npx is a package runner tool that comes with npm 5.2+ and higher, see instructions for older npm versions)
It will generate the the initial project structure inside the current folder.
├── .circleci
│ └── config.yml
├── .storybook
│ ├── addons.js
│ ├── config.js
│ └── webpack.config.js
├── config
│ └── testing
│ ├── setupTests.js
│ └── __ mocks __
│ ├── file-mock.js
│ ├── gatsby.js
│ └── styleMock.js
├── node_modules
├── src
│ ├── images
│ ├── pages
│ │ ├── index.jsx/tsx
│ │ └── your_page
│ │ └── index.jsx/tsx
│ └── components
│ ├── seo
│ │ └── index.jsx/tsx
│ └── < your component >
│ ├── index.jsx/tsx
│ ├── __ stories __
│ │ └── your_component.stories.jsx/tsx
│ └── __ tests __
│ └── your_component.test.jsx/tsx
├── tasks
│ └── deployment
│ ├── gatsby-deploy-end.sh
│ ├── gatsby-deploy-start.sh
│ ├── storybook-deploy-end.sh
│ └── storybook-deploy-start.sh
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── .huskyrc.json
├── .lintstagedrc.json
├── .lighthouserc.json
├── .prettierignore
├── .prettierrc
├── gatsby-browser.js
├── gatsby-config.js
├── gatsby-node.js
├── gatsby-ssr.js
├── jest-preprocess.js
├── jest.config.js
├── LICENSE
├── loadershim.js
├── README.md
├── package.json
├── tsconfig.json -- only available on typescript template
└── yarn.lock/package-lock.json
./circleci
: This directory contains CircleCI configuration file. Note that there are 4 type of jobs: preview-staging-release-webhook
.storybook/
: This directory contains all the configuration files for Storybook.
./config/testing
: This directory contains all the MOCK configuration files for Jest testing.
./node_modules
: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
./src
: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. src
is a convention for “source code”.
.eslintignore
: This file tells eslint which files it should not track.
.eslintrc.js
: Eslint configuration file.
.gitignore
: This file tells git which files it should not track / not maintain a version history for.
.huskyrc.json
: Husky configuration file. Already setup with a pre git commit hooks.
.lintstagedrc.json
: Lint-staged configuration file. Already setup to auto lint and format code before commit.
.lighthouserc.json
: Lighthouse configuration file. You can adjust passing parameters here. Already configured with optimum parameters.
.prettierignore
: This file tells prettier which files it should not track.
.prettierrc
: This is a configuration file for Prettier. Prettier is a tool to help keep the formatting of your code consistent.
gatsby-browser.js
: This file is where Gatsby expects to find any usage of the Gatsby browser APIs (if any). These allow customization/extension of default Gatsby settings affecting the browser.
gatsby-config.js
: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the config docs for more detail). SEO component already preconfigure, only production deployment will get index by Google bots all preview and staging will have noindex meta tag.
gatsby-node.js
: This file is where Gatsby expects to find any usage of the Gatsby Node APIs (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
gatsby-ssr.js
: This file is where Gatsby expects to find any usage of the Gatsby server-side rendering APIs (if any). These allow customization of default Gatsby settings affecting server-side rendering. Preconfigured to convert stylesheet inline to link, preventing too long head which prevent Facebook, Twitter ... scraping data.
jest-preprocess.js
: This file contains babel options to build gatsby project for Jest testing
jest.config.js
: This file contains all of Jest configurations.
LICENSE
: This boilerplate is licensed under the MIT license.
loadershim.js
: This files contains loader setting for Jest.
package.json
: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
README.md
: A text file containing useful reference information about your project.
tsconfig.json
: This file contains all of typescript configurations for type checking.
yarn.lock/package-lock.json
(See package.json
below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You won’t change this file directly).
All configurations are exposed and predefined folder structures, just write codes, no need to config
Once the installation is done, you can start develop right away!
Inside the newly created project, you can run some built-in commands:
npm run develop
or yarn develop
Runs the app in development mode.
Your site is now running at http://localhost:8000
!
Note: You'll also see a second link: http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.
npm run build
or yarn build
Builds the app for production to the public
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed.
npm run storybook
or yarn storybook
Runs storybook in development mode.
Storybook live at http://localhost:6006
!
npm run test
or yarn test
Run all of your test.
npm run test:watch
or yarn test:watch
Runs the test watcher in an interactive mode.
Video tutorial In-progress
Prerequisites
GITHUB_DEPLOYMENTS_TOKEN=<the-token>
.NETLIFY_ACCESS_TOKEN=<the-token>
. This is your staging website.NETLIFY_CLIENT_ACCESS_TOKEN=<the-token>
. This is your production website.How to
LHCI_GITHUB_APP_TOKEN=<the-TOKEN>
.yarn build/ npm run build
, you will get Gatsby built public folder in the root directory.yarn build-storybook/ npm run build-storybook
, you will get Storybook built build-storybook folder in the root directory.NETLIFY_SITE_ID_STAGING=<the-API-ID >
.NETLIFY_SITE_ID_STORYBOOK=<the-API-ID >
.NETLIFY_SITE_ID_RELEASE=<the-API-ID >
.
Video tutorial In-progress
Prerequisites
CIRCLE-TOKEN=<the-token>
.CONTENTFUL_SPACE_ID=<the-Space-ID>
CONTENTFUL_ACCESS_TOKEN=<the-Content-Delivery-API-access token>
How to (example with Contentful - similar to other CMS)
CONTENTFUL_SPACE_ID=<the-Space-ID>
CONTENTFUL_ACCESS_TOKEN=<the-Content-Delivery-API-access token>
yarn add gatsby-source-contentful / npm install --save gatsby-source-contentful
/***** REMOVE COMMENT TO ENABLE CONTENTFUL CMS
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
******/
Webhook for staging website
Trigger CircleCi Build Develop Branch
https://circleci.com/api/v2/project/github/<org-name-or-your-account-name>/<repo-name>/pipeline
Circle-Token
-> Value: <the-token-value>
{
"branch": "develop",
"parameters": {
"trigger": false,
"cms-develop": true
}
}
Webhook for production website
Trigger CircleCi Build Master Branch
https://circleci.com/api/v2/project/github/<org-name-or-your-account-name>/<repo-name>/pipeline
Circle-Token
-> Value: <the-token-value>
{
"branch": "master",
"parameters": {
"trigger": false,
"cms-master": true
}
}
All exposed: All configurations are exposed. You have total control of your project settings.
No Configuration Required: You don't need to configure anything. A reasonably good configuration of both development and production builds are handled for you, so you can focus on writing code.
CI/CD pipeline ready: You can setup your own CI/CD pipeline with just a few steps.
CMS support Pre built webhooks support made CMS integration easy.
Your environment will have everything you need to build a modern Gatsby web:
-webkit-
or other prefixes.The tradeoff is that these are a lot of configuration files. But they are all pre-configured and we have a detail explaination here
We'd love to have your helping hand on create-gatsby-web
! See CONTRIBUTING.md for more information on what we're looking for and how to get started.
This project exists thanks to all the people who contribute.
Create Gatsby Web is open source software licensed as MIT.
No vulnerabilities found.
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/25 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
185 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Morecreate-ueno-app
The easiest and fastest way to create new web projects with next, gatsby, create-react-app and mobile projects with react-native.
mid-tinker-cli
The easiest and fastest way to create new web projects with @invoker-next, @invoker-gatsby, and @invoker-crapp
invoker-ignite
The easiest and fastest way to create new web projects with @invoker/ssr, @invoker/gatsby, and @invoker/csr
meridian-tinker-cli
The easiest and fastest way to create new web projects with @invoker/ssr, @invoker/gatsby, and @invoker/csr