Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a brunch sample #73

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed index.html, fixed paths, updated readme
  • Loading branch information
kloncentaur8 committed Mar 1, 2016
commit 28997fc64664daff12224a38431ed2aff8024e24
5 changes: 5 additions & 0 deletions appengine/brunch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Add the necessary modules in your `package.json`:
$ npm install --save-dev express body-parser morgan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmdobry do you know if devDependenices are working? Last time I tried, they weren't :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, they aren't.

See appengine/grunt/package.json

```

Compiles and copies files over `package.json`:
```sh
npm run build
```

## Running locally
Refer to the [appengine/README.md](../README.md) file for instructions on
running and deploying.
Expand Down
16 changes: 0 additions & 16 deletions appengine/brunch/app/assets/index.html

This file was deleted.

10 changes: 10 additions & 0 deletions appengine/brunch/app/assets/views/index.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
doctype html
head
meta(charset='utf-8')
title Brunch with ES6 running on Google App Engine
script(src='/app.js')
script.
require('initialize');
body
#app
h1 Hello World!
14 changes: 0 additions & 14 deletions appengine/brunch/app/views/index.jade

This file was deleted.

15 changes: 12 additions & 3 deletions appengine/brunch/brunch-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,26 @@ module.exports = {
},
stylesheets: {
joinTo: 'app.css'
}
},
},

plugins: {
babel: {
presets: ['es2015']
}
},
server: {
run: true,
base: '/',
port: 8080
},
overrides: {
production: {
optimize: true,
sourceMaps: false,
plugins: {
autoReload: {
enabled: false
}
}
}
}
};
4 changes: 2 additions & 2 deletions appengine/brunch/brunch-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module.exports = function startServer(port, path, callback) {
var app = express();
var server = http.createServer(app);

app.use(express.static(Path.join(__dirname, path)));
app.use(express.static(Path.join(__dirname, '/public')));

app.set('views', Path.join(__dirname, 'app/views'));
app.set('views', Path.join(__dirname, 'app/assets/views'));
app.set('view engine', 'jade');

app.get('/', function(req, res) {
Expand Down
2 changes: 1 addition & 1 deletion appengine/brunch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"start": "node app.js",
"watch": "brunch watch --server",
"deploy": "gcloud preview app deploy",
"prod": "brunch build --production"
"build": "brunch build --production"
},
"dependencies": {
"auto-reload-brunch": "^2.0.0",
Expand Down