@@ -9,7 +9,7 @@ import { css, defineTest, js, json, scss, Storage, TestUtils } from './testing'
9
9
let settings : Settings = {
10
10
tailwindCSS : {
11
11
files : {
12
- exclude : [ ] ,
12
+ exclude : [ '**/.git/**' , '**/node_modules/**' , '**/.hg/**' , '**/.svn/**' ] ,
13
13
} ,
14
14
} ,
15
15
} as any
@@ -114,10 +114,7 @@ testFixture('v4/workspaces', [
114
114
{
115
115
config : 'packages/admin/app.css' ,
116
116
selectors : [
117
- '{URL}/node_modules/tailwindcss/**' ,
118
- '{URL}/node_modules/tailwindcss/index.css' ,
119
- '{URL}/node_modules/tailwindcss/theme.css' ,
120
- '{URL}/node_modules/tailwindcss/utilities.css' ,
117
+ '{URL}/packages/admin/*' ,
121
118
'{URL}/packages/admin/**' ,
122
119
'{URL}/packages/admin/app.css' ,
123
120
'{URL}/packages/admin/package.json' ,
@@ -126,15 +123,12 @@ testFixture('v4/workspaces', [
126
123
{
127
124
config : 'packages/web/app.css' ,
128
125
selectors : [
129
- '{URL}/node_modules/tailwindcss/**' ,
130
- '{URL}/node_modules/tailwindcss/index.css' ,
131
- '{URL}/node_modules/tailwindcss/theme.css' ,
132
- '{URL}/node_modules/tailwindcss/utilities.css' ,
133
126
'{URL}/packages/style-export/**' ,
134
127
'{URL}/packages/style-export/lib.css' ,
135
128
'{URL}/packages/style-export/theme.css' ,
136
129
'{URL}/packages/style-main-field/**' ,
137
130
'{URL}/packages/style-main-field/lib.css' ,
131
+ '{URL}/packages/web/*' ,
138
132
'{URL}/packages/web/**' ,
139
133
'{URL}/packages/web/app.css' ,
140
134
'{URL}/packages/web/package.json' ,
@@ -147,28 +141,24 @@ testFixture('v4/auto-content', [
147
141
{
148
142
config : 'src/app.css' ,
149
143
content : [
144
+ '{URL}/*' ,
150
145
'{URL}/package.json' ,
151
146
'{URL}/src/index.html' ,
152
147
'{URL}/src/components/example.html' ,
153
- '{URL}/src/**/*.{py,tpl,js,vue,php,mjs,cts,jsx,tsx,rhtml,slim,handlebars,twig,rs,njk,svelte ,liquid,pug, md,ts,heex ,mts,astro, nunjucks,rb,eex,haml,cjs,html,hbs,jade,aspx,razor,erb,mustache,mdx }' ,
148
+ '{URL}/src/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx ,liquid,md,mdx,mjs ,mts,mustache,njk, nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue }' ,
154
149
] ,
155
150
} ,
156
151
] )
157
152
158
153
testFixture ( 'v4/auto-content-split' , [
159
- //
160
- {
161
- // TODO: This should _probably_ not be present
162
- config : 'node_modules/tailwindcss/index.css' ,
163
- content : [ ] ,
164
- } ,
165
154
{
166
155
config : 'src/app.css' ,
167
156
content : [
157
+ '{URL}/*' ,
168
158
'{URL}/package.json' ,
169
159
'{URL}/src/index.html' ,
170
160
'{URL}/src/components/example.html' ,
171
- '{URL}/src/**/*.{py,tpl,js,vue,php,mjs,cts,jsx,tsx,rhtml,slim,handlebars,twig,rs,njk,svelte ,liquid,pug, md,ts,heex ,mts,astro, nunjucks,rb,eex,haml,cjs,html,hbs,jade,aspx,razor,erb,mustache,mdx }' ,
161
+ '{URL}/src/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx ,liquid,md,mdx,mjs ,mts,mustache,njk, nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue }' ,
172
162
] ,
173
163
} ,
174
164
] )
@@ -178,23 +168,23 @@ testFixture('v4/custom-source', [
178
168
{
179
169
config : 'admin/app.css' ,
180
170
content : [
181
- '{URL}/admin/**/*.{py,tpl,js,vue,php,mjs,cts,jsx,tsx,rhtml,slim,handlebars,twig,rs,njk,svelte,liquid,pug,md,ts,heex,mts,astro,nunjucks,rb,eex,haml,cjs,html,hbs,jade,aspx,razor,erb,mustache,mdx}' ,
182
- '{URL}/admin/**/*.bin' ,
171
+ '{URL}/*' ,
183
172
'{URL}/admin/foo.bin' ,
173
+ '{URL}/admin/{**/*.bin,**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}}' ,
184
174
'{URL}/package.json' ,
185
175
'{URL}/shared.html' ,
186
- '{URL}/web/**/*.{py,tpl,js,vue,php,mjs,cts,jsx,tsx,rhtml,slim,handlebars,twig,rs,njk,svelte ,liquid,pug, md,ts,heex ,mts,astro, nunjucks,rb,eex,haml,cjs,html,hbs,jade,aspx,razor,erb,mustache,mdx }' ,
176
+ '{URL}/web/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx ,liquid,md,mdx,mjs ,mts,mustache,njk, nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue }' ,
187
177
] ,
188
178
} ,
189
179
{
190
180
config : 'web/app.css' ,
191
181
content : [
192
- '{URL}/admin/**/*.{py,tpl,js,vue,php,mjs,cts,jsx,tsx,rhtml,slim,handlebars,twig,rs,njk,svelte,liquid,pug,md,ts,heex,mts,astro,nunjucks,rb,eex,haml,cjs,html,hbs,jade,aspx,razor,erb,mustache,mdx}' ,
193
- '{URL}/web/*.bin' ,
194
- '{URL}/web/bar.bin' ,
182
+ '{URL}/*' ,
183
+ '{URL}/admin/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}' ,
195
184
'{URL}/package.json' ,
196
185
'{URL}/shared.html' ,
197
- '{URL}/web/**/*.{py,tpl,js,vue,php,mjs,cts,jsx,tsx,rhtml,slim,handlebars,twig,rs,njk,svelte,liquid,pug,md,ts,heex,mts,astro,nunjucks,rb,eex,haml,cjs,html,hbs,jade,aspx,razor,erb,mustache,mdx}' ,
186
+ '{URL}/web/bar.bin' ,
187
+ '{URL}/web/{**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue},*.bin}' ,
198
188
] ,
199
189
} ,
200
190
] )
@@ -203,7 +193,7 @@ testFixture('v4/missing-files', [
203
193
//
204
194
{
205
195
config : 'app.css' ,
206
- content : [ '{URL}/package.json' ] ,
196
+ content : [ '{URL}/*' , '{URL}/ package.json'] ,
207
197
} ,
208
198
] )
209
199
@@ -212,8 +202,9 @@ testFixture('v4/path-mappings', [
212
202
{
213
203
config : 'app.css' ,
214
204
content : [
205
+ '{URL}/*' ,
215
206
'{URL}/package.json' ,
216
- '{URL}/src/**/*.{py,tpl,js,vue,php,mjs,cts,jsx,tsx,rhtml,slim,handlebars,twig,rs,njk,svelte ,liquid,pug, md,ts,heex ,mts,astro, nunjucks,rb,eex,haml,cjs,html,hbs,jade,aspx,razor,erb,mustache,mdx }' ,
207
+ '{URL}/src/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx ,liquid,md,mdx,mjs ,mts,mustache,njk, nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue }' ,
217
208
'{URL}/src/a/my-config.ts' ,
218
209
'{URL}/src/a/my-plugin.ts' ,
219
210
'{URL}/tsconfig.json' ,
@@ -225,7 +216,7 @@ testFixture('v4/invalid-import-order', [
225
216
//
226
217
{
227
218
config : 'tailwind.css' ,
228
- content : [ '{URL}/package.json' ] ,
219
+ content : [ '{URL}/*' , '{URL}/ package.json'] ,
229
220
} ,
230
221
] )
231
222
0 commit comments