1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

This is a maintenance commit with no released build.

* Added: `npm run font` command for editing the Fontello icon font. Use it to get started, then start the development server with `npm start` and changes will automatically save when you click `Export Font` from Fontello.
* Changed: The list of Fontello icons is now extracted from our Fontello config file so that it doesn't have to be manually updated.
This commit is contained in:
SirStendec 2019-09-29 15:49:29 -04:00
parent 1c0f7edab5
commit 38c87840af
23 changed files with 1502 additions and 166 deletions

View file

@ -3,6 +3,8 @@ const path = require('path');
const merge = require('webpack-merge');
const common = require('./webpack.web.common.js');
const {exec} = require('child_process');
const CopyPlugin = require('copy-webpack-plugin');
const webpack = require('webpack');
@ -52,6 +54,23 @@ module.exports = merge(common, {
next();
});
app.get('/update_font', (req, res) => {
const proc = exec('npm run font:save');
proc.stdout.on('data', data => {
console.log('FONT>>', data);
});
proc.stderr.on('data', data => {
console.error('FONT>>', data);
});
proc.on('close', code => {
console.log('FONT>> Exited with code', code);
res.redirect(req.headers.referer);
});
});
app.get('/dev_server', (req, res) => {
res.json({
path: process.cwd(),