bash-calendar/build.mjs

17 lines
362 B
JavaScript

import esbuild from 'esbuild'
import pkg from './package.json' assert { type: 'json' }
const { version } = pkg
esbuild.build({
entryPoints: ['src/index.js'],
sourcemap: false,
bundle: true,
define: { 'process.env.APP_VERSION': `'${version}'` },
platform: 'node',
target: 'node10',
minify: true,
// external: ['chalk'],
outfile: 'index.js'
})
终端版万年历, 可显示农历、法定节假日。
JavaScript 100%