-
Notifications
You must be signed in to change notification settings - Fork 255
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
Added an ISSUE_TEMPLATE.md for issues #89
Open
Gum-Joe
wants to merge
6
commits into
sahat:master
Choose a base branch
from
Gum-Joe:add-contributing-stuff
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ab48052
:books: Added ISSUE_TEMPLATE.md for issues
Gum-Joe 028cf97
Update npmDependencies.json
moflo 4388d8a
Merge pull request #98 from moflo/patch-1
sahat 5153a9d
Merge branch 'master' of https://github.com/sahat/megaboilerplate int…
Gum-Joe 27e6bbd
:art: Added bootstrap script to remove + create files
Gum-Joe 79cbf03
Fix spelling in ISSUE_TEMPLATE.md
Gum-Joe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!-- Hello there! --> | ||
<!-- Thanks for filing this issue. | ||
Please include the information if necessary | ||
--> | ||
|
||
<!-- Put below this comment a description of your issue --> | ||
<!-- This could include error output and code as well --> | ||
|
||
<!-- Config --> | ||
**Configuration**: | ||
|
||
- Platform: | ||
- [ ] Node.js | ||
- [ ] Static Site | ||
- [ ] JS Library | ||
- [ ] Electron | ||
- [ ] Other: put-it-here | ||
- Framework: | ||
- [ ] Express | ||
- [ ] Jekyll | ||
- [ ] Middleman | ||
- [ ] Custom JS library configuration | ||
- [ ] Meteor | ||
- [ ] React | ||
- [ ] Angular 1.x | ||
- [ ] Angular 2.x | ||
- [ ] Other: put-it-here | ||
- Database: | ||
- [ ] MongoDB | ||
- [ ] MySQL | ||
- [ ] PostgreSQL | ||
- [ ] SQLite | ||
- [ ] Other: put-it-here | ||
- Template engine: | ||
- [ ] Jade | ||
- [ ] Handlebars | ||
- [ ] Nunjucks | ||
- [ ] Other: put-it-here | ||
- CSS framework: | ||
- [ ] Bootstrap | ||
- [ ] Foundation | ||
|
||
<!-- System specs --> | ||
**System:** | ||
- OS: put-it-here | ||
- Arch: put-it-here |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* eslint no-console: [0] */ | ||
/* eslint no-loop-func: [0] */ | ||
/* eslint strict: [0] */ | ||
'use strict'; | ||
// File to bootstrap a new boilderplate | ||
// by removing files needed for the public repo (megaboilerplate) | ||
// and creating files for the boilerplate | ||
/** | ||
* Module dependencies | ||
*/ | ||
const fs = require('fs'); | ||
|
||
// Vars | ||
// Files to Remove | ||
// Place your files here | ||
const rmfiles = [ | ||
'ISSUE_TEMPLATE.md' | ||
]; | ||
// Files to make | ||
const newfiles = [ | ||
// Place file names in this format: | ||
// { name: 'file', content: 'file' } | ||
]; | ||
|
||
/** | ||
* Logger | ||
* @param txt {String} - text to log | ||
*/ | ||
function log(txt) { | ||
console.log(`==> ${txt}`); | ||
} | ||
/** | ||
* Logger alt | ||
* Witout ==> | ||
* but a space | ||
* @param txt {String} - text to log | ||
*/ | ||
function logalt(txt) { | ||
console.log(` ${txt}`); | ||
} | ||
|
||
/** | ||
* Bootstrap function | ||
*/ | ||
module.exports = () => { | ||
log('Bootstraping your new boilerplate...'); | ||
// Remove unneeded files | ||
log('Removing unneeded files...'); | ||
// Remove the files | ||
if (rmfiles.length > 0) { | ||
let f; | ||
for (f of rmfiles) { | ||
if (fs.existsSync(f)) { | ||
fs.unlinkSync(f); | ||
logalt(`Removed file ${f}.`); | ||
} | ||
} | ||
} else { | ||
logalt('No file to remove.'); | ||
} | ||
|
||
// Create the files | ||
log('Creating files...'); | ||
if (newfiles.length > 0) { | ||
let f; | ||
// Create them | ||
for (f of newfiles) { | ||
fs.writeFile(f.name, f.content); | ||
logalt(`Created file ${f.name}.`); | ||
} | ||
} else { | ||
logalt('No files to create.'); | ||
} | ||
|
||
log('Done bootstraping.'); | ||
}; |
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,7 @@ | ||
#!/usr/bin/env node | ||
/* eslint strict: [0] */ | ||
'use strict'; | ||
// File to run function to bootstrap boilerplate | ||
const bootstrap = require('../generators/util/bootstrap'); | ||
// Run | ||
bootstrap(); |
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,3 @@ | ||
:: File to run bootstrap script | ||
:: Should be ran from root of boilerplate | ||
node script/bootstrap |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Thanks!