Skip to content

Commit

Permalink
Adjustes
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielMerigo committed Jul 29, 2022
1 parent 3a80ec0 commit a2312ef
Show file tree
Hide file tree
Showing 131 changed files with 12,973 additions and 15,841 deletions.
48 changes: 24 additions & 24 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"presets": ["next/babel", "@babel/preset-typescript"],
"plugins": [
[
"babel-plugin-styled-components",
{
"ssr": true,
"displayName": true
}
]
],
"env": {
"test": {
"plugins": [
[
"babel-plugin-styled-components",
{
"srr": false,
"displayName": false
}
]
]
}
}
{
"presets": ["next/babel", "@babel/preset-typescript"],
"plugins": [
[
"babel-plugin-styled-components",
{
"ssr": true,
"displayName": true
}
]
],
"env": {
"test": {
"plugins": [
[
"babel-plugin-styled-components",
{
"srr": false,
"displayName": false
}
]
]
}
}
}
16 changes: 8 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
root = true

[*]
indent_style = spaces
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
root = true

[*]
indent_style = spaces
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
72 changes: 36 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: ci
on: [pull_request]

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

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14.x

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install

- name: Typescheck
run: yarn typecheck

- name: Test
run: yarn test

- name: Build
run: yarn build
name: ci
on: [pull_request]

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

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14.x

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install

- name: Typescheck
run: yarn typecheck

- name: Test
run: yarn test

- name: Build
run: yarn build
76 changes: 38 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

#sw stuff
public/sw.js
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

#sw stuff
public/sw.js
public/workbox.js
26 changes: 13 additions & 13 deletions .jest/match-media-mock.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: jest.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addListener: jest.fn(),
removeListener: jest.fn(),
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn()
}))
})
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: jest.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addListener: jest.fn(),
removeListener: jest.fn(),
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn()
}))
})
2 changes: 1 addition & 1 deletion .jest/setup.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom';
import 'jest-styled-components';
18 changes: 9 additions & 9 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
"stories": ["../src/components/**/stories.tsx"],
"addons": ["@storybook/addon-essentials"],
"framework": "@storybook/react",
webpackFinal: (config) => {
config.resolve.modules.push(`${process.cwd()}/src`)
return config;
},
}
module.exports = {
"stories": ["../src/components/**/stories.tsx"],
"addons": ["@storybook/addon-essentials"],
"framework": "@storybook/react",
webpackFinal: (config) => {
config.resolve.modules.push(`${process.cwd()}/src`)
return config;
},
}
56 changes: 28 additions & 28 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import { ThemeProvider } from 'styled-components';
import GlobalStyle from 'styles/global'
import theme from "styles/theme";

export const parameters = {
backgrounds: {
default: 'won-light',
values: [
{
name: 'won-light',
value: theme.colors.white
},
{
name: 'won-dark',
value: theme.colors.black
}
]
}
}

export const decorators = [
(Story) => (
<ThemeProvider theme={theme} removeBg>
<GlobalStyle />
<Story />
</ThemeProvider>
)
];
import { ThemeProvider } from 'styled-components';
import GlobalStyle from 'styles/global'
import theme from "styles/theme";

export const parameters = {
backgrounds: {
default: 'won-light',
values: [
{
name: 'won-light',
value: theme.colors.white
},
{
name: 'won-dark',
value: theme.colors.black
}
]
}
}

export const decorators = [
(Story) => (
<ThemeProvider theme={theme} removeBg>
<GlobalStyle />
<Story />
</ThemeProvider>
)
];
Loading

0 comments on commit a2312ef

Please sign in to comment.