forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'packages/pickers/' from commit '91dcbaffba239f981613801c6d6294bd…
…cee1c6ca' git-subtree-dir: packages/pickers git-subtree-mainline: 93414bb git-subtree-split: 91dcbaf
- Loading branch information
Showing
313 changed files
with
36,797 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
#################### | ||
# Defaults | ||
#################### | ||
defaults: &js_defaults | ||
docker: | ||
- image: circleci/node:lts | ||
environment: | ||
## this enables colors in the output | ||
TERM: xterm | ||
working_directory: ~/material-ui-pickers | ||
|
||
version: 2.1 | ||
|
||
#################### | ||
# Custom jobs | ||
#################### | ||
jobs: | ||
checkout_code: | ||
<<: *js_defaults | ||
steps: | ||
- checkout | ||
- persist_to_workspace: | ||
root: . | ||
paths: . | ||
install_deps: | ||
<<: *js_defaults | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- restore_cache: | ||
name: Restore Cache | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Install Dependencies | ||
command: yarn install --frozen-lockfile | ||
- run: | ||
name: Check for duplicated packages | ||
command: yarn deduplicate | ||
- save_cache: | ||
name: Save Cache | ||
key: yarn-packages-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ~/.cache | ||
- persist_to_workspace: | ||
root: . | ||
paths: . | ||
|
||
lint: | ||
<<: *js_defaults | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: Eslint | ||
command: yarn lint:ci | ||
- run: | ||
name: Ensure prettier was run | ||
command: yarn prettier:check | ||
|
||
build: | ||
<<: *js_defaults | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: TypeScript | ||
command: yarn workspaces run build:typescript | ||
- run: | ||
name: Run TypeScript tests | ||
command: yarn workspace @material-ui/pickers run test:typescript | ||
- run: | ||
name: Build and analyze bundlesize | ||
command: yarn workspace @material-ui/pickers build:analyze | ||
|
||
jest_tests: | ||
description: Running jest test with separate library | ||
parameters: | ||
lib: | ||
description: 'Library to run tests' | ||
type: string | ||
after-tests: | ||
description: 'Steps that will be executed after test run is finished' | ||
type: steps | ||
default: [] | ||
<<: *js_defaults | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
# --runInBand required to not get out of memory @see https://discuss.circleci.com/t/memory-problems-with-jest-and-workers/10297 | ||
- run: cd lib && yarn test:<<parameters.lib>> --runInBand | ||
- steps: << parameters.after-tests >> | ||
|
||
cypress_tests: | ||
description: Run cypress tests | ||
docker: | ||
- image: cypress/browsers:node12.8.1-chrome80-ff72 | ||
environment: | ||
## this enables colors in the output | ||
TERM: xterm | ||
working_directory: ~/material-ui-pickers | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- restore_cache: | ||
name: Restore Cache | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Additional yarn install | ||
command: yarn install --frozen-lockfile | ||
- run: | ||
name: Install, if no cypress binary found | ||
command: yarn cypress install | ||
- run: yarn workspace docs build | ||
- run: | ||
background: true | ||
name: Run docs in background | ||
command: yarn workspace docs start | ||
environment: | ||
VISUAL_TESTING: true | ||
- run: npx wait-on http://localhost:3001 | ||
- run: yarn percy exec -- cypress run --record --browser chrome | ||
|
||
#################### | ||
# Workflow | ||
#################### | ||
workflows: | ||
version: 2.1 | ||
build_and_test: | ||
jobs: | ||
- checkout_code | ||
- install_deps: | ||
name: 'Install deps' | ||
requires: | ||
- 'checkout_code' | ||
- build: | ||
name: 'Build and analyze bundlesize' | ||
requires: | ||
- 'Install deps' | ||
- lint: | ||
name: 'Run linters' | ||
requires: | ||
- 'Install deps' | ||
|
||
- cypress_tests: | ||
name: 'Cypress tests' | ||
requires: | ||
- checkout_code | ||
|
||
- jest_tests: | ||
name: 'Date-fns jest tests' | ||
lib: date-fns | ||
after-tests: | ||
- run: npx codecov | ||
requires: | ||
- 'Build and analyze bundlesize' | ||
|
||
- jest_tests: | ||
name: 'Dayjs jest tests' | ||
lib: dayjs | ||
requires: | ||
- 'Build and analyze bundlesize' | ||
|
||
- jest_tests: | ||
name: 'Moment jest tests' | ||
lib: moment | ||
requires: | ||
- 'Build and analyze bundlesize' | ||
|
||
- jest_tests: | ||
name: 'Luxon jest tests' | ||
lib: luxon | ||
requires: | ||
- 'Build and analyze bundlesize' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# https://dependabot.com/docs/config-file/ | ||
# validate with https://dependabot.com/docs/config-file/validator/ | ||
version: 1 | ||
update_configs: | ||
- package_manager: 'javascript' | ||
directory: '/' | ||
update_schedule: 'weekly' | ||
version_requirement_updates: 'auto' | ||
ignored_updates: | ||
- match: | ||
# These should be grouped. Maintainer advise: Watch https://github.com/babel/babel | ||
# for new releases and file a PR if you got time. | ||
dependency_name: '@babel/*' | ||
- match: | ||
# https://github.com/mui-org/material-ui/pull/17604#issuecomment-536262291 | ||
dependency_name: 'core-js' | ||
- match: | ||
# 2.0 started using ES modules instead of CommonJS modules | ||
dependency_name: 'raw-loader' | ||
# not ignoring `react`. We'll hijack those PRs and also upgrade the other | ||
# packages in the facebook/react repository | ||
- match: | ||
# should be grouped with `react` | ||
dependency_name: 'react-dom' | ||
- match: | ||
# should be grouped with `react` | ||
dependency_name: 'react-is' | ||
- match: | ||
# should be grouped with `react` | ||
dependency_name: 'react-test-renderer' | ||
- match: | ||
# as of 3.x requires node@10. We can upgrade once we do as well | ||
dependency_name: 'url-loader' | ||
version_requirement: '>= 3.0' | ||
- match: | ||
# Stop investment in the documentation per https://github.com/mui-org/material-ui/issues/19706 | ||
dependency_name: 'next' | ||
- match: | ||
# Stop investment in the documentation per https://github.com/mui-org/material-ui/issues/19706 | ||
dependency_name: '@types/next' | ||
- match: | ||
# Stop investment in the documentation per https://github.com/mui-org/material-ui/issues/19706 | ||
dependency_name: 'next-transpile-modules' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
charset = utf-8 |
Oops, something went wrong.