tbranyen on master
Fix build (compare)
tbranyen on master
Update README badge URLS (compare)
tbranyen on master
Use combynify 4.0 to fix window… (compare)
user1@user1-VirtualBox ~/WebstormProjects/backbonejs-app $ npm start
backbone-boilerplate@2.0.0 start /home/user1/WebstormProjects/backbonejs-app
grunt
Running "jshint:development" (jshint) task
Warning: Path must be a string. Received null Use --force to continue.
Aborted due to warnings.
npm ERR! Linux 3.19.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! backbone-boilerplate@2.0.0 start: grunt
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the backbone-boilerplate@2.0.0 start script 'grunt'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the backbone-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs backbone-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls backbone-boilerplate
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/user1/WebstormProjects/backbonejs-app/npm-debug.log
git clone https://github.com/tbranyen/backbone-boilerplate backbonejs-app
?
user1@user1-VirtualBox ~/WebstormProjects/backbonejs-app $ npm start
backbone-boilerplate@2.0.0 start /home/user1/WebstormProjects/backbonejs-app
grunt
Running "jshint:development" (jshint) task
5 files lint free.
Running "browserify:development" (browserify) task
Bundle dist/source.js created.
Running "browserify:testing" (browserify) task
Bundle dist/test-runner.js created.
Running "connect:development" (connect) task
Started connect web server on http://localhost:8000
Running "watch" task
Waiting...
for now ill be reading this: http://backbonejs.org/#Getting-started
but after ill sleep cause there is middle of the night here. thanks for helping v much. so your boilerplate doesnt go well on windows or with node v6 as i just expereicned
maybe ill rewrirte my question.
i have to do simple app.
so where should i make "file" model and "files" collection model, and how include html view containing list to this boilerplate??
var ApplicationView = Backbone.View.extend({
events: {
'click div': 'alert'
},
alert(ev) {
window.alert('Clicked');
},
render() {
this.$el.html(`
<div>Click me</div>
`);
}
});
import MySubView from './my-sub-view';
var ApplicationView = Backbone.View.extend({
events: {
'click div': 'alert'
},
alert(ev) {
window.alert('Clicked');
},
render() {
this.$el.html(`
<div>Click me</div>
<span class="nested"></span>
`);
this.$('.nested').empty().append(
new MySubView().render().$el
);
return this;
}
});