File tree Expand file tree Collapse file tree 10 files changed +7001
-6649
lines changed Expand file tree Collapse file tree 10 files changed +7001
-6649
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "extends": [
3
- "@nuxtjs/eslint-config-typescript"
4
- ],
2
+ "plugins": ["prettier"],
3
+ "extends": "@nuxtjs/eslint-config-typescript",
5
4
"rules": {
6
- "@typescript-eslint/no-unused-vars": [
7
- "off"
8
- ]
9
- }
5
+ "@typescript-eslint/no-unused-vars": ["off"],
6
+ },
10
7
}
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: ci
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
7
pull_request :
8
8
branches :
9
- - master
9
+ - main
10
10
11
11
jobs :
12
12
ci :
@@ -25,27 +25,36 @@ jobs:
25
25
- name : checkout
26
26
uses : actions/checkout@master
27
27
28
- - name : Get yarn cache directory path
29
- id : yarn-cache-dir-path
30
- run : echo "::set-output name=dir::$(yarn cache dir)"
28
+ - uses : pnpm/action-setup@v2
29
+ name : Install pnpm
30
+ id : pnpm-install
31
+ with :
32
+ version : 7
33
+ run_install : false
34
+
35
+ - name : Get pnpm store directory
36
+ id : pnpm-cache
37
+ shell : bash
38
+ run : |
39
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31
40
32
- - uses : actions/cache@v2
33
- id : yarn- cache
41
+ - uses : actions/cache@v3
42
+ name : Setup pnpm cache
34
43
with :
35
- path : ${{ steps.yarn -cache-dir-path .outputs.dir }}
36
- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
44
+ path : ${{ steps.pnpm -cache.outputs.STORE_PATH }}
45
+ key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm- lock.yaml ') }}
37
46
restore-keys : |
38
- ${{ runner.os }}-yarn -
47
+ ${{ runner.os }}-pnpm-store -
39
48
40
49
- name : Install dependencies
41
50
if : steps.cache.outputs.cache-hit != 'true'
42
- run : yarn
51
+ run : pnpm install && pnpm dev:prepare
43
52
44
53
- name : Lint
45
- run : yarn lint
54
+ run : pnpm lint
46
55
47
56
- name : Test
48
- run : yarn test
57
+ run : pnpm test
49
58
50
59
- name : Coverage
51
60
uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 27
27
28
28
## Setup
29
29
30
- ** IMPORTANT NOTE:** This module requires new hooks that works with nuxt ` 2.5.0 ` or ` nuxt-edge ` only.
31
-
32
30
1 . Add ` @nuxtjs/emotion ` dependency to your project
33
31
34
32
``` bash
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nuxtjs/emotion" ,
3
- "version" : " 0.1 .0" ,
3
+ "version" : " 1.0 .0" ,
4
4
"description" : " The Next Generation of CSS-in-JS for Nuxt.js" ,
5
- "repository" : " nuxt-community /emotion-module " ,
5
+ "repository" : " nuxt-modules /emotion" ,
6
6
"license" : " MIT" ,
7
7
"type" : " module" ,
8
8
"exports" : {
34
34
"@nuxt/schema" : " ^3.0.0" ,
35
35
"@nuxt/test-utils" : " ^3.0.0" ,
36
36
"@nuxtjs/eslint-config-typescript" : " ^12.0.0" ,
37
- "eslint" : " ^8.31.0" ,
38
- "nitropack" : " ^1.0.0" ,
37
+ "@typescript-eslint/eslint-plugin" : " ^5.0.0" ,
38
+ "eslint" : " ^8.32.0" ,
39
+ "eslint-plugin-prettier" : " ^4.2.1" ,
40
+ "eslint-plugin-promise" : " ^6.0.0" ,
39
41
"nuxt" : " ^3.0.0" ,
42
+ "prettier" : " ^2.8.3" ,
43
+ "typescript" : " *" ,
40
44
"vitest" : " ^0.27.2"
41
45
},
42
46
"publishConfig" : {
Original file line number Diff line number Diff line change 9
9
</div >
10
10
</template >
11
11
12
- <script setup>
12
+ <script lang="ts" setup>
13
13
import { css } from ' @emotion/css'
14
14
15
15
const styles = reactive ({
You can’t perform that action at this time.
0 commit comments