-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hint the origin of the theme #84
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good
@@ -239,6 +242,11 @@ const getAllFiles = (dir) => { | |||
*/ | |||
const replaceFileContent = (files, chunksToReplace, newChunk) => { | |||
files.forEach((file) => { | |||
|
|||
if(path.basename(file) === 'init.js' && (chunksToReplace === 'Blank theme' || chunksToReplace === 'underscore theme' || chunksToReplace === 'blankTheme')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are not supposed to make any replacement in init.js
, other checks are not needed.
if(path.basename(file) === 'init.js' && (chunksToReplace === 'Blank theme' || chunksToReplace === 'underscore theme' || chunksToReplace === 'blankTheme')) { | |
if(path.basename(file) === 'init.js') { |
@@ -1,4 +1,4 @@ | |||
# Copyright (C) 2021 Blank Theme | |||
# Copyright (C) 2022 Blank Theme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this auto generated?
@@ -14,8 +14,7 @@ This theme, like WordPress, is licensed under the GPL. | |||
Use it to make something cool, have fun, and share what | |||
you've learned with others. | |||
|
|||
Blank Theme is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc. | |||
Underscores is distributed under the terms of the GNU GPL v2 or later. | |||
Blank Theme is based on Blank theme https://github.com/rtCamp/blankTheme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blank Theme is also distributed under the same license, want to retain the license string.
Description
Checklist
To-do
Fixes/Covers issue
Fixes #82