Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 55ec95c

Browse files
Merge pull request #252 from chakra-ui/develop
release v0.6.0 🎉
2 parents f06b2c5 + 5bb7b70 commit 55ec95c

File tree

223 files changed

+6418
-4680
lines changed

Some content is hidden

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

223 files changed

+6418
-4680
lines changed

.eslintrc.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,32 @@ module.exports = {
33
env: {
44
node: true
55
},
6-
'extends': [
6+
plugins: ['testing-library'],
7+
extends: [
78
'plugin:vue/essential',
89
'@vue/standard',
9-
'@nuxtjs'
10+
'@nuxtjs',
11+
'plugin:testing-library/recommended',
12+
'plugin:testing-library/vue'
1013
],
1114
rules: {
1215
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
1316
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
14-
'curly': 'off'
17+
curly: 'off',
18+
'testing-library/no-debug': 'error',
19+
'testing-library/prefer-screen-queries': 'error',
20+
'testing-library/await-fire-event': 'error',
21+
indent: [
22+
'error',
23+
2,
24+
{
25+
SwitchCase: 1,
26+
ignoredNodes: [
27+
'TemplateLiteral'
28+
]
29+
}
30+
],
31+
'template-curly-spacing': 0
1532
},
1633
parserOptions: {
1734
parser: 'babel-eslint'
@@ -23,10 +40,7 @@ module.exports = {
2340
},
2441
overrides: [
2542
{
26-
files: [
27-
'**/__tests__/*.{j,t}s?(x)',
28-
'**/tests/*.{j,t}s?(x)'
29-
],
43+
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/*.{j,t}s?(x)'],
3044
env: {
3145
jest: true
3246
}
File renamed without changes.

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Build & Test Components
5+
6+
on:
7+
# Trigger the workflow on push or pull request,
8+
# but only for the master branch
9+
push:
10+
branches:
11+
- develop
12+
pull_request:
13+
branches:
14+
- develop
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
node-version: [12.x]
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: yarn
29+
- run: yarn bootstrap
30+
- run: yarn lint
31+
- run: yarn build --if-present
32+
- run: yarn test
33+
env:
34+
CI: true

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ packages/*/node_modules
3434
lerna-debug.log
3535
.now
3636
config/.env
37-
packages/nuxt-chakra/.github
37+
packages/nuxt-chakra/.github
38+
packages/chakra-ui-docs/static/sw.js

.storybook/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { configure, addDecorator, addParameters } from '@storybook/vue';
22
import Vue from 'vue'
3+
import VueLive from 'vue-live'
4+
import Lorem from 'vue-lorem-ipsum'
35
import Chakra, { CThemeProvider, CColorModeProvider, CReset } from '../packages/chakra-ui-core/src'
46
import Canvas from './components/Canvas.vue'
57
import theme from '../packages/chakra-ui-core/src/lib/theme'
6-
import icons from '../packages/chakra-ui-core/src/lib/internal-icons'
78
import storyBookTheme from './theme'
89

910
import {
@@ -81,6 +82,10 @@ addDecorator(() => ({
8182
components: { CThemeProvider, CColorModeProvider, CReset, Canvas }
8283
}));
8384

85+
// For playground
86+
Vue.use(VueLive)
87+
88+
Vue.component('Lorem', Lorem)
8489

8590
function loadStories() {
8691
const req = require.context('../packages/chakra-ui-core/src', true, /\.stories\.(js|mdx)$/);

babel.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,5 @@ module.exports = {
33
'@vue/app',
44
'@babel/preset-env',
55
'@vue/babel-preset-jsx'
6-
],
7-
env: {
8-
test: {
9-
plugins: ['transform-es2015-modules-commonjs']
10-
}
11-
}
6+
]
127
}

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ module.exports = {
2929
watchPlugins: [
3030
'jest-watch-typeahead/filename',
3131
'jest-watch-typeahead/testname'
32-
]
32+
],
33+
testEnvironmentOptions: { resources: 'usable' }
3334
}

jsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"~/*": ["./*"],
6+
"@/*": ["./*"],
7+
"~~/*": ["./*"],
8+
"@@/*": ["./*"]
9+
}
10+
},
11+
"exclude": ["node_modules", ".nuxt", "dist"]
12+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"mixpanel-browser": "^2.36.0",
115115
"node-fetch": "^2.6.0",
116116
"node-sass": "^4.13.1",
117-
"nuxt": "^2.12.2",
117+
"nuxt": "^2.13.3",
118118
"portal-vue": "^2.1.6",
119119
"prismjs": "^1.19.0",
120120
"register-service-worker": "^1.6.2",
@@ -141,13 +141,14 @@
141141
"@testing-library/user-event": "^10.0.0",
142142
"@testing-library/vue": "^4.1.0",
143143
"@vue/devtools": "^5.3.3",
144-
"babel-eslint": "^10.0.1",
144+
"babel-eslint": "^10.1.0",
145145
"bundlesize": "^0.18.0",
146146
"cross-env": "^7.0.2",
147147
"eslint-config-prettier": "^6.10.0",
148148
"eslint-loader": "^3.0.3",
149149
"eslint-plugin-nuxt": ">=0.4.2",
150150
"eslint-plugin-prettier": "^3.1.2",
151+
"eslint-plugin-testing-library": "^3.3.1",
151152
"jest": "^25.1.0",
152153
"prettier": "^1.19.1",
153154
"rimraf": "^3.0.2",

packages/chakra-ui-core/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 0.6.0
4+
5+
### Minor Changes
6+
7+
- 38460db: Resolves performance issues my changing the underlying styling api.
8+
Lots of optimizations in low-level primitives that yield better runtime performance for Chakra UI Vue.
9+
310
## 0.5.10
411

512
### Patch Changes

packages/chakra-ui-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@chakra-ui/vue",
3-
"version": "0.5.10",
4-
"description": "Build Accessible and Responsive Vue.js applications with ease",
3+
"version": "0.6.0",
4+
"description": "Build Accessible and Responsive Vue.js websites and applications with speed ⚡️",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
77
"unpkg": "dist/umd/index.min.js",

0 commit comments

Comments
 (0)