Skip to content

Commit d8319eb

Browse files
committed
test: tailwindcss
1 parent f3db4d9 commit d8319eb

File tree

10 files changed

+197
-18
lines changed

10 files changed

+197
-18
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'@vue/cli-plugin-babel/preset'
4-
]
3+
'@vue/cli-plugin-babel/preset',
4+
],
55
}

packages/test-e2e-composable-vue3/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"eslint-plugin-promise": "^4.2.1",
3838
"eslint-plugin-standard": "^4.0.0",
3939
"eslint-plugin-vue": "^7.0.0-0",
40+
"tailwindcss": "^1.0.1",
4041
"typescript": "^4.0.3"
4142
}
4243
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: [
3+
require('tailwindcss')(),
4+
require('autoprefixer')(),
5+
],
6+
}

packages/test-e2e-composable-vue3/server.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,21 @@ const resolvers = {
8989
})
9090
pubsub.publish('messageUpdated', { messageUpdated: message })
9191
return message
92-
}
92+
},
9393
},
9494

9595
Subscription: {
9696
messageAdded: {
9797
subscribe: withFilter(
9898
() => pubsub.asyncIterator('messageAdded'),
99-
(payload, variables) => payload.messageAdded.channel.id === variables.channelId,
99+
(payload, variables) => payload.messageAdded.channel.id === variables.channelId,
100100
),
101101
},
102102

103103
messageUpdated: {
104104
subscribe: withFilter(
105105
() => pubsub.asyncIterator('messageUpdated'),
106-
(payload, variables) => payload.messageUpdated.channel.id === variables.channelId,
106+
(payload, variables) => payload.messageUpdated.channel.id === variables.channelId,
107107
),
108108
},
109109
},
@@ -117,5 +117,5 @@ const server = new ApolloServer({
117117
server.listen({
118118
port: 4042,
119119
}).then(({ url }) => {
120-
console.log(`🚀 Server ready at ${url}`);
120+
console.log(`🚀 Server ready at ${url}`)
121121
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@tailwind base;
2+
3+
@tailwind components;
4+
5+
@tailwind utilities;

packages/test-e2e-composable-vue3/src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { createApp, h, provide } from 'vue'
22
import { DefaultApolloClient } from '../../vue-apollo-composable/dist'
33
import { apolloClient } from './apollo'
44
import App from './App.vue'
5+
import '@/assets/styles/tailwind.postcss'
56

67
createApp({
78
setup () {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module.exports = {
2+
}

packages/test-e2e-composable-vue3/tests/e2e/plugins/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ module.exports = (on, config) => {
2020
integrationFolder: 'tests/e2e/specs',
2121
screenshotsFolder: 'tests/e2e/screenshots',
2222
videosFolder: 'tests/e2e/videos',
23-
supportFile: 'tests/e2e/support/index.js'
23+
supportFile: 'tests/e2e/support/index.js',
2424
})
2525
}

postcss.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {}

0 commit comments

Comments
 (0)