shit more or less works for the very basic stuff

This commit is contained in:
Henry Jameson 2024-01-23 19:18:55 +02:00
commit 22b32f149d
9 changed files with 132 additions and 22 deletions

View file

@ -1,8 +1,7 @@
// import { topoSort } from 'src/services/theme_data/theme_data.service.js'
import {
getAllPossibleCombinations,
init,
ruleToSelector
init
} from 'src/services/theme_data/theme_data_3.service.js'
import {
sampleRules
@ -19,8 +18,8 @@ describe.only('Theme Data 3', () => {
describe('init', () => {
it('test simple case', () => {
const out = init(sampleRules)
console.log(JSON.stringify(out, null, 2))
out.forEach(r => console.log(ruleToSelector(r)))
// console.log(JSON.stringify(out, null, 2))
console.log('\n' + out.css.join('\n') + '\n')
})
})
})