diff --git a/src/init.coffee b/src/init.coffee index 31a1a6a56..e263ab8c7 100644 --- a/src/init.coffee +++ b/src/init.coffee @@ -132,6 +132,7 @@ class Init extends Command contents = fs.readFileSync(templateChildPath).toString() contents = @replacePackageNamePlaceholders(contents, packageName) contents = @replacePackageAuthorPlaceholders(contents, packageAuthor) + contents = @replaceCurrentYearPlaceholders(contents) fs.writeFileSync(sourcePath, contents) replacePackageAuthorPlaceholders: (string, packageAuthor) -> @@ -152,6 +153,9 @@ class Init extends Command else if underscore @underscore(packageName) + replaceCurrentYearPlaceholders: (string) -> + string.replace '__current_year__', new Date().getFullYear() + getTemplatePath: (argv, templateType) -> if argv.template? path.resolve(argv.template) diff --git a/templates/language/LICENSE.md b/templates/language/LICENSE.md index 5f3f53758..d7dd6a89e 100644 --- a/templates/language/LICENSE.md +++ b/templates/language/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2016 +Copyright (c) __current_year__ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/templates/package-coffeescript/LICENSE.md b/templates/package-coffeescript/LICENSE.md index 5f3f53758..d7dd6a89e 100644 --- a/templates/package-coffeescript/LICENSE.md +++ b/templates/package-coffeescript/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2016 +Copyright (c) __current_year__ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/templates/package-javascript/LICENSE.md b/templates/package-javascript/LICENSE.md index 5f3f53758..d7dd6a89e 100644 --- a/templates/package-javascript/LICENSE.md +++ b/templates/package-javascript/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2016 +Copyright (c) __current_year__ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/templates/theme/LICENSE.md b/templates/theme/LICENSE.md index 5f3f53758..d7dd6a89e 100644 --- a/templates/theme/LICENSE.md +++ b/templates/theme/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2016 +Copyright (c) __current_year__ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the