1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-08 20:32:24 +04:00
Files
tabler/.build/import-illustrations.js
T
Paweł Kuna eb2854634c Add Tabler Illustrations (#1907)
* init illustrations

* tabler illustrations wizard

* illustratinos fixes

* fixes

* Merge branch 'dev-illustrations' of https://github.com/tabler/tabler into dev-illustrations

* Create sour-pets-raise.md
2024-06-16 23:29:28 +02:00

20 lines
387 B
JavaScript

#!/usr/bin/env node
'use strict'
const fs = require('fs'),
path = require('path'),
glob = require('glob');
const illustrations = glob
.sync(path.join(__dirname, `../src/static/illustrations/light/*.png`))
.map((file) => {
return path.basename(file, '.png')
})
fs.writeFileSync(
path.join(__dirname, `../src/pages/_data/illustrations.json`),
JSON.stringify(illustrations)
)