mirror of https://github.com/go-gitea/gitea
move some scripts from 'build' to 'tools' directory, misc refactors (#29844)
- Move some scripts from `build` to new `tools` dir. Eventually i would like to move all but let's do it step-by-step. - Add dir to eslint and move the files into vars. - Update docs accordingly. - While updating docs I noticed we were incorrectly having `public/img` path still in a few places. Replace those with the current `public/assets/img`. --------- Co-authored-by: Nanguan Lin <nanguanlin6@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>pull/29828/head
parent
5ca65d3390
commit
095fdd691d
@ -1,7 +1,7 @@ |
||||
#!/usr/bin/env node
|
||||
import imageminZopfli from 'imagemin-zopfli'; |
||||
import imageminZopfli from 'imagemin-zopfli'; // eslint-disable-line i/no-unresolved
|
||||
import {loadSVGFromString, Canvas, Rect, util} from 'fabric/node'; // eslint-disable-line i/no-unresolved
|
||||
import {optimize} from 'svgo'; |
||||
import {loadSVGFromString, Canvas, Rect, util} from 'fabric/node'; |
||||
import {readFile, writeFile} from 'node:fs/promises'; |
||||
import {argv, exit} from 'node:process'; |
||||
|
Loading…
Reference in new issue