Skip to content

Commit

Permalink
Merge branch 'develop' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Apr 15, 2021
2 parents ff3f3aa + 7ab0be9 commit 2f013ed
Show file tree
Hide file tree
Showing 146 changed files with 2,265 additions and 2,757 deletions.
11 changes: 11 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,17 @@
"code",
"bug"
]
},
{
"login": "carolinmaisenbacher",
"name": "Carolin Maisenbacher",
"avatar_url": "https://avatars.githubusercontent.com/u/32734844?v=4",
"profile": "https://github.com/carolinmaisenbacher",
"contributions": [
"code",
"doc",
"test"
]
}
]
}
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,12 @@ jobs:
if: >
!contains(github.event.head_commit.message, 'ci skip') &&
!contains(github.event.head_commit.message, 'skip ci') &&
!contains(github.event.head_commit.message, 'chore') && (
!startsWith(github.event.head_commit.message, 'chore') &&
!startsWith(github.event.pull_request.title, 'chore') && (
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name == github.repository
)
steps:
- name: Dump GitHub event
env:
GITHUB_EVENT: ${{ toJSON(github.event) }}
run: echo "$GITHUB_EVENT"

- uses: actions/checkout@v2

- name: Prepare repository
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## UNRELEASED

- Set `gatsby` peerDependency more explicit to `^2.0.0 || ^3.0.0`. [#1640](https://github.com/system-ui/theme-ui/pull/1640) ([@LekoArts](https://github.com/LekoArts))
- Have `breakpoints` accept custom media queries [#1653](https://github.com/system-ui/theme-ui/pull/1653) [@carolinmaisenbacher](https://github.com/carolinmaisenbacher)

## v0.6.2 (Mon Apr 05 2021)

### 🐛 Bug Fix
Expand Down
40 changes: 40 additions & 0 deletions auto.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { AutoRc } from '@auto-it/core'

import { INpmConfig } from '@auto-it/npm'
import { IAllContributorsPluginOptions } from '@auto-it/all-contributors'

const npmOptions: INpmConfig = {
exact: true,
}

const allContributorsOptions: IAllContributorsPluginOptions = {
exclude: ['dependabot', 'dependabot-preview'],
types: {
infra: ['./github/**/*'],
example: ['examples/**/*'],
doc: ['**/*.mdx', '**/*.md', 'packages/docs/**/*'],
test: ['**/*.test.*', '**/*.spec.*'],
code: [
'packages/**/*.js',
'packages/**/*.ts',
'packages/**/*.jsx',
'packages/**/*.tsx',
'**/package.json',
'**/tsconfig.json',
],
},
}

export default function config(): AutoRc {
return {
baseBranch: 'stable',
prereleaseBranches: ['develop'],
plugins: [
['npm', npmOptions],
'conventional-commits',
'first-time-contributor',
'released',
['all-contributors', allContributorsOptions],
],
}
}
36 changes: 0 additions & 36 deletions auto.rc

This file was deleted.

1 change: 0 additions & 1 deletion deprecated/chrome/babel.config.js

This file was deleted.

12 changes: 5 additions & 7 deletions deprecated/chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "@theme-ui/chrome",
"version": "0.5.0-alpha.0",
"main": "index.js",
"main": "dist/chrome.cjs.js",
"author": "Brent Jackson",
"license": "MIT",
"scripts": {
Expand All @@ -18,7 +18,6 @@
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"@emotion/react": "^11.1.1",
"@theme-ui/editor": "^0.5.0-alpha.0",
"babel-loader": "^8.0.6",
"copy-to-clipboard": "^3.2.0",
Expand All @@ -29,10 +28,9 @@
"stringify-object": "^3.3.0",
"theme-ui": "^0.5.0-alpha.0",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.4"
"webpack-cli": "^3.3.4",
"@emotion/react": "^11.1.1"
},
"devDependencies": {
"@theme-ui/css": "^0.5.0-alpha.0"
},
"gitHead": "bfd026cae085f377ca537de897dc43233d50f5d5"
"gitHead": "bfd026cae085f377ca537de897dc43233d50f5d5",
"module": "dist/chrome.esm.js"
}
8 changes: 0 additions & 8 deletions deprecated/chrome/tsconfig.json

This file was deleted.

17 changes: 0 additions & 17 deletions deprecated/chrome/webpack.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion deprecated/gatsby-theme-ui-blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"avatar": "npx capture-website-cli \"https://contrast.now.sh/fff/33e?text=UI&size=48&fontSize=1.5&radius=32&baseline=1\" content/assets/avatar.png --width=48 --height=48 --overwrite"
},
"peerDependencies": {
"gatsby": ">=2",
"gatsby": "^2.0.0 || ^3.0.0",
"react": "^16.14.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/gatsby-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"husky": ">=4.0.7",
"jest": "^24.8.0",
"lint-staged": "10",
"react-test-renderer": "^16.8.6"
"react-test-renderer": "^17.0.1"
}
}
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const config = {
statements: 90,
},
},
modulePathIgnorePatterns: ['packages/.*/dist'],
// projects: ['<rootDir>/packages/*'],
snapshotSerializers: ['@emotion/jest/serializer'],
setupFiles: ['jest-canvas-mock'],
transform: {
Expand Down
88 changes: 48 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
{
"private": true,
"scripts": {
"prepare": "lerna run prepare",
"start": "yarn workspace docs start",
"build": "yarn workspace docs build",
"serve": "yarn workspace docs serve --port 8000",
"build": "preconstruct build",
"build:docs": "yarn build && yarn workspace docs build",
"clean": "lerna run clean && rimraf packages/*/{dist,rts2_cache*}",
"format": "prettier --write \"**/*.js{,on}\" \"**/*.md\" \"**/*.mdx\"",
"format": "prettier --write \"**/*.{ts,js,json}\" \"**/*.md\" \"**/*.mdx\"",
"test": "jest",
"typecheck": "lerna run typecheck",
"typecheck": "tsc --noEmit",
"typecheck:tests": "tsc --noEmit -P ./tsconfig.test.json",
"logo": "yarn workspace docs logo",
"dev:chrome": "yarn workspace @theme-ui/chrome dev",
"dev:editor": "yarn workspace @theme-ui/editor dev",
"auto:shipit-and-log": "auto shipit -v 2>&1 | tee ./.publish-log.txt",
"release": "yarn clean && yarn prepare && auto shipit -v",
"postinstall": "preconstruct dev && patch-package",
"version:bump": "lerna version",
"version:bump-next": "lerna version prerelease --preid alpha --exact",
"release": "yarn clean && yarn build && auto shipit -v",
"release-manual": "yarn prerelease-manual && lerna publish from-package --dist-tag next --pre-dist-tag next",
"prerelease-manual": "yarn clean && yarn prepare && yarn typecheck && yarn test --coverage",
"prerelease-manual": "yarn clean && yarn build && yarn typecheck && yarn test --coverage",
"bump-version": "lerna version",
"bump-version-next": "lerna version prerelease --preid alpha --exact --force-publish",
"all-contributors:check": "./scripts/all-contributors-check.js",
Expand All @@ -26,43 +24,53 @@
"packages/*"
],
"devDependencies": {
"@auto-it/all-contributors": "^10.16.8",
"@auto-it/conventional-commits": "^10.16.8",
"@auto-it/first-time-contributor": "^10.16.8",
"@auto-it/released": "^10.16.8",
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/helper-validator-identifier": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"@babel/preset-typescript": "^7.10.1",
"@babel/runtime": "^7.10.2",
"@emotion/jest": "^11.1.0",
"@testing-library/react": "^11.0.1",
"@types/jest": "^26.0.10",
"@types/react-dom": "^17.0.0",
"@types/react-test-renderer": "^17.0.0",
"auto": "^10.16.8",
"babel-jest": "^26.0.1",
"@auto-it/all-contributors": "^10.25.0",
"@auto-it/conventional-commits": "^10.25.0",
"@auto-it/first-time-contributor": "^10.25.0",
"@auto-it/released": "^10.25.0",
"@babel/cli": "^7.13.14",
"@babel/core": "^7.13.15",
"@babel/helper-validator-identifier": "^7.12.11",
"@babel/plugin-transform-runtime": "^7.13.15",
"@babel/preset-env": "^7.13.15",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@babel/runtime": "^7.13.10",
"@emotion/jest": "^11.3.0",
"@preconstruct/cli": "^2",
"@testing-library/react": "^11.2.6",
"@types/jest": "^26.0.22",
"@types/node": "^14.14.41",
"@types/react-dom": "^17.0.3",
"@types/react-test-renderer": "^17.0.1",
"auto": "^10.25.0",
"babel-jest": "^26.6.3",
"babel-preset-gatsby": "^0.12.1",
"egzek": "^1.2.0",
"husky": ">=4.0.7",
"jest": "^26.0.1",
"jest-canvas-mock": "^2.2.0",
"husky": ">=6.0.0",
"jest": "^26.6.3",
"jest-canvas-mock": "^2.3.1",
"jest-mock-console": "^1.0.1",
"lerna": "^3.14.1",
"lint-staged": "10",
"microbundle": "^0.13.0",
"prettier": "^2.2.0",
"react-test-renderer": "^17.0.1",
"lerna": "^4.0.0",
"lint-staged": "10.5.4",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.2.1",
"react-test-renderer": "^17.0.2",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
"ts-jest": "^26.5.5",
"typescript": "^4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
},
"preconstruct": {
"packages": [
"packages/*",
"!packages/docs"
]
},
"name": "@theme-ui/monorepo"
}
12 changes: 4 additions & 8 deletions packages/color-modes/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"name": "@theme-ui/color-modes",
"version": "0.6.2",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"main": "dist/theme-ui-color-modes.cjs.js",
"module": "dist/theme-ui-color-modes.esm.js",
"types": "dist/theme-ui-color-modes.cjs.d.ts",
"source": "src/index.tsx",
"sideEffects": false,
"scripts": {
"prepare": "microbundle --no-compress",
"watch": "microbundle watch --no-compress",
"typecheck": "tsc --noEmit"
},
"scripts": {},
"repository": "system-ui/theme-ui",
"author": "Brent Jackson",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/color-modes/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ test('does not initialize mode based on localStorage if useLocalStorage is set t
})

test('retains initial context', () => {
let context: ThemeUIContextValue
let context: ThemeUIContextValue | undefined = undefined;
const Consumer = () => {
context = useThemeUI()
return null
Expand Down
7 changes: 0 additions & 7 deletions packages/color-modes/tsconfig.json

This file was deleted.

11 changes: 4 additions & 7 deletions packages/color/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
"name": "@theme-ui/color",
"version": "0.6.2",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"prepare": "microbundle --no-compress",
"watch": "microbundle watch --no-compress"
},
"main": "dist/theme-ui-color.cjs.js",
"module": "dist/theme-ui-color.esm.js",
"types": "dist/theme-ui-color.cjs.d.ts",
"scripts": {},
"dependencies": {
"@theme-ui/css": "^0.6.2",
"polished": "^4.0.5"
Expand Down
4 changes: 0 additions & 4 deletions packages/color/tsconfig.json

This file was deleted.

Loading

1 comment on commit 2f013ed

@vercel
Copy link

@vercel vercel bot commented on 2f013ed Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.