mirror of
https://github.com/tabler/tabler.git
synced 2026-08-08 20:32:24 +04:00
eb2854634c
* 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
20 lines
387 B
JavaScript
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)
|
|
)
|