eeprom/build.js

27 lines
692 B
JavaScript
Raw Normal View History

2024-06-11 00:36:45 +00:00
const assproc = require('@railcomm/assproc');
const { join: pathJoin } = require('path');
2024-02-02 21:00:24 +00:00
const fs = require('fs');
(async () => {
2024-06-11 00:36:45 +00:00
const isDebug = fs.existsSync(pathJoin(__dirname, '.debug'));
const env = {
root: __dirname,
source: pathJoin(__dirname, 'scripts'),
public: pathJoin(__dirname, 'public'),
debug: isDebug,
swc: {
es: 'es2021',
},
};
const tasks = {
js: [
{ source: 'eepromv1.js', target: '/scripts', name: 'eepromv1.js', es: 'es5' },
{ source: 'eepromv1a.js', target: '/scripts', name: 'eepromv1a.js' },
],
};
await assproc.process(env, tasks);
2024-02-02 21:00:24 +00:00
})();