-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nichlas W. Andersen
committed
Aug 12, 2019
0 parents
commit 1b05511
Showing
19 changed files
with
19,560 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,8 @@ | ||
*.log | ||
.cache | ||
.DS_Store | ||
src/.temp | ||
node_modules | ||
dist | ||
.env | ||
.env.* |
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 @@ | ||
# Default starter for Gridsome | ||
|
||
This is the project you get when you run `gridsome create new-project`. | ||
|
||
### 1. Install Gridsome CLI tool if you don't have | ||
|
||
`npm install --global @gridsome/cli` | ||
|
||
### 2. Create a Gridsome project | ||
|
||
1. `gridsome create my-gridsome-site` to install default starter | ||
2. `cd my-gridsome-site` to open the folder | ||
3. `gridsome develop` to start a local dev server at `http://localhost:8080` | ||
4. Happy coding 🎉🙌 |
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,30 @@ | ||
// This is where project configuration and plugin options are located. | ||
// Learn more: https://gridsome.org/docs/config | ||
|
||
// Changes here require a server restart. | ||
// To restart press CTRL + C in terminal and run `gridsome develop` | ||
|
||
module.exports = { | ||
siteName: 'NWA', | ||
plugins: [ | ||
{ | ||
use: '@gridsome/source-filesystem', | ||
options: { | ||
path: 'projects/**/*.md', | ||
typeName: 'Project', | ||
route: '/:slug' | ||
} | ||
} | ||
], | ||
transformers: { | ||
remark: { | ||
externalLinksTarget: '_blank', | ||
externalLinksRel: ['nofollow', 'noopener', 'noreferrer'], | ||
plugins: [] | ||
} | ||
}, | ||
devServer: { | ||
host: '0.0.0.0', | ||
port: 8080 | ||
} | ||
} |
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,16 @@ | ||
// Server API makes it possible to hook into various parts of Gridsome | ||
// on server-side and add custom data to the GraphQL data layer. | ||
// Learn more: https://gridsome.org/docs/server-api | ||
|
||
// Changes here require a server restart. | ||
// To restart press CTRL + C in terminal and run `gridsome develop` | ||
|
||
module.exports = function (api) { | ||
api.loadSource(({ addContentType }) => { | ||
// Use the Data Store API here: https://gridsome.org/docs/data-store-api | ||
}) | ||
|
||
api.createPages(({ createPage }) => { | ||
// Use the Pages API here: https://gridsome.org/docs/pages-api | ||
}) | ||
} |
Oops, something went wrong.