First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
24
node_modules/nes.css/scripts/getBuildData.js
generated
vendored
Normal file
24
node_modules/nes.css/scripts/getBuildData.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
const git = require('git-rev-sync'); /* eslint-disable-line import/no-extraneous-dependencies */
|
||||
|
||||
module.exports = (isCompiled = false) => {
|
||||
let buildData = '';
|
||||
|
||||
if (git.branch() !== 'master') {
|
||||
if (isCompiled) {
|
||||
buildData += `
|
||||
Build Date: ${(new Date()).toISOString()}
|
||||
Node Version: ${process.version}`;
|
||||
}
|
||||
|
||||
buildData += `
|
||||
Branch: ${git.branch()}
|
||||
Commit: ${git.long()}`;
|
||||
|
||||
if (process.env.CIRCLECI) {
|
||||
buildData += `
|
||||
Build Number (CircleCI): ${process.env.CIRCLE_BUILD_NUM}`;
|
||||
}
|
||||
}
|
||||
|
||||
return buildData.replace(/^ +/gm, ' ');
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue