Skip to content

Commit 16b3038

Browse files
author
Marius Ostheimer
committed
init
0 parents  commit 16b3038

File tree

18 files changed

+21320
-0
lines changed

18 files changed

+21320
-0
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": [["styled-components", { "ssr": true }]]
4+
}

.circleci/config.yml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
defaults: &defaults
2+
docker:
3+
- image: circleci/node:10
4+
working_directory: /home/circleci/cotypeui
5+
6+
noStrictHost: &noStrictHost
7+
name: Disable strict host checking
8+
# We are not actually using ssh for communication with github
9+
# and semantic release has hickups from time to time
10+
# (https://circleci.com/gh/cotype/core/189)
11+
# Ref: https://github.com/semantic-release/semantic-release/issues/1095
12+
command: >
13+
mkdir ~/.ssh/ &&
14+
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
15+
16+
version: 2
17+
jobs:
18+
install:
19+
<<: *defaults
20+
steps:
21+
- checkout
22+
- run:
23+
name: Create package-lock.json checksum
24+
command: >
25+
sha256sum package-lock.json > .package-lock-sum
26+
- restore_cache:
27+
keys:
28+
- v1-dependencies-{{ checksum ".package-lock-sum" }}
29+
- run:
30+
name: Install
31+
command: npm install
32+
- save_cache:
33+
paths:
34+
- node_modules
35+
key: v1-dependencies-{{ checksum ".package-lock-sum" }}
36+
- save_cache:
37+
paths:
38+
- ~/cotypeui
39+
key: v1-repo-{{ .Revision }}
40+
lint:
41+
<<: *defaults
42+
steps:
43+
- restore_cache:
44+
keys:
45+
- v1-repo-{{ .Revision }}
46+
- run:
47+
name: Lint
48+
command: npm run lint
49+
build:
50+
<<: *defaults
51+
steps:
52+
- restore_cache:
53+
keys:
54+
- v1-repo-{{ .Revision }}
55+
- run:
56+
name: Build
57+
command: npm run build
58+
- save_cache:
59+
paths:
60+
- lib
61+
key: v1-build-{{ .Revision }}
62+
release:
63+
<<: *defaults
64+
steps:
65+
- restore_cache:
66+
keys:
67+
- v1-repo-{{ .Revision }}
68+
- restore_cache:
69+
keys:
70+
- v1-build-{{ .Revision }}
71+
- run:
72+
<<: *noStrictHost
73+
- run:
74+
name: Release
75+
command: npx semantic-release || true
76+
pre-release:
77+
<<: *defaults
78+
steps:
79+
- restore_cache:
80+
keys:
81+
- v1-repo-{{ .Revision }}
82+
- restore_cache:
83+
keys:
84+
- v1-build-{{ .Revision }}
85+
- run:
86+
<<: *noStrictHost
87+
- run:
88+
name: Pre-Release
89+
command: npx semantish-prerelease --release-pr || true
90+
91+
workflows:
92+
version: 2
93+
test-and-publish:
94+
jobs:
95+
- install
96+
- lint:
97+
requires:
98+
- install
99+
- build:
100+
requires:
101+
- install
102+
- release:
103+
requires:
104+
- lint
105+
- build
106+
filters:
107+
branches:
108+
only: master
109+
- pre-release:
110+
requires:
111+
- lint
112+
- build
113+
filters:
114+
branches:
115+
ignore: master

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
**/*.gen.ts
3+
lib

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"root": true,
3+
"extends": "cellular"
4+
}

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
/dist
18+
/lib
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
34+
# vercel
35+
.vercel
36+
37+
dev_db
38+
39+
server/uploads
40+
41+
# percy
42+
storybook-static

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
src/
2+
.storybook/
3+
.circleci/
4+
.babelrc
5+
.eslintignore
6+
.eslintrc
7+
.prettierrc
8+
.gitignore
9+
tsconfig.json
10+
node_modules/
11+
.idea/

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true
5+
}

.storybook/main.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(ts|tsx)'],
3+
addons: [
4+
'@storybook/addon-actions',
5+
'@storybook/addon-links',
6+
'@storybook/addon-essentials',
7+
'@storybook/addon-knobs',
8+
],
9+
};

.storybook/preview-head.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<link
2+
href="https://fonts.googleapis.com/css2?family=Krona+One&family=Lato:wght@400;700&family=Roboto:wght@400;700;900&display=swap"
3+
rel="stylesheet"
4+
/>

.storybook/preview.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { addDecorator, getStorybook } from '@storybook/react';
2+
import React from 'react';
3+
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
4+
import BaseStyle from '../src/BaseStyle';
5+
6+
export const parameters = {
7+
viewport: {
8+
viewports: INITIAL_VIEWPORTS,
9+
},
10+
layout: 'fullscreen',
11+
};
12+
13+
addDecorator((Story) => (
14+
<>
15+
<BaseStyle />
16+
<Story />
17+
</>
18+
));
19+
20+
export { getStorybook };

0 commit comments

Comments
 (0)