Skip to content

Commit

Permalink
Add 'packages/pickers/' from commit '91dcbaffba239f981613801c6d6294bd…
Browse files Browse the repository at this point in the history
…cee1c6ca'

git-subtree-dir: packages/pickers
git-subtree-mainline: 93414bb
git-subtree-split: 91dcbaf
  • Loading branch information
eps1lon committed Nov 9, 2020
2 parents 93414bb + 91dcbaf commit e324bcc
Show file tree
Hide file tree
Showing 313 changed files with 36,797 additions and 0 deletions.
175 changes: 175 additions & 0 deletions packages/pickers/.circleci/config.yml
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'
43 changes: 43 additions & 0 deletions packages/pickers/.dependabot/config.yml
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'
9 changes: 9 additions & 0 deletions packages/pickers/.editorconfig
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
Loading

0 comments on commit e324bcc

Please sign in to comment.