Skip to content

Commit 0eb521d

Browse files
committed
1-barebones-setup nextjs and storybook installed
1 parent d564174 commit 0eb521d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+12952
-24412
lines changed

.eslintrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"next/core-web-vitals",
4+
"plugin:storybook/recommended"
5+
]
6+
}

.gitignore

+8-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7-
yarn.lock
87

98
# testing
109
/coverage
@@ -19,18 +18,21 @@ yarn.lock
1918
# misc
2019
.DS_Store
2120
*.pem
22-
# .vscode/
2321

2422
# debug
2523
npm-debug.log*
2624
yarn-debug.log*
2725
yarn-error.log*
2826

2927
# local env files
30-
.env.local
31-
.env.development.local
32-
.env.test.local
33-
.env.production.local
28+
.env*.local
3429

3530
# vercel
3631
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts
36+
37+
# vs code
38+
.vscode

.storybook/main.js

+8-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
/** @type { import('@storybook/nextjs').StorybookConfig } */
2-
const config = {
3-
stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|ts|tsx)"],
4-
addons: [
5-
"@storybook/addon-links",
6-
"@storybook/addon-essentials",
7-
"@storybook/addon-interactions",
8-
],
9-
framework: {
1+
module.exports = {
2+
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3+
"addons": ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions", "@storybook/addon-mdx-gfm"],
4+
"framework": {
105
name: "@storybook/nextjs",
11-
options: {},
6+
options: {}
127
},
138
docs: {
14-
autodocs: "tag",
15-
},
16-
};
17-
export default config;
9+
autodocs: true
10+
}
11+
};

.storybook/main.ts

-21
This file was deleted.

.storybook/preview.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
/** @type { import('@storybook/react').Preview } */
2-
const preview = {
3-
parameters: {
4-
actions: { argTypesRegex: "^on[A-Z].*" },
5-
controls: {
6-
matchers: {
7-
color: /(background|color)$/i,
8-
date: /Date$/,
9-
},
1+
export const parameters = {
2+
actions: { argTypesRegex: "^on[A-Z].*" },
3+
controls: {
4+
matchers: {
5+
color: /(background|color)$/i,
6+
date: /Date$/,
107
},
118
},
12-
};
13-
14-
export default preview;
9+
}

.storybook/preview.ts

-15
This file was deleted.

LICENSE

-21
This file was deleted.

README.md

+38-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
1-
# gaia-design-system
2-
Design System for Civic Makers
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
```
14+
15+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16+
17+
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
18+
19+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
20+
21+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
22+
23+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
24+
25+
## Learn More
26+
27+
To learn more about Next.js, take a look at the following resources:
28+
29+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
30+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
31+
32+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
33+
34+
## Deploy on Vercel
35+
36+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
37+
38+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

gaia-design-system/.eslintrc.json

-3
This file was deleted.

gaia-design-system/.gitignore

-35
This file was deleted.

gaia-design-system/README.md

-38
This file was deleted.

0 commit comments

Comments
 (0)