Home / File/ source.test.ts — tailwindcss Source File

source.test.ts — tailwindcss Source File

Architecture documentation for source.test.ts, a typescript file in the tailwindcss codebase. 5 imports, 0 dependents.

File typescript Oxide 5 imports

Entity Profile

Dependency Diagram

graph LR
  08da985a_18db_13c0_3229_7ee2a8b26817["source.test.ts"]
  7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"]
  08da985a_18db_13c0_3229_7ee2a8b26817 --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac
  ce18acb2_833c_61a7_166d_0fd7613ce1c0["candidate"]
  08da985a_18db_13c0_3229_7ee2a8b26817 --> ce18acb2_833c_61a7_166d_0fd7613ce1c0
  44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"]
  08da985a_18db_13c0_3229_7ee2a8b26817 --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04
  8ff4bb92_b963_efb6_cca2_1da4b3ea849b["dedent"]
  08da985a_18db_13c0_3229_7ee2a8b26817 --> 8ff4bb92_b963_efb6_cca2_1da4b3ea849b
  89aef3dd_1eed_c141_d425_b8949215a653["node:path"]
  08da985a_18db_13c0_3229_7ee2a8b26817 --> 89aef3dd_1eed_c141_d425_b8949215a653
  style 08da985a_18db_13c0_3229_7ee2a8b26817 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import dedent from 'dedent'
import path from 'node:path'
import { candidate, css, html, js, json, test, yaml } from '../utils'

test(
  'auto source detection kitchen sink',
  {
    fs: {
      'package.json': json`
        {
          "dependencies": {
            "postcss": "^8",
            "postcss-cli": "^10",
            "tailwindcss": "workspace:^",
            "@tailwindcss/postcss": "workspace:^"
          }
        }
      `,
      'postcss.config.js': js`
        module.exports = {
          plugins: {
            '@tailwindcss/postcss': {},
          },
        }
      `,
      'index.css': css`
        @reference 'tailwindcss/theme';

        /* (1) */
        /* - Only './src' should be auto-scanned, not the current working directory */
        /* - .gitignore'd paths should be ignored (node_modules) */
        /* - Binary extensions should be ignored (jpg, zip) */
        @import 'tailwindcss/utilities' source('./src');

        /* (2) */
        /* - All HTML and JSX files in 'ignored/components' should be scanned */
        /* - All other extensions should be ignored */
        @source "./ignored/components/*.{html,jsx}";

        /* (3) */
        /* - './components' should be auto-scanned in addition to './src' */
        /* - './components/ignored.html' should still be ignored */
        /* - Binary extensions in './components' should be ignored */
        @source "./components";

        /* (4) */
        /* - './pages' should be auto-scanned */
        /* - Only '.html' files should be included */
        /* - './page/ignored.html' will not be ignored because of the specific pattern */
        @source "./pages/**/*.html";
      `,

      '.gitignore': dedent`
        /src/ignored
        /ignored
        /components/ignored.html
        /pages/ignored.html
      `,

      // (1)
// ... (772 more lines)

Domain

Dependencies

Frequently Asked Questions

What does source.test.ts do?
source.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain.
What does source.test.ts depend on?
source.test.ts imports 5 module(s): candidate, dedent, node:path, test, utils.ts.
Where is source.test.ts in the architecture?
source.test.ts is located at integrations/postcss/source.test.ts (domain: Oxide, directory: integrations/postcss).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free