Skip to content

Commit e9e059a

Browse files
authored
v0.2.0
2 parents d32d727 + cf1ab70 commit e9e059a

Some content is hidden

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

45 files changed

+3152
-432
lines changed

.circleci/config.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
references:
2+
workspace_root: &workspace_root
3+
/home/circleci/design-system
4+
5+
attach_workspace: &attach_workspace
6+
attach_workspace:
7+
at: *workspace_root
8+
9+
defaults: &defaults
10+
resource_class: large
11+
working_directory: *workspace_root
12+
13+
docker:
14+
- image: zoyi/ci-node:12.16.1
15+
16+
filter_only_tagged: &filter_only_tagged
17+
filters:
18+
tags:
19+
only: /^v.*/
20+
branches:
21+
ignore: /.*/
22+
23+
version: 2
24+
jobs:
25+
install:
26+
<<: *defaults
27+
steps:
28+
- checkout
29+
- restore_cache:
30+
keys:
31+
- design-system-dependencies-{{ checksum "package.json" }}
32+
- run: npm install
33+
- save_cache:
34+
paths:
35+
- node_modules
36+
key: design-system-dependencies-{{ checksum "package.json" }}
37+
- persist_to_workspace:
38+
root: *workspace_root
39+
paths:
40+
- .
41+
42+
lint:
43+
<<: *defaults
44+
steps:
45+
- *attach_workspace
46+
- run: npm run lint
47+
48+
typecheck:
49+
<<: *defaults
50+
steps:
51+
- *attach_workspace
52+
- run: npm run typecheck
53+
54+
test:
55+
<<: *defaults
56+
steps:
57+
- *attach_workspace
58+
- run: npm run jest
59+
60+
publish:
61+
<<: *defaults
62+
steps:
63+
- *attach_workspace
64+
- run:
65+
name: build icon...
66+
command: npm run build:icon
67+
- run:
68+
name: publish to npm registry...
69+
command: npm publish
70+
71+
workflows:
72+
version: 2
73+
build_n_test:
74+
jobs:
75+
- install:
76+
filters:
77+
branches:
78+
ignore:
79+
- master
80+
- exp
81+
- lint:
82+
requires:
83+
- install
84+
- typecheck:
85+
requires:
86+
- install
87+
- test:
88+
requires:
89+
- install
90+
91+
deploy_tagged:
92+
jobs:
93+
- install:
94+
<<: *filter_only_tagged
95+
- test:
96+
<<: *filter_only_tagged
97+
requires:
98+
- install
99+
- publish:
100+
<<: *filter_only_tagged
101+
requires:
102+
- test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,6 @@ build/
190190

191191
# Story book
192192
storybook-static/
193+
194+
# WebStorm
195+
.idea

babel.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
env: {
3+
test: {
4+
presets: [
5+
['@babel/preset-env', { targets: { node: 'current' } }],
6+
'@babel/preset-react',
7+
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
8+
],
9+
},
10+
build: {
11+
presets: [
12+
['@babel/preset-env'],
13+
'@babel/preset-react',
14+
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
15+
],
16+
},
17+
},
18+
}

jest.config.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
module.exports = {
2-
roots: ["./src"],
3-
setupFilesAfterEnv: ["./jest.setup.ts"],
4-
moduleFileExtensions: ["ts", "tsx", "js"],
5-
testPathIgnorePatterns: ["node_modules/"],
2+
roots: ['./src'],
3+
setupFilesAfterEnv: ['./jest.setup.ts'],
4+
moduleFileExtensions: ['ts', 'tsx', 'js'],
5+
testPathIgnorePatterns: ['node_modules/'],
6+
transformIgnorePatterns: [],
67
transform: {
7-
"^.+\\.tsx?$": "ts-jest",
8+
'^.+\\.[t|j]sx?$': 'babel-jest',
89
},
9-
testMatch: ["**/*.test.(ts|tsx)"],
10+
testMatch: ['**/*.test.(ts|tsx)'],
1011
moduleNameMapper: {
11-
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
12-
"identity-obj-proxy",
13-
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
14-
}
12+
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
13+
'identity-obj-proxy',
14+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
15+
},
1516
}

0 commit comments

Comments
 (0)