Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/StorybookNpm' into #59-style/c…
Browse files Browse the repository at this point in the history
…ode-format
  • Loading branch information
iOdiO89 committed Aug 1, 2024
2 parents ab2e48f + 3e59908 commit ce64f78
Show file tree
Hide file tree
Showing 493 changed files with 19,889 additions and 363 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "plugin:storybook/recommended"]
}
35 changes: 35 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Npm Publish

on:
push:
branches:
- StorybookNpm
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "v20.10.0"

- name: Install dependencies
run: yarn install

- name: Npm Package Build
run: yarn build-npm

- name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{secrets.PACKAGE_PUBLISH_KEY_NPM }}
access: public
34 changes: 34 additions & 0 deletions .github/workflows/s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Storybook Deploy To S3

on:
push:
branches:
- StorybookNpm

jobs:
publish-storybook:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "v20.10.0"

- name: Install dependencies
run: yarn install

- name: Build Storybook
run: yarn build-storybook

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 sync --region ap-northeast-2 ./storybook-static s3://s3-eolluga-ui --delete
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run modules-fe Test

on:
pull_request:
branches:
- StorybookNpm

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "v20.10.0"

- name: Install dependencies
run: yarn install

- name: Run test
run: yarn build-storybook
43 changes: 42 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
.DS_Store
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

*storybook.log

/dist
/storybook-static
/.rollup.cache
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/.github
/.next
/.storybook
/node_modules
.eslintrc.json
.gitignore
.npmignore
custom.d.ts
next.config.js
package.json
rollup.config.mjs
tailwind.config.ts
tsconfig.json
yarn.lock
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"tabWidth": 2,
"bracketSpacing": true,
"endOfLine": "auto",
"useTabs": false,
"arrowParens": "avoid"
}
46 changes: 46 additions & 0 deletions .storybook/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("theme.css");
@import url("ground.css");

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}

@font-face {
font-family: "S-CoreDream-3Light";
src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/S-CoreDream-3Light.woff")
format("woff");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: "Pretendard-Regular";
src: url("https://fastly.jsdelivr.net/gh/Project-Noonnu/[email protected]/Pretendard-Regular.woff")
format("woff");
font-weight: 400;
font-style: normal;
}
Loading

0 comments on commit ce64f78

Please sign in to comment.