Browse Source

Add stuff

master
Paul Miller 6 years ago
commit
90670687a7
9 changed files with 114 additions and 0 deletions
  1. +32
    -0
      .gitignore
  2. +17
    -0
      README.md
  3. +1
    -0
      app/README.md
  4. +1
    -0
      app/assets/README.md
  5. +19
    -0
      app/assets/index.html
  6. +1
    -0
      app/initialize.js
  7. +10
    -0
      bower.json
  8. +11
    -0
      brunch-config.coffee
  9. +22
    -0
      package.json

+ 32
- 0
.gitignore View File

@ -0,0 +1,32 @@
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~
*.sass-cache
# OS or Editor folders
.DS_Store
.cache
.project
.settings
.tmproj
nbproject
Thumbs.db
# NPM packages folder.
node_modules/
# Brunch folder for temporary files.
tmp/
# Brunch output folder.
public/
# Bower stuff.
bower_components/

+ 17
- 0
README.md View File

@ -0,0 +1,17 @@
# Brunch app
This is HTML5 application, built with [Brunch](http://brunch.io).
## Getting started
* Install (if you don't have them):
* [Node.js](http://nodejs.org): `brew install node` on OS X
* [Brunch](http://brunch.io): `npm install -g brunch`
* [Bower](http://bower.io): `npm install -g bower`
* Brunch plugins and Bower dependencies: `npm install & bower install`.
* Run:
* `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).
* `brunch build --production` — builds minified project for production
* Learn:
* `public/` dir is fully auto-generated and served by HTTP server. Write your code in `app/` dir.
* Place static files you want to be copied from `app/assets/` to `public/`.
* [Brunch site](http://brunch.io), [Chaplin site](http://chaplinjs.org)

+ 1
- 0
app/README.md View File

@ -0,0 +1 @@
Place your app source files here.

+ 1
- 0
app/assets/README.md View File

@ -0,0 +1 @@
Files here will be copied as-is to public directory.

+ 19
- 0
app/assets/index.html View File

@ -0,0 +1,19 @@
<!doctype html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Brunch example application</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/stylesheets/app.css">
<script src="/javascripts/vendor.js"></script>
<script src="/javascripts/app.js"></script>
<script>require('initialize');</script>
</head>
<body>
<nav class="ui menu">
</nav>
</body>
</html>

+ 1
- 0
app/initialize.js View File

@ -0,0 +1 @@
console.log('Yo');

+ 10
- 0
bower.json View File

@ -0,0 +1,10 @@
{
"name": "your-app",
"version": "0.0.1",
"main": "public/app.js",
"dependencies": {
"exim": "~0.1.1",
"normalize-css": "~3.0.2"
},
"overrides": {}
}

+ 11
- 0
brunch-config.coffee View File

@ -0,0 +1,11 @@
exports.config =
# See http://brunch.io/#documentation for docs.
files:
javascripts:
joinTo:
'javascripts/app.js': /^app/
'javascripts/vendor.js': /^(?!app)/
stylesheets:
joinTo: 'stylesheets/app.css'
templates:
joinTo: 'javascripts/app.js'

+ 22
- 0
package.json View File

@ -0,0 +1,22 @@
{
"name": "your-app",
"description": "Description",
"author": "Your Name",
"version": "0.0.1",
"repository": {
"type": "git",
"url": ""
},
"scripts": {
"start": "brunch watch --server",
"test": "brunch test"
},
"dependencies": {
"auto-reload-brunch": "^1.7.5",
"clean-css-brunch": ">= 1.0 < 1.8",
"coffee-script-brunch": "^1.8.1",
"css-brunch": ">= 1.0 < 1.8",
"javascript-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8"
}
}

Loading…
Cancel
Save