MCPcopy
hub / github.com/josdejong/mathjs / createBanner

Function createBanner

gulpfile.js:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51// generate banner with today's date and correct version
52function createBanner () {
53 const today = new Date().toISOString().substr(0, 10) // today, formatted as yyyy-mm-dd
54 const version = getVersion()
55
56 return String(fs.readFileSync(HEADER))
57 .replace('@@date', today)
58 .replace('@@version', version)
59}
60
61// generate a js file containing the version number
62function updateVersionFile (done) {

Callers 3

gulpfile.jsFile · 0.85
bundleFunction · 0.85
writeCompiledHeaderFunction · 0.85

Calls 1

getVersionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…