UNPKG

crypto-slots

Version:

A minimal test server is provided, see server

59 lines (54 loc) 1.02 kB
import { execSync } from 'child_process'; import cjs from 'rollup-plugin-commonjs'; // TODO: read const icons = [ 'btc', 'eth', 'xrp', 'bch', 'ltc', 'eos', 'bnb', 'usdt', 'xlm', 'ada', 'trx', 'xmr', 'dash', 'bsv', 'xtz' ]; for (const icon of icons) { execSync(`cp node_modules/cryptocurrency-icons/svg/color/${icon}.svg www/assets/${icon}.svg`) } execSync(`cp node_modules/custom-svg-iconset/src/custom-svg-iconset.js www/iconset.js`) execSync('rm -f www/chunk-*.js'); execSync('rm -f www/slots/chunk-*.js'); export default [{ input: 'src/client/slots.js', output: { dir: 'www', format: 'es' }, plugins: [ cjs() ] }, { input: ['src/client/slots/default-slot.js', 'src/client/slots/onebythree-slot.js'], output: { dir: 'www/slots', format: 'es' }, plugins: [ cjs() ] }, { input: 'src/server/server.js', output: { dir: './', format: 'cjs' }, plugins: [ cjs() ] }]