font-awesome-animation/scripts/generate_banner.js
Louis Lin 35c6e176be refactor: switch node-sass from Myth + use SCSS instead to generate CSS
BREAKING CHANGE:

- `src` folder has become `scss`
- `dist` folder has become `css`
2021-01-22 21:11:12 +01:00

18 lines
438 B
JavaScript

const Handlebars = require('handlebars');
const fs = require('fs');
const pjson = require('../package.json');
const template = Handlebars.compile('/*! {{ name }} v{{ version }} | MIT License | https://github.com/{{ author }}/{{ name }} */');
const result = template(pjson);
const outputFilePath = process.argv.slice(1)[1];
fs.writeFile(outputFilePath, result, err => {
if (err) {
console.log(err);
process.exit(1);
}
});