elving / brunch-with-hipsters Goto Github PK
View Code? Open in Web Editor NEWBrunch with Hipsters is a rad Brunch app skeleton that comes with unicorns out of the box.
Brunch with Hipsters is a rad Brunch app skeleton that comes with unicorns out of the box.
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?
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?
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 =
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
Hi,
Here's my scenario :
Looks like Handlebar is missing.
Regards,
You should consider using LiveScript instead.
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
) ...
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?
There's a new version already. Here's the change log.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.