mirror of
https://github.com/moebooru/moebooru
synced 2025-08-28 20:47:42 +00:00
16 lines
411 B
JavaScript
16 lines
411 B
JavaScript
|
#!/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',
|
||
|
});
|