@@ -9,7 +9,7 @@ import { css, defineTest, js, json, scss, Storage, TestUtils } from './testing'
99let settings : Settings = {
1010 tailwindCSS : {
1111 files : {
12- exclude : [ ] ,
12+ exclude : [ '**/.git/**' , '**/node_modules/**' , '**/.hg/**' , '**/.svn/**' ] ,
1313 } ,
1414 } ,
1515} as any
@@ -114,10 +114,7 @@ testFixture('v4/workspaces', [
114114 {
115115 config : 'packages/admin/app.css' ,
116116 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/*' ,
121118 '{URL}/packages/admin/**' ,
122119 '{URL}/packages/admin/app.css' ,
123120 '{URL}/packages/admin/package.json' ,
@@ -126,15 +123,12 @@ testFixture('v4/workspaces', [
126123 {
127124 config : 'packages/web/app.css' ,
128125 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' ,
133126 '{URL}/packages/style-export/**' ,
134127 '{URL}/packages/style-export/lib.css' ,
135128 '{URL}/packages/style-export/theme.css' ,
136129 '{URL}/packages/style-main-field/**' ,
137130 '{URL}/packages/style-main-field/lib.css' ,
131+ '{URL}/packages/web/*' ,
138132 '{URL}/packages/web/**' ,
139133 '{URL}/packages/web/app.css' ,
140134 '{URL}/packages/web/package.json' ,
@@ -147,28 +141,24 @@ testFixture('v4/auto-content', [
147141 {
148142 config : 'src/app.css' ,
149143 content : [
144+ '{URL}/*' ,
150145 '{URL}/package.json' ,
151146 '{URL}/src/index.html' ,
152147 '{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 }' ,
154149 ] ,
155150 } ,
156151] )
157152
158153testFixture ( 'v4/auto-content-split' , [
159- //
160- {
161- // TODO: This should _probably_ not be present
162- config : 'node_modules/tailwindcss/index.css' ,
163- content : [ ] ,
164- } ,
165154 {
166155 config : 'src/app.css' ,
167156 content : [
157+ '{URL}/*' ,
168158 '{URL}/package.json' ,
169159 '{URL}/src/index.html' ,
170160 '{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 }' ,
172162 ] ,
173163 } ,
174164] )
@@ -178,23 +168,23 @@ testFixture('v4/custom-source', [
178168 {
179169 config : 'admin/app.css' ,
180170 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}/*' ,
183172 '{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}}' ,
184174 '{URL}/package.json' ,
185175 '{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 }' ,
187177 ] ,
188178 } ,
189179 {
190180 config : 'web/app.css' ,
191181 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}' ,
195184 '{URL}/package.json' ,
196185 '{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}' ,
198188 ] ,
199189 } ,
200190] )
@@ -203,7 +193,7 @@ testFixture('v4/missing-files', [
203193 //
204194 {
205195 config : 'app.css' ,
206- content : [ '{URL}/package.json' ] ,
196+ content : [ '{URL}/*' , '{URL}/ package.json'] ,
207197 } ,
208198] )
209199
@@ -212,8 +202,9 @@ testFixture('v4/path-mappings', [
212202 {
213203 config : 'app.css' ,
214204 content : [
205+ '{URL}/*' ,
215206 '{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 }' ,
217208 '{URL}/src/a/my-config.ts' ,
218209 '{URL}/src/a/my-plugin.ts' ,
219210 '{URL}/tsconfig.json' ,
@@ -225,7 +216,7 @@ testFixture('v4/invalid-import-order', [
225216 //
226217 {
227218 config : 'tailwind.css' ,
228- content : [ '{URL}/package.json' ] ,
219+ content : [ '{URL}/*' , '{URL}/ package.json'] ,
229220 } ,
230221] )
231222
0 commit comments