standalone.test.ts — tailwindcss Source File
Architecture documentation for standalone.test.ts, a typescript file in the tailwindcss codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1c0d5f39_ebb2_de2d_b02d_8cd9a794d5c2["standalone.test.ts"] 9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"] 1c0d5f39_ebb2_de2d_b02d_8cd9a794d5c2 --> 9ffd1dda_9675_c514_373d_0f4ab4648249 b7531519_9055_fbfa_5f69_ebc8586b0422["candidate"] 1c0d5f39_ebb2_de2d_b02d_8cd9a794d5c2 --> b7531519_9055_fbfa_5f69_ebc8586b0422 f11e3be9_51f8_140b_68b0_f58ddd082595["test"] 1c0d5f39_ebb2_de2d_b02d_8cd9a794d5c2 --> f11e3be9_51f8_140b_68b0_f58ddd082595 6697e014_f05e_326e_fc13_a0cc17f46c5d["node:os"] 1c0d5f39_ebb2_de2d_b02d_8cd9a794d5c2 --> 6697e014_f05e_326e_fc13_a0cc17f46c5d 2a7660a5_3e09_bd74_37f0_e4e54bc64ce5["node:path"] 1c0d5f39_ebb2_de2d_b02d_8cd9a794d5c2 --> 2a7660a5_3e09_bd74_37f0_e4e54bc64ce5 style 1c0d5f39_ebb2_de2d_b02d_8cd9a794d5c2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import os from 'node:os'
import path from 'node:path'
import { candidate, css, html, js, json, test, ts } from '../utils'
const STANDALONE_BINARY = (() => {
switch (os.platform()) {
case 'win32':
return 'tailwindcss-windows-x64.exe'
case 'darwin':
return os.arch() === 'x64' ? 'tailwindcss-macos-x64' : 'tailwindcss-macos-arm64'
case 'linux':
return os.arch() === 'x64' ? 'tailwindcss-linux-x64' : 'tailwindcss-linux-arm64'
default:
throw new Error(`Unsupported platform: ${os.platform()} ${os.arch()}`)
}
})()
test(
'includes first-party plugins',
{
fs: {
'package.json': json`
{
"dependencies": {
"tailwindcss": "workspace:^",
"@tailwindcss/cli": "workspace:^"
}
}
`,
'index.html': html`
<div className="prose">
<h1>Headline</h1>
</div>
<input type="text" class="form-input" />
<div class="aspect-w-16"></div>
`,
'src/index.css': css`
@reference 'tailwindcss/theme';
@import 'tailwindcss/utilities';
@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';
@plugin '@tailwindcss/aspect-ratio';
`,
},
},
async ({ fs, exec }) => {
await exec(
`${path.resolve(__dirname, `../../packages/@tailwindcss-standalone/dist/${STANDALONE_BINARY}`)} --input src/index.css --output dist/out.css`,
)
await fs.expectFileToContain('dist/out.css', [
candidate`form-input`,
candidate`prose`,
candidate`aspect-w-16`,
])
},
)
test(
// ... (105 more lines)
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does standalone.test.ts do?
standalone.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain, PreProcessors subdomain.
What functions are defined in standalone.test.ts?
standalone.test.ts defines 1 function(s): STANDALONE_BINARY.
What does standalone.test.ts depend on?
standalone.test.ts imports 5 module(s): candidate, node:os, node:path, test, utils.ts.
Where is standalone.test.ts in the architecture?
standalone.test.ts is located at integrations/cli/standalone.test.ts (domain: OxideEngine, subdomain: PreProcessors, directory: integrations/cli).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free