Skip to content

Commit

Permalink
chore: move test to dev-app
Browse files Browse the repository at this point in the history
  • Loading branch information
bre97-web committed Sep 4, 2024
1 parent edd7a91 commit 06aab87
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 40 deletions.
3 changes: 2 additions & 1 deletion test/index.html → dev-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
</head>

<body>

<div
id="container"
class="max-w-6xl px-4 md:px-16 lg:px-32 xl:mx-auto flex flex-col justify-center [&>h1]:text-headline-large [&>h1+*]:border [&>h1+*]:border-outline [&>h1+*]:shape-medium [&>h1+*]:bg-surface-container-lowest [&>h1]:mt-16 [&>h1]:mb-8 [&>h1+*]:p-4 [&>h1+*]:overflow-auto py-32"
Expand Down Expand Up @@ -273,6 +272,8 @@ <h1>Sizing</h1>
<span class="w-expanded">w-expanded</span>
<span class="w-large">w-large</span>
</div>

<tokens-list></tokens-list>
</div>


Expand Down
5 changes: 5 additions & 0 deletions dev-app/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import './input.css';

import { runAll } from './tests/test';

runAll()
File renamed without changes.
11 changes: 3 additions & 8 deletions test/package.json → dev-app/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"name": "test",
"version": "1.0.0",
"main": "tailwind.config.js",
"private" :"true",
"name": "dev-app",
"version": "0.0.0",
"private": "true",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"type": "module",
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"devDependencies": {
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
Expand Down
File renamed without changes.
29 changes: 29 additions & 0 deletions dev-app/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { provideBorder, provideColor, provideElevation, provideMotion, provideShape, provideSizing, provideTypography, provideWindowMediaQuery } from '../src/index'
// import { provideBorder, provideColor, provideElevation, provideMotion, provideShape, provideSizing, provideTypography, provideWindowMediaQuery } from '../build'

export const color = provideColor()
export const elevation = provideElevation({})
export const motion = provideMotion()
export const shape = provideShape()
export const typo = provideTypography()
export const border = provideBorder()
export const mq = provideWindowMediaQuery()
export const sizing = provideSizing()

/** @type {import('tailwindcss').Config} */
export default {
content: [
'./index.html',
],
plugins: [
color.getPlugin(),
elevation.getPlugin(),
motion.getPlugin(),
shape.getPlugin(),
typo.getPlugin(),
border.getPlugin(),
mq.getPlugin(),
sizing.getPlugin(),
],
}

27 changes: 27 additions & 0 deletions dev-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"compilerOptions": {
"baseUrl": "./",
"outDir": "build",
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "bundler",
"importHelpers": true,
"isolatedModules": true,
"esModuleInterop": true,
"verbatimModuleSyntax": true,
"useDefineForClassFields": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"target": "ES2022",
"module": "ES2022",
"lib": [
"ES2022"
],
"types": [
"vite/client"
],
},
"include": [
"./**/*.ts",
]
}
4 changes: 2 additions & 2 deletions test/vite.config.ts → dev-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export default defineConfig({
outDir: '../docs',
emptyOutDir: true,
minify: true,
}
})
},
})
1 change: 0 additions & 1 deletion test/index.ts

This file was deleted.

28 changes: 0 additions & 28 deletions test/tailwind.config.ts

This file was deleted.

0 comments on commit 06aab87

Please sign in to comment.