-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate .gitignore on init command (#2248)
Generate .gitignore on init command Currently, when users initialize a site from scratch, we do not generate .gitignore automatically. This may cause unnecessary hassle for users using git as they need to manually create a .gitignore, or add to a pre-existing .gitignore, all the build files created by markbind. Generating a .gitignore including common log and build files from markbind allows users to use our .gitignore without having to manually find which generated files are unnecessary. Skipping .gitignore when --convert flag is used prevents accidentally overwriting a pre-existing .gitignore file.
- Loading branch information
Showing
6 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ges/cli/test/functional/test_site_convert/test_basic_convert/non_markbind_site/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
_markbind/logs/ | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
# Production | ||
_site/ | ||
|
||
# Env | ||
.env | ||
.env.local | ||
|
||
# IDE configs | ||
.vscode/ | ||
.idea/* | ||
*.iml |
23 changes: 23 additions & 0 deletions
23
...li/test/functional/test_site_convert/test_navigation_convert/non_markbind_site/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
_markbind/logs/ | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
# Production | ||
_site/ | ||
|
||
# Env | ||
.env | ||
.env.local | ||
|
||
# IDE configs | ||
.vscode/ | ||
.idea/* | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
_markbind/logs/ | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
# Production | ||
_site/ | ||
|
||
# Env | ||
.env | ||
.env.local | ||
|
||
# IDE configs | ||
.vscode/ | ||
.idea/* | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
"*.md", | ||
"*.njk", | ||
".git/*", | ||
".gitignore", | ||
"node_modules/*" | ||
], | ||
"pagesExclude": ["node_modules/*"], | ||
|