Skip to content

Commit 82b1f46

Browse files
committed
Initial commit
0 parents  commit 82b1f46

File tree

18 files changed

+19811
-0
lines changed

18 files changed

+19811
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.log
2+
.cache
3+
.DS_Store
4+
src/.temp
5+
node_modules
6+
dist
7+
.env
8+
.env.*

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Default starter for Gridsome
2+
3+
This is the project you get when you run `gridsome create new-project`.
4+
5+
### 1. Install Gridsome CLI tool if you don't have
6+
7+
`npm install --global @gridsome/cli`
8+
9+
### 2. Create a Gridsome project
10+
11+
1. `gridsome create my-gridsome-site` to install default starter
12+
2. `cd my-gridsome-site` to open the folder
13+
3. `gridsome develop` to start a local dev server at `http://localhost:8080`
14+
4. Happy coding 🎉🙌

gridsome.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// This is where project configuration and plugin options are located.
2+
// Learn more: https://gridsome.org/docs/config
3+
4+
// Changes here require a server restart.
5+
// To restart press CTRL + C in terminal and run `gridsome develop`
6+
7+
module.exports = {
8+
siteName: "Built with Gridsome",
9+
plugins: [
10+
{
11+
use: "gridsome-plugin-tailwindcss",
12+
options: {
13+
tailwindConfig: "./tailwind.config.js",
14+
purgeConfig: {},
15+
presetEnvConfig: {},
16+
shouldPurge: true,
17+
shouldImport: true,
18+
shouldTimeTravel: true,
19+
shouldPurgeUnusedKeyframes: true
20+
}
21+
}
22+
]
23+
};

gridsome.server.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const projects = require('./projects.json')
2+
3+
module.exports = function(api) {
4+
api.loadSource(actions => {
5+
const contentTypeProjects = actions.addCollection('Project')
6+
7+
for (const project of projects) {
8+
contentTypeProjects.addNode({
9+
id: project.id,
10+
name: project.name,
11+
description: project.description,
12+
url: project.url,
13+
source: project.source,
14+
tags: project.tags
15+
})
16+
}
17+
})
18+
}

0 commit comments

Comments
 (0)