Code Monkey home page Code Monkey logo

brunch-with-hipsters's People

Contributors

bitdeli-chef avatar elving avatar mikeedwards avatar stevebest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

brunch-with-hipsters's Issues

Socket.io error

I followed the Vanilla instructions, with the Brunch skeleton checkout, but I am getting errors and a white screen.

The error I get is

Hipster.Socket = io.connect('http://localhost');
Uncaught ReferenceError: io is not defined 

I dug a little deeper and it seems that Socket.io is not installed or included. I added it to the package.json but it didnt help.

Where am I going wrong?

brunch watch error

Just trying to do a clean install, running into an error. Disclaimer: I am a JS/brunch/Coffeescript newbie.

$ brunch w -s

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at Server.listen (net.js:1127:5)
    at startServer (/usr/local/lib/node_modules/brunch/node_modules/pushserve/index.js:51:10)
    at startServer (/usr/local/lib/node_modules/brunch/lib/watch.js:114:14)
    at /usr/local/lib/node_modules/brunch/lib/watch.js:418:18
    at /usr/local/lib/node_modules/brunch/lib/helpers.js:475:14
    at /usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:220:7
    at /usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:144:7
    at /usr/local/lib/node_modules/brunch/node_modules/async-each/index.js:24:44
    at /usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:101:7
    at /usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:49:7
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)

Any ideas?

Strange Error

I am a brunch newbie but think this one is strange.

$ brunch b

events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOTDIR, open '/.../vendor/autoload.php/bower.json'

Does it think that /vendor/autoload.php is a directory that it should look for bower.json inside of? This has me a little amazed.

My config.coffee is:
exports.config =

See docs at http://brunch.readthedocs.org/en/latest/config.html.

conventions:
ignored: /^(vendor.*.less|.+node_modules.+|.+_.+..+)$/
modules:
definition: false
wrapper: false
paths:
public: '_public'
files:
javascripts:
joinTo:
'js/app.js': /^app/
'js/vendor.js': /^vendor/
order:
before: [
'vendor/console-polyfill/index.js'
]

stylesheets:
  joinTo:
    'css/app.css' : /^(app|vendor)/

templates:
  joinTo:
    'js/templates.js': /.+\.jade$/

plugins:
jade:
options:
pretty: yes # Adds pretty-indentation whitespaces to output (false by default)

bower:
  extend:
    "bootstrap" : 'vendor/bootstrap/docs/assets/js/bootstrap.js'
    "angular-mocks": []
    "styles": []
  asserts:
    "img" : /bootstrap(\\|\/)img/
    "font": /font-awesome(\\|\/)font/

I started with brunch new gh:GulinSS/brunch-bower-site .

Any help appreciated

Handlebars missing at startup

Hi,

Here's my scenario :

  1. install the skeletton with brunch new gh:elving/brunch-with-hipsters
  2. launch the server with brunch watch --server
  3. open http://localhost:3333/
    console shows "Uncaught TypeError: Cannot read property 'registerHelper' of undefined "

Looks like Handlebar is missing.

Regards,

Error on First Running brunch w -s

After cloning and npm install and bower install and then brunch w -s I get the following.

03 Dec 16:12:01 - info: application started on http://localhost:3333/
/usr/local/lib/node_modules/brunch/lib/fs_utils/file_list.js:224
        if (error) throw new Error(formatError('Reading', error));
                   ^

Error: undefined of Error: ENOENT: no such file or directory, open 'node_modules/handlebars-brunch/node_modules/handlebars/dist/handlebars.runtime.js' failed. 
  at error (/usr/local/lib/node_modules/brunch/lib/fs_utils/file_list.js:224:26)
  at ReadFileContext.callback (/usr/local/lib/node_modules/brunch/node_modules/fcache/index.js:19:23)
  at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:359:13)

Yes, handlebars-brunch has no node_modules directory.

Node version 6.5.0 (have tried downgrading with nvm) ...

How to include external handlebars templates?

This is probably really basic but I can't seem to find an example somewhere on how to render a .hbs template in app/views/templates

In the Hackerank app I see there is a .hbs template and I see a call to view.render() but when I just try to render a view with an external .hbs template nothing comes out.

In my index.html I have a div

And in my index.coffee I create the view
myview = new MyView()

The view class has the template member function defined like so
template: require 'views/templates/myview'

I also have an app/views/templates/myview.hbs with 'Hello world' in it but I must be missing something because it doesn't get inserted into index.html - what's the preferred way to get an external .hbs template to render in to index.html?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.