Skip to content

Commit e324bcc

Browse files
committed
Add 'packages/pickers/' from commit '91dcbaffba239f981613801c6d6294bdcee1c6ca'
git-subtree-dir: packages/pickers git-subtree-mainline: 93414bb git-subtree-split: 91dcbaf
2 parents 93414bb + 91dcbaf commit e324bcc

File tree

313 files changed

+36797
-0
lines changed

Some content is hidden

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

313 files changed

+36797
-0
lines changed
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
####################
2+
# Defaults
3+
####################
4+
defaults: &js_defaults
5+
docker:
6+
- image: circleci/node:lts
7+
environment:
8+
## this enables colors in the output
9+
TERM: xterm
10+
working_directory: ~/material-ui-pickers
11+
12+
version: 2.1
13+
14+
####################
15+
# Custom jobs
16+
####################
17+
jobs:
18+
checkout_code:
19+
<<: *js_defaults
20+
steps:
21+
- checkout
22+
- persist_to_workspace:
23+
root: .
24+
paths: .
25+
install_deps:
26+
<<: *js_defaults
27+
steps:
28+
- attach_workspace:
29+
at: .
30+
- restore_cache:
31+
name: Restore Cache
32+
keys:
33+
- yarn-packages-{{ checksum "yarn.lock" }}
34+
- run:
35+
name: Install Dependencies
36+
command: yarn install --frozen-lockfile
37+
- run:
38+
name: Check for duplicated packages
39+
command: yarn deduplicate
40+
- save_cache:
41+
name: Save Cache
42+
key: yarn-packages-{{ checksum "yarn.lock" }}
43+
paths:
44+
- ~/.cache
45+
- persist_to_workspace:
46+
root: .
47+
paths: .
48+
49+
lint:
50+
<<: *js_defaults
51+
steps:
52+
- attach_workspace:
53+
at: .
54+
- run:
55+
name: Eslint
56+
command: yarn lint:ci
57+
- run:
58+
name: Ensure prettier was run
59+
command: yarn prettier:check
60+
61+
build:
62+
<<: *js_defaults
63+
steps:
64+
- attach_workspace:
65+
at: .
66+
- run:
67+
name: TypeScript
68+
command: yarn workspaces run build:typescript
69+
- run:
70+
name: Run TypeScript tests
71+
command: yarn workspace @material-ui/pickers run test:typescript
72+
- run:
73+
name: Build and analyze bundlesize
74+
command: yarn workspace @material-ui/pickers build:analyze
75+
76+
jest_tests:
77+
description: Running jest test with separate library
78+
parameters:
79+
lib:
80+
description: 'Library to run tests'
81+
type: string
82+
after-tests:
83+
description: 'Steps that will be executed after test run is finished'
84+
type: steps
85+
default: []
86+
<<: *js_defaults
87+
steps:
88+
- attach_workspace:
89+
at: .
90+
# --runInBand required to not get out of memory @see https://discuss.circleci.com/t/memory-problems-with-jest-and-workers/10297
91+
- run: cd lib && yarn test:<<parameters.lib>> --runInBand
92+
- steps: << parameters.after-tests >>
93+
94+
cypress_tests:
95+
description: Run cypress tests
96+
docker:
97+
- image: cypress/browsers:node12.8.1-chrome80-ff72
98+
environment:
99+
## this enables colors in the output
100+
TERM: xterm
101+
working_directory: ~/material-ui-pickers
102+
steps:
103+
- attach_workspace:
104+
at: .
105+
- restore_cache:
106+
name: Restore Cache
107+
keys:
108+
- yarn-packages-{{ checksum "yarn.lock" }}
109+
- run:
110+
name: Additional yarn install
111+
command: yarn install --frozen-lockfile
112+
- run:
113+
name: Install, if no cypress binary found
114+
command: yarn cypress install
115+
- run: yarn workspace docs build
116+
- run:
117+
background: true
118+
name: Run docs in background
119+
command: yarn workspace docs start
120+
environment:
121+
VISUAL_TESTING: true
122+
- run: npx wait-on http://localhost:3001
123+
- run: yarn percy exec -- cypress run --record --browser chrome
124+
125+
####################
126+
# Workflow
127+
####################
128+
workflows:
129+
version: 2.1
130+
build_and_test:
131+
jobs:
132+
- checkout_code
133+
- install_deps:
134+
name: 'Install deps'
135+
requires:
136+
- 'checkout_code'
137+
- build:
138+
name: 'Build and analyze bundlesize'
139+
requires:
140+
- 'Install deps'
141+
- lint:
142+
name: 'Run linters'
143+
requires:
144+
- 'Install deps'
145+
146+
- cypress_tests:
147+
name: 'Cypress tests'
148+
requires:
149+
- checkout_code
150+
151+
- jest_tests:
152+
name: 'Date-fns jest tests'
153+
lib: date-fns
154+
after-tests:
155+
- run: npx codecov
156+
requires:
157+
- 'Build and analyze bundlesize'
158+
159+
- jest_tests:
160+
name: 'Dayjs jest tests'
161+
lib: dayjs
162+
requires:
163+
- 'Build and analyze bundlesize'
164+
165+
- jest_tests:
166+
name: 'Moment jest tests'
167+
lib: moment
168+
requires:
169+
- 'Build and analyze bundlesize'
170+
171+
- jest_tests:
172+
name: 'Luxon jest tests'
173+
lib: luxon
174+
requires:
175+
- 'Build and analyze bundlesize'
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# https://dependabot.com/docs/config-file/
2+
# validate with https://dependabot.com/docs/config-file/validator/
3+
version: 1
4+
update_configs:
5+
- package_manager: 'javascript'
6+
directory: '/'
7+
update_schedule: 'weekly'
8+
version_requirement_updates: 'auto'
9+
ignored_updates:
10+
- match:
11+
# These should be grouped. Maintainer advise: Watch https://github.com/babel/babel
12+
# for new releases and file a PR if you got time.
13+
dependency_name: '@babel/*'
14+
- match:
15+
# https://github.com/mui-org/material-ui/pull/17604#issuecomment-536262291
16+
dependency_name: 'core-js'
17+
- match:
18+
# 2.0 started using ES modules instead of CommonJS modules
19+
dependency_name: 'raw-loader'
20+
# not ignoring `react`. We'll hijack those PRs and also upgrade the other
21+
# packages in the facebook/react repository
22+
- match:
23+
# should be grouped with `react`
24+
dependency_name: 'react-dom'
25+
- match:
26+
# should be grouped with `react`
27+
dependency_name: 'react-is'
28+
- match:
29+
# should be grouped with `react`
30+
dependency_name: 'react-test-renderer'
31+
- match:
32+
# as of 3.x requires node@10. We can upgrade once we do as well
33+
dependency_name: 'url-loader'
34+
version_requirement: '>= 3.0'
35+
- match:
36+
# Stop investment in the documentation per https://github.com/mui-org/material-ui/issues/19706
37+
dependency_name: 'next'
38+
- match:
39+
# Stop investment in the documentation per https://github.com/mui-org/material-ui/issues/19706
40+
dependency_name: '@types/next'
41+
- match:
42+
# Stop investment in the documentation per https://github.com/mui-org/material-ui/issues/19706
43+
dependency_name: 'next-transpile-modules'

packages/pickers/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 2
8+
trim_trailing_whitespace = true
9+
charset = utf-8

0 commit comments

Comments
 (0)