jupl / btc-chaplin Goto Github PK
View Code? Open in Web Editor NEWChaplin project template
Home Page: http://jupl.github.io/btc/chaplin/
License: MIT License
Chaplin project template
Home Page: http://jupl.github.io/btc/chaplin/
License: MIT License
The cordova:add:android
command outputs a config.xml with <preference name="phonegap-version" value="1.9.0" />
This is outdated and should be 2.7.0
.
Down the line would be nice to keep things lightweight and use Exoskeleton by default. Tasks will still be available to switch to classic Backbone + jQuery + Lo-Dash.
For me collection view doesn't update automatically, when I add new items into collection. It works when I comment in app/views/base/collection.coffee these 2 lines:
initialize: View::initialize -> #initialize: View::initialize
initSelectors: View::initSelectors -> #initSelectors: View::initSelectors
I've gotten more demand for SCSS support first. With Autoprefixer I'm on board as soon as soon I can include autoprefixer-brunch and sass-brunch with libsass. Plus it becomes consistent with other skeletons.
Running npm test
on a fresh install bombs due to a missing symlink to Karma as described in Node.js Debugging Primer. I discovered the cause was a missing symlink in node_modules/.bin
(karma was not listed). To fix this, I've submitted karma-runner/karma#1131 and, as a workaround, symlinked from node_modules/.bin/karma
to the binary in node_modules/karma/bin/karma
.
After doing that the jake
error stopped occurring, and I then started noticing karma wasn't using the karma.conf
file I'd defined. As a result, I ended up hard-coding the following line in test.jake
so karma is executed with the expected arguments:
args.push('karma.conf.js');
Any thoughts on setting a default config setting so users who add karma-coffee-preprocessor
and convert their karma configs to CoffeeScript can reliably use jake test:code
?
I've created an app the web build works fine but the android build doesn't seem to be initializing. My guess is that the coffeescript js is throwing things off. The example app has this
index.html
...
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript">app.initialize();</script>
...
index.js
var app = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
// Bind Event Listeners
//
// Bind any events that are required on startup. Common events are:
// 'load', 'deviceready', 'offline', and 'online'.
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
},
// deviceready Event Handler
//
// The scope of 'this' is the event. In order to call the 'receivedEvent'
// function, we must explicity call 'app.receivedEvent(...);'
onDeviceReady: function() {
app.receivedEvent('deviceready');
},
// Update DOM on a Received Event
receivedEvent: function(id) {
var parentElement = document.getElementById(id);
var listeningElement = parentElement.querySelector('.listening');
var receivedElement = parentElement.querySelector('.received');
listeningElement.setAttribute('style', 'display:none;');
receivedElement.setAttribute('style', 'display:block;');
console.log('Received Event: ' + id);
}
};
while my app has this
index.html
...
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript">require('initialize');</script>
...
app.js
...
window.require.define({"initialize": function(exports, require, module) {
var Application;
Application = require('application');
$(function() {
return (new Application).initialize();
});
}});
...
I've tried the S.O. suggestion (here and here) but havent gotten anything to work. Any ideas??
The web build displays fine but the cordova android build doesn't apply the bootstrap css.
Faster and looks to be more up to date. Would just need to write a Brunch plugin.
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.