@calibur/skr-template
Advanced tools
Comparing version 0.0.24-alpha.0 to 0.0.27-alpha.0
{ | ||
"name": "@calibur/skr-template", | ||
"version": "0.0.24-alpha.0", | ||
"version": "0.0.27-alpha.0", | ||
"author": "falstack <icesilt@outlook.com>", | ||
"license": "MIT", | ||
"gitHead": "0fe3cd5c70165f46dfb55693d4fe8f237daf773b" | ||
"gitHead": "639108f7d3cbdad330e13cd8f6b4abaca57af18c" | ||
} |
@@ -1,7 +0,7 @@ | ||
const init = async (opts) => { | ||
const beforeCheckVersion = async (opts) => { | ||
console.log('this hook called before check version', opts); | ||
} | ||
const copy = async (opts) => { | ||
console.log('this hook called before copy files', opts); | ||
const afterCheckVersion = async (opts) => { | ||
console.log('this hook called after check version', opts); | ||
return { | ||
@@ -12,3 +12,10 @@ currentTime: Date.now() | ||
const done = async (opts) => { | ||
const beforeCopyFiles = async (opts, files) => { | ||
console.log('this hook called before copy files', opts); | ||
if (opts.isMonorepo) { | ||
return files.filter(_ => !_.startsWith('_')) | ||
} | ||
} | ||
const afterCopyFiles = async (opts) => { | ||
console.log('this hook called after copy files', opts); | ||
@@ -18,5 +25,6 @@ } | ||
module.exports = { | ||
init, | ||
copy, | ||
done | ||
beforeCheckVersion, | ||
afterCheckVersion, | ||
beforeCopyFiles, | ||
afterCopyFiles | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47476
59
846