-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit from gatsby: (https://github.com/netlify-templates/gat…
- Loading branch information
0 parents
commit 9a5c221
Showing
78 changed files
with
23,464 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 1 | ||
|
||
update_configs: | ||
- package_manager: javascript | ||
directory: / | ||
update_schedule: live | ||
allowed_updates: | ||
- match: | ||
update_type: security | ||
automerged_updates: | ||
- match: | ||
dependency_type: all | ||
update_type: in_range | ||
version_requirement_updates: widen_ranges |
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,50 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
--- | ||
|
||
<!-- Please don't delete this template because we'll close your issue --> | ||
<!-- Before creating an issue please make sure you are using the latest version of the starter. --> | ||
<!-- This project is starter project using Gatsby and NetlifyCMS in it, if you think the issue can originate from upstream then please report it--> | ||
# Bug report | ||
|
||
<!-- Please ask questions on Spectrum for Gatsby questions or the Gitter channel for NetlifyCMS. --> | ||
<!-- https://spectrum.chat/?t=da07ec65-96f9-41be-baf0-0271b5b772ef --> | ||
<!-- https://gitter.im/netlify/NetlifyCMS --> | ||
<!-- Issues which contain questions or support requests will be closed. --> | ||
|
||
**What is the current behavior?** | ||
|
||
|
||
**If the current behavior is a bug, please provide the steps to reproduce.** | ||
|
||
|
||
<!-- A great way to do this is to provide your configuration via a GitHub repository --> | ||
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce --> | ||
<!-- Please only add small code snippets directly into this issue --> | ||
<!-- https://gist.github.com is a good place for longer code snippets --> | ||
<!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead --> | ||
|
||
**What is the expected behavior?** | ||
|
||
|
||
<!-- "It should work" is not a helpful explanation --> | ||
<!-- Explain exactly how it should behave --> | ||
|
||
**Other relevant information:** | ||
|
||
<!--Run `gatsby info --clipboard` in your project directory and paste the output here. Not working? You may need to update your global gatsby-cli - `npm install -g gatsby-cli` --> | ||
|
||
Node.js version: | ||
NPM/Yarn version | ||
Operating System: | ||
Additional tools: |
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,18 @@ | ||
--- | ||
name: Custom issue template | ||
about: Describe this issue template's purpose here. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
--- | ||
name: Other | ||
about: Something else | ||
|
||
--- | ||
|
||
<!-- Bug reports and Feature requests must use other templates, or will be closed --> | ||
<!-- Please ask questions on the NetlifyCMS Gitter channel (https://gitter.im/netlify/NetlifyCMS). --> | ||
<!-- Issues which contain questions or support requests will be closed. --> |
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,36 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
<!-- Please don't delete this template or we'll close your issue --> | ||
|
||
## Feature request | ||
|
||
<!-- Issues which contain questions or support requests will be closed. --> | ||
<!-- Before creating an issue please make sure you are using the latest version of webpack. --> | ||
<!-- Check if this feature need to be implemented in a plugin or loader instead --> | ||
<!-- If yes: file the issue on the plugin/loader repo --> | ||
<!-- Features related to the development server should be filed on this repo instead --> | ||
|
||
**What is the expected behavior?** | ||
|
||
|
||
**What is motivation or use case for adding/changing the behavior?** | ||
|
||
|
||
**How should this be implemented in your opinion?** | ||
|
||
|
||
**Are you willing to work on this yourself?** | ||
yes |
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,9 @@ | ||
# Project dependencies | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
.cache/ | ||
# Build directory | ||
public/ | ||
static/admin/*.bundle.* | ||
.DS_Store | ||
yarn-error.log |
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,76 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, gender identity and expression, | ||
level of experience, education, socio-economic status, nationality, personal | ||
appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
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,103 @@ | ||
# CONTRIBUTING | ||
|
||
Contributions are always welcome, no matter how large or small. Before contributing, | ||
please read the [code of conduct](CODE_OF_CONDUCT.md). | ||
|
||
## Setup | ||
|
||
> Install yarn on your system: [https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) | ||
### Install dependencies | ||
|
||
> Only required on the first run, subsequent runs can use `yarn` to both | ||
bootstrap and run the development server using `yarn develop`. | ||
Since this starter using the [netlify-dev](https://www.netlify.com/products/dev/#how-it-works), there could be further issues you, please check the [netlify-dev](https://github.com/netlify/netlify-dev) repository for further information and set up questions. | ||
|
||
```sh | ||
$ git clone https://github.com/netlify-templates/gatsby-starter-netlify-cms | ||
$ yarn | ||
``` | ||
|
||
## Available scripts | ||
|
||
|
||
### `build` | ||
|
||
Build the static files into the `public` folder, turns lambda functions into a deployable form. | ||
|
||
#### Usage | ||
|
||
```sh | ||
$ yarn build | ||
``` | ||
|
||
### `clean` | ||
|
||
Runs `gatsby clean` command. | ||
|
||
#### Usage | ||
|
||
```sh | ||
yarn clean | ||
``` | ||
|
||
### `netlify dev` | ||
|
||
Starts the netlify dev environment, including the gatsby dev environment. | ||
For more infor check the [Netlify Dev Docs](https://github.com/netlify/cli/blob/master/docs/netlify-dev.md) | ||
|
||
```sh | ||
netlify dev | ||
``` | ||
|
||
### `develop` or `start` | ||
|
||
Runs the `clean` script and starts the gatsby develop server using the command `gatsby develop`. We recomend using this command when you don't need Netlify specific features | ||
|
||
#### Usage | ||
|
||
```sh | ||
yarn develop | ||
``` | ||
### `test` | ||
|
||
Not implmented yet | ||
|
||
#### Usage | ||
|
||
```sh | ||
yarn test | ||
``` | ||
|
||
### `format` | ||
|
||
Formats code and docs according to our style guidelines using `prettier` | ||
|
||
#### Usage | ||
|
||
```sh | ||
yarn format | ||
``` | ||
|
||
|
||
## Pull Requests | ||
|
||
We actively welcome your pull requests! | ||
|
||
If you need help with Git or our workflow, please ask on [Gitter.im](https://gitter.im/netlify/NetlifyCMS). We want your contributions even if you're just learning Git. Our maintainers are happy to help! | ||
|
||
Netlify CMS uses the [Forking Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow) + [Feature Branches](https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow). Additionally, PR's should be [rebased](https://www.atlassian.com/git/tutorials/merging-vs-rebasing) on master when opened, and again before merging. | ||
|
||
1. Fork the repo. | ||
2. Create a branch from `master`. If you're addressing a specific issue, prefix your branch name with the issue number. | ||
2. If you've added code that should be tested, add tests. | ||
3. If you've changed APIs, update the documentation. | ||
4. Run `yarn test` and ensure the test suite passes. (Not applicable yet) | ||
5. Use `yarn format` to format and lint your code. | ||
6. PR's must be rebased before merge (feel free to ask for help). | ||
7. PR should be reviewed by two maintainers prior to merging. | ||
|
||
## License | ||
|
||
By contributing to the Gatsby - Netlify CMS starter, you agree that your contributions will be licensed | ||
under its [MIT license](LICENSE). |
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,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 gatsbyjs | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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,19 @@ | ||
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> | ||
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> | ||
<!-- Try to link to an open issue for more information. --> | ||
|
||
|
||
<!-- In addition to that please answer these questions: --> | ||
|
||
**What kind of change does this PR introduce?** | ||
|
||
<!-- E.g. a bugfix, feature, refactoring, build related change, etc… --> | ||
|
||
**Does this PR introduce a breaking change?** | ||
|
||
<!-- If this PR introduces a breaking change, please describe the impact and a migration path for existing applications. --> | ||
|
||
**What needs to be documented once your changes are merged?** | ||
|
||
<!-- List all the information that needs to be added to the documentation after merge --> | ||
<!-- When your changes are merged you will be asked to contribute this to the documentation --> |
Oops, something went wrong.