feat: implement build system and development workflow
- Add npm scripts for CSS/JS compilation (build:css, build:js, build) - Create PowerShell build automation script - Document development workflow in README - Add troubleshooting guide for build issues - Specify proper file structure and compilation process Supports Tailwind CSS v3.4.0 and esbuild bundling with source maps.
This commit is contained in:
34
node_modules/tailwindcss/src/util/validateFormalSyntax.js
generated
vendored
Normal file
34
node_modules/tailwindcss/src/util/validateFormalSyntax.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { length, percentage } from './dataTypes'
|
||||
import { splitAtTopLevelOnly } from './splitAtTopLevelOnly'
|
||||
|
||||
/**
|
||||
*
|
||||
* https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#formal_syntax
|
||||
*
|
||||
* background-size =
|
||||
* <bg-size>#
|
||||
*
|
||||
* <bg-size> =
|
||||
* [ <length-percentage [0,∞]> | auto ]{1,2} |
|
||||
* cover |
|
||||
* contain
|
||||
*
|
||||
* <length-percentage> =
|
||||
* <length> |
|
||||
* <percentage>
|
||||
*
|
||||
* @param {string} value
|
||||
*/
|
||||
export function backgroundSize(value) {
|
||||
let keywordValues = ['cover', 'contain']
|
||||
// the <length-percentage> type will probably be a css function
|
||||
// so we have to use `splitAtTopLevelOnly`
|
||||
return splitAtTopLevelOnly(value, ',').every((part) => {
|
||||
let sizes = splitAtTopLevelOnly(part, '_').filter(Boolean)
|
||||
if (sizes.length === 1 && keywordValues.includes(sizes[0])) return true
|
||||
|
||||
if (sizes.length !== 1 && sizes.length !== 2) return false
|
||||
|
||||
return sizes.every((size) => length(size) || percentage(size) || size === 'auto')
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user