Skip to content

Instantly share code, notes, and snippets.

Created July 14, 2017 15:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
NEPA.js Gulp Demo
Task: NepaJS
Does some silly things for NEPA JS
gulp.task('nepajs', function() {
var nepajsURL = '',
nepaJSDirWin = '/mnt/c/Users/tucker/Desktop/',
nepaJSDirMac = '/Users/cdevroe/Desktop/',
nepaJSSlackMsg = ":bebop: Hello NEPA.js July Meetup Attendees!! \n I'm going to run a few tasks for you. \n\n";
mkdirp(nepaJSDirWin+'nepajs', function (err) {
if (err) {
} else {
nepaJSSlackMsg += "1. Created a directory called nepajs on your desktop. \n";
fs.writeFile(nepaJSDirWin+'nepajs/nepajs.txt', "Hello NEPA JS. I'm in ur txtfilz, scrwn up ur shiznit.", (err) => {
if (err) { console.error(err); } else {
nepaJSSlackMsg += "2. Created a text file in that directory. \n";
exec('cmd.exe /c start ' + nepajsURL);
nepaJSSlackMsg += "3. Opened your browser to: " + nepajsURL + " \n"; + "\n Wasn't that much easier than doing it yourself?", null, function(){
console.log("All tasks complete.");
}); // end mkdirp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment