mirror of
https://github.com/l-lin/font-awesome-animation.git
synced 2024-12-27 14:01:33 +08:00
35c6e176be
BREAKING CHANGE: - `src` folder has become `scss` - `dist` folder has become `css`
18 lines
438 B
JavaScript
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);
|
|
}
|
|
});
|
|
|