Skip to content

Instantly share code, notes, and snippets.

View wkocmann's full-sized avatar

Wolfgang Rainer Pauser wkocmann

View GitHub Profile
@wkocmann
wkocmann / 01-directory-structure.md
Created April 17, 2018 08:04 — forked from tracker1/01-directory-structure.md
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
# snag theme: http://noahfrederick.com/blog/2011/lion-terminal-theme-peppermint/
# A two-line colored Bash prompt (PS1) with Git branch and a line decoration
# which adjusts automatically to the width of the terminal.
# Screenshot: http://img194.imageshack.us/img194/2154/twolineprompt.png
# Michal Kottman, 2012
RESET="\[\033[0m\]"
RED="\[\033[0;31m\]"
GREEN="\[\033[01;32m\]"
<?php
function it($m,$p) {
echo ($p?'✔︎':'✘')." It $m\n";
if (!$p) {
$GLOBALS['f']=1;
}
}
function done() {