Skip to content
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
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions ISSUE_TEMPLATE.md
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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

- [ ] 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
5 changes: 3 additions & 2 deletions generators/npmDependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"express-handlebars": "^3.0.0",

"classnames": "2.2.3",
"react": "15.0.2",
"react-dom": "15.0.2",
"react": "15.1.0",
"react-dom": "15.1.0",
"react-router": "^2.4.0",
"react-cookie": "^0.4.5",
"react-redux": "4.4.1",
"lodash": "^4.13.1",
"redux": "^3.3.1",
"redux-thunk": "^2.0.1",
"jsonwebtoken": "^5.7.0",
Expand Down
76 changes: 76 additions & 0 deletions generators/util/bootstrap.js
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.');
};
7 changes: 7 additions & 0 deletions script/bootstrap
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();
3 changes: 3 additions & 0 deletions script/bootstrap.cmd
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