2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-28 20:47:42 +00:00
moebooru/build.js

16 lines
411 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
import coffeeScriptPlugin from 'esbuild-coffeescript';
import esbuild from 'esbuild';
esbuild.build({
bundle: true,
entryPoints: ['app/javascript/application.coffee'],
nodePaths: ['app/javascript'],
outdir: 'app/assets/builds',
plugins: [coffeeScriptPlugin({ bare: true })],
resolveExtensions: ['.coffee', '.js'],
sourcemap: true,
watch: process.argv[2] === '--watch',
});