├── app ├── README.md ├── assets │ ├── README.md │ └── index.html └── initialize.js ├── brunch-config.js ├── .gitignore ├── package.json └── README.md /app/README.md: -------------------------------------------------------------------------------- 1 | Place your app source files here. 2 | -------------------------------------------------------------------------------- /app/assets/README.md: -------------------------------------------------------------------------------- 1 | Files here will be copied as-is to public directory. 2 | -------------------------------------------------------------------------------- /app/initialize.js: -------------------------------------------------------------------------------- 1 | document.addEventListener('DOMContentLoaded', function() { 2 | // do your setup here 3 | }); 4 | -------------------------------------------------------------------------------- /brunch-config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // See http://brunch.io for documentation. 3 | files: { 4 | javascripts: {joinTo: 'app.js'}, 5 | stylesheets: {joinTo: 'app.css'}, 6 | templates: {joinTo: 'app.js'} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.diff 3 | *.err 4 | *.orig 5 | *.log 6 | *.rej 7 | *.swo 8 | *.swp 9 | *.vi 10 | *~ 11 | *.sass-cache 12 | 13 | # OS or Editor folders 14 | .DS_Store 15 | .cache 16 | .project 17 | .settings 18 | .tmproj 19 | nbproject 20 | Thumbs.db 21 | 22 | # NPM packages folder. 23 | node_modules/ 24 | 25 | # Brunch folder for temporary files. 26 | tmp/ 27 | 28 | # Brunch output folder. 29 | public/ 30 | 31 | # Bower stuff. 32 | bower_components/ 33 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "brunch-app", 3 | "description": "Description", 4 | "author": "Your Name", 5 | "version": "0.1.0", 6 | "repository": { 7 | "type": "git", 8 | "url": "" 9 | }, 10 | "scripts": { 11 | "start": "brunch watch --server", 12 | "build": "brunch build --production" 13 | }, 14 | "dependencies": {}, 15 | "devDependencies": { 16 | "javascript-brunch": "^2.0.0", 17 | "css-brunch": "^2.0.0", 18 | "uglify-js-brunch": "^2.0.0", 19 | "clean-css-brunch": "^2.0.0", 20 | "auto-reload-brunch": "^2.0.0" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/assets/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Dead simple skeleton 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Brunch app 2 | 3 | This is HTML5 application, built with [Brunch](http://brunch.io). 4 | 5 | ## Getting started 6 | * Install (if you don't have them): 7 | * [Node.js](http://nodejs.org): `brew install node` on OS X 8 | * [Brunch](http://brunch.io): `npm install -g brunch` 9 | * Brunch plugins and app dependencies: `npm install` 10 | * Run: 11 | * `brunch watch --server` — watches the project with continuous rebuild. This will also launch HTTP server with [pushState](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history). 12 | * `brunch build --production` — builds minified project for production 13 | * Learn: 14 | * `public/` dir is fully auto-generated and served by HTTP server. Write your code in `app/` dir. 15 | * Place static files you want to be copied from `app/assets/` to `public/`. 16 | * [Brunch site](http://brunch.io), [Getting started guide](https://github.com/brunch/brunch-guide#readme) 17 | --------------------------------------------------------------------------------