/project-scaffolding

Useful folder structure for a web app.

Primary LanguageJavaScriptMIT LicenseMIT

project-scaffolding

Useful folder structure for a web app.

Includes a .gitignore file for OSX .DS_store files.

Folder Structure

bin /

  • any compiled files, executables

build / dist/

  • any minified, packed js files

config /

  • configuration files

docs /

  • documentation

examples /

ext /

  • external applications, plugins & extensions

lib / node_modules /

  • Standalone javascript includes for build, usually 3rd party
  • node.js modules

resources /

  • Source materials for assets, artwork, templates, fonts - not part of the build

src /

  • source scripts in including the main, app.js file or similar
  • HTML/CSS view templates
  • final assets for build

test /

  • unit tests
  • debugging tools

Additional useful files

bower.json - stub for Bower config

Gruntfile.js - stub for Grunt config

package.json - project config