Skip to content

Commit fbab5fc

Browse files
authored
Merge pull request #10 from ipfs/feat/initial-setup
feat: initial setup
2 parents 00c22ff + a4eca6a commit fbab5fc

21 files changed

+45178
-0
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nuxt
2+
node_modules
3+
dist

.eslintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"standard",
9+
"plugin:vue/recommended",
10+
"plugin:prettier/recommended"
11+
],
12+
"globals": {
13+
"Atomics": "readonly",
14+
"SharedArrayBuffer": "readonly"
15+
},
16+
"rules": {
17+
"vue/no-v-html": "off"
18+
}
19+
}

.fleek.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"build": {
3+
"image": "fleek/nuxtjs",
4+
"command": "npm install && npm run generate",
5+
"publicDir": "dist",
6+
"baseDir": ""
7+
}
8+
}

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.DS_Store
2+
node_modules
3+
dist
4+
.temp
5+
.eslintcache
6+
.nuxt
7+
8+
# logs
9+
logs
10+
*.log
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
15+
# editor
16+
.vscode
17+
.history

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
11
# IPFS website
2+
3+
## Build Setup
4+
5+
```bash
6+
# install dependencies
7+
$ npm install
8+
9+
# serve with hot reload at localhost:3000
10+
$ npm run dev
11+
12+
# build for production and launch server
13+
$ npm run build
14+
$ npm run start
15+
16+
# generate static project
17+
$ npm run generate
18+
```
19+
20+
## Deployment
21+
22+
CI and hosting on [Fleek](https://fleek.co/).

assets/.gitkeep

Whitespace-only changes.

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
};

components/Footer.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<div>Footer</div>
3+
</template>

components/Header.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<div>Header</div>
3+
</template>

jsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"~/*": ["./*"],
6+
"@/*": ["./*"],
7+
"~~/*": ["./*"],
8+
"@@/*": ["./*"]
9+
}
10+
},
11+
"exclude": ["node_modules", ".nuxt", "dist"]
12+
}

layouts/default.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<div>
3+
<Header />
4+
<Nuxt />
5+
<Footer />
6+
</div>
7+
</template>

nuxt.config.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
export default {
2+
// Target: https://go.nuxtjs.dev/config-target
3+
target: "static",
4+
5+
// Global page headers: https://go.nuxtjs.dev/config-head
6+
head: {
7+
title: "ipfs-website",
8+
htmlAttrs: {
9+
lang: "en",
10+
},
11+
meta: [
12+
{ charset: "utf-8" },
13+
{ name: "viewport", content: "width=device-width, initial-scale=1" },
14+
{ hid: "description", name: "description", content: "" },
15+
],
16+
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
17+
},
18+
19+
// Global CSS: https://go.nuxtjs.dev/config-css
20+
css: [],
21+
22+
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
23+
plugins: [],
24+
25+
// Auto import components: https://go.nuxtjs.dev/config-components
26+
components: true,
27+
28+
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
29+
buildModules: [
30+
// https://go.nuxtjs.dev/eslint
31+
"@nuxtjs/eslint-module",
32+
// https://go.nuxtjs.dev/stylelint
33+
"@nuxtjs/stylelint-module",
34+
// https://go.nuxtjs.dev/tailwindcss
35+
"@nuxtjs/tailwindcss",
36+
],
37+
38+
// Modules: https://go.nuxtjs.dev/config-modules
39+
modules: [],
40+
41+
// Build Configuration: https://go.nuxtjs.dev/config-build
42+
build: {},
43+
};

0 commit comments

Comments
 (0)