@@ -10,7 +10,7 @@ import { normalizePath } from './utils'
10
10
let settings : Settings = {
11
11
tailwindCSS : {
12
12
files : {
13
- exclude : [ ] ,
13
+ exclude : [ '**/.git/**' , '**/node_modules/**' , '**/.hg/**' , '**/.svn/**' ] ,
14
14
} ,
15
15
} ,
16
16
} as any
@@ -115,10 +115,7 @@ testFixture('v4/workspaces', [
115
115
{
116
116
config : 'packages/admin/app.css' ,
117
117
selectors : [
118
- '{URL}/node_modules/tailwindcss/**' ,
119
- '{URL}/node_modules/tailwindcss/index.css' ,
120
- '{URL}/node_modules/tailwindcss/theme.css' ,
121
- '{URL}/node_modules/tailwindcss/utilities.css' ,
118
+ '{URL}/packages/admin/*' ,
122
119
'{URL}/packages/admin/**' ,
123
120
'{URL}/packages/admin/app.css' ,
124
121
'{URL}/packages/admin/package.json' ,
@@ -127,15 +124,12 @@ testFixture('v4/workspaces', [
127
124
{
128
125
config : 'packages/web/app.css' ,
129
126
selectors : [
130
- '{URL}/node_modules/tailwindcss/**' ,
131
- '{URL}/node_modules/tailwindcss/index.css' ,
132
- '{URL}/node_modules/tailwindcss/theme.css' ,
133
- '{URL}/node_modules/tailwindcss/utilities.css' ,
134
127
'{URL}/packages/style-export/**' ,
135
128
'{URL}/packages/style-export/lib.css' ,
136
129
'{URL}/packages/style-export/theme.css' ,
137
130
'{URL}/packages/style-main-field/**' ,
138
131
'{URL}/packages/style-main-field/lib.css' ,
132
+ '{URL}/packages/web/*' ,
139
133
'{URL}/packages/web/**' ,
140
134
'{URL}/packages/web/app.css' ,
141
135
'{URL}/packages/web/package.json' ,
@@ -148,28 +142,24 @@ testFixture('v4/auto-content', [
148
142
{
149
143
config : 'src/app.css' ,
150
144
content : [
145
+ '{URL}/*' ,
151
146
'{URL}/package.json' ,
152
147
'{URL}/src/index.html' ,
153
148
'{URL}/src/components/example.html' ,
154
- '{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 }' ,
149
+ '{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 }' ,
155
150
] ,
156
151
} ,
157
152
] )
158
153
159
154
testFixture ( 'v4/auto-content-split' , [
160
- //
161
- {
162
- // TODO: This should _probably_ not be present
163
- config : 'node_modules/tailwindcss/index.css' ,
164
- content : [ ] ,
165
- } ,
166
155
{
167
156
config : 'src/app.css' ,
168
157
content : [
158
+ '{URL}/*' ,
169
159
'{URL}/package.json' ,
170
160
'{URL}/src/index.html' ,
171
161
'{URL}/src/components/example.html' ,
172
- '{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 }' ,
162
+ '{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 }' ,
173
163
] ,
174
164
} ,
175
165
] )
@@ -179,23 +169,23 @@ testFixture('v4/custom-source', [
179
169
{
180
170
config : 'admin/app.css' ,
181
171
content : [
182
- '{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}' ,
183
- '{URL}/admin/**/*.bin' ,
172
+ '{URL}/*' ,
184
173
'{URL}/admin/foo.bin' ,
174
+ '{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}}' ,
185
175
'{URL}/package.json' ,
186
176
'{URL}/shared.html' ,
187
- '{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 }' ,
177
+ '{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 }' ,
188
178
] ,
189
179
} ,
190
180
{
191
181
config : 'web/app.css' ,
192
182
content : [
193
- '{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}' ,
194
- '{URL}/web/*.bin' ,
195
- '{URL}/web/bar.bin' ,
183
+ '{URL}/*' ,
184
+ '{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}' ,
196
185
'{URL}/package.json' ,
197
186
'{URL}/shared.html' ,
198
- '{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}' ,
187
+ '{URL}/web/bar.bin' ,
188
+ '{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}' ,
199
189
] ,
200
190
} ,
201
191
] )
@@ -204,7 +194,7 @@ testFixture('v4/missing-files', [
204
194
//
205
195
{
206
196
config : 'app.css' ,
207
- content : [ '{URL}/package.json' ] ,
197
+ content : [ '{URL}/*' , '{URL}/ package.json'] ,
208
198
} ,
209
199
] )
210
200
@@ -213,8 +203,9 @@ testFixture('v4/path-mappings', [
213
203
{
214
204
config : 'app.css' ,
215
205
content : [
206
+ '{URL}/*' ,
216
207
'{URL}/package.json' ,
217
- '{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 }' ,
208
+ '{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 }' ,
218
209
'{URL}/src/a/my-config.ts' ,
219
210
'{URL}/src/a/my-plugin.ts' ,
220
211
'{URL}/tsconfig.json' ,
@@ -226,7 +217,7 @@ testFixture('v4/invalid-import-order', [
226
217
//
227
218
{
228
219
config : 'tailwind.css' ,
229
- content : [ '{URL}/package.json' ] ,
220
+ content : [ '{URL}/*' , '{URL}/ package.json'] ,
230
221
} ,
231
222
] )
232
223
0 commit comments