stripes-maker
Version:
Node.js stripe pattern generator and maker. It can create multi-line static and animated SVG stripe patterns.
30 lines (27 loc) • 935 B
JavaScript
import fs from 'fs';
import path from 'path';
const packageJson = fs.readFileSync(path.join(process.cwd(), './package.json'), 'utf-8');
let version = '1.0.0';
try {
const parsed = JSON.parse(packageJson);
version = parsed.version;
} catch (ex) {}
export const settings = {
entryPoints: ['./website/src/index.tsx'],
bundle: true,
sourcemap: 'linked', // external
minify: true,
target: ['es6'],
outfile: './website/assets/index.min.js',
banner: {
js: `/*
ミ☆ Stripes Maker ☆彡
Node.js stripe pattern generator and maker. It can create multi-line static and animated SVG stripe patterns.
Version: ${version}
Author: Miriam Zusin
Contact: miriam.zusin@gmail.com
Documentation: https://github.com/mzusin/stripes-maker
Licensed GPLv3 for open source use, or Commercial License for commercial use - https://github.com/mzusin/index/blob/main/LICENSE.md
*/`,
},
};