Skip to content

Commit

Permalink
dist pack and release notes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Ceballos committed Apr 20, 2014
1 parent 2f7b1d8 commit 46b867f
Show file tree
Hide file tree
Showing 14 changed files with 336 additions and 205 deletions.
6 changes: 6 additions & 0 deletions RELEASE.txt
Expand Up @@ -164,3 +164,9 @@ Version 1.6.0 (Aug 20, 2013)

* Windows support, everything was reviewed on windows.
* Stable release

Version 1.7.0 (Apr 20, 2014)
----------------------------

* Firefox OS Support removed
* New Backbone extensions support
2 changes: 1 addition & 1 deletion dist.sh
Expand Up @@ -12,4 +12,4 @@ cp -r ./bin/* dist/bin/
cp package.json dist/
cp LICENSE-MIT dist/
cp README.md dist/

cp RELEASE.txt dist/
172 changes: 172 additions & 0 deletions dist/RELEASE.txt
@@ -0,0 +1,172 @@
Version 0.0.1 (Jan 25, 2013)
----------------------------

* i18n finished
* modules creation(Apps) finished
* development server finished
* project initialization finished
* deploy assistant finished

Version 0.0.2 (Jan 26, 2013)
----------------------------

* scripts dynamic paths for different os
* deploy bugs fixed
* client-side language function finished
* images path dynamic
* enhancements to scripts

Version 0.0.3 (Jan 28, 2013)
----------------------------

* backbone.extensions extended
* App object extended
* backbone.viewhelpers added to core
* many nexth5 llorsat private project libraries included on core

Version 0.0.4 (Jan 31, 2013)
----------------------------

* activexobject support
* deploy enhancement
* less parser path updated
* wonka folder added

Version 0.0.4rev2 (Feb 01, 2013)
--------------------------------

* permissions when create project or app
* variable not defined bug fixed

Version 0.0.4rev3 (Feb 04, 2013)
--------------------------------

* libraries base64 and oauth added to core
* command not found validation

Version 0.0.4rev5 (Feb 08, 2013)
--------------------------------

* Events persistence after view remove bug fixed

Version 1.0.0 (Feb 08, 2013)
----------------------------

* New app architectire
* Events persistence fix try two

Version 1.0.0r1 (Feb 09, 2013)
------------------------------

* Backbone updated to 0.9.10

Version 1.0.0r3 (Feb 09, 2013)
------------------------------

* dist files removed
* index template for development and another for deploy

Version 1.0.0r5 (Feb 10, 2013)
------------------------------

* fonts and images path change for devel and deploy
* loginOrHome fn removed
* command help after run
* scripts on lib moved to scripts folder

Version 1.0.1 (Feb 13, 2013)
----------------------------

* less is more(wonka core minified)
* dist folder cleaned

Version 1.0.2 (Feb 20, 2013)
----------------------------

* session management engine added

Version 1.0.3 (Feb 23, 2013)
----------------------------

* index template has been migrate to handlebars for deploy and development index.html build.
* handlebars, new dependency

Version 1.0.4 (Feb 23, 2013)
----------------------------

* version added on index.hbs template with javascript file and css file on deploy environment.
* new dist folder added
* perfect app templates added

Version 1.0.5 (Mar 06, 2013)
----------------------------

* utf-8 support
* candies support, basic functionality test
* README updated

Version 1.0.6 (Mar 25, 2013)
----------------------------

* updated node and npm versions
* router with jquery dom object as view param

Version 1.0.8 (Jun 20, 2013)
----------------------------

* Bootstrap images route updated
* libraries unnecesary removed

Version 1.0.9 (Jun 20, 2013)

* session key concat with _id package
* language key concat with _id package

Version 1.1.0 (Jan 24, 2013)
----------------------------

* wonka colors changed
* stable

Version 1.2.0 (Jul 23, 2013)
----------------------------

* candies command working with production api
* git initialization ready
* firefox os support
* install library added to core
* loadingBar object created for views load indication


Version 1.2.1 (Jul 23, 2013)

* security folder removed
* server command enhancement

Version 1.5.0 (Aug 6, 2013)
---------------------------

* Firefox OS support stable and easy
* Candies script finished with candies.wonkajs.com on production
* Project initialization tiniest than ever
* Welcome style changed
* manifest.webapp minified
* package.json minified
* bootstrap out the core

Version 1.5.1 (Aug 8, 2013)
---------------------------

* loadingBar removed from routers on apps created via wonkajs app command, now you have to call the functions if you want to use them.

Version 1.6.0 (Aug 20, 2013)
----------------------------

* Windows support, everything was reviewed on windows.
* Stable release

Version 1.7.0 (Apr 20, 2014)
----------------------------

* Firefox OS Support removed
* New Backbone extensions support
2 changes: 0 additions & 2 deletions dist/scripts/deploy.js
Expand Up @@ -12,9 +12,7 @@ module.exports.builder = function() {

var projectDir = process.cwd();
var pkgPath = path.join(projectDir, 'package.json');
var manifestPath = path.join(projectDir, 'manifest.webapp');
var pkg = JSON.parse(fs.readFileSync(pkgPath).toString());
var manifest = JSON.parse(fs.readFileSync(manifestPath).toString());

try {
fs.mkdirSync(path.join(projectDir, 'deploy'), 0755);
Expand Down
7 changes: 1 addition & 6 deletions dist/scripts/project.js
Expand Up @@ -37,19 +37,14 @@ module.exports.builder = function(name, kwargs) {
var pkgPath = path.join(__dirname, '..', 'templates', 'package.json');
var pkgTemplate = fs.readFileSync(pkgPath).toString();
var projectData = {
name: name,
name: name.charAt(0).toUpperCase() + name.slice(1),
description: kwargs.description || 'Write a description',
version: kwargs.version || '0.0.1',
author: kwargs.author || '',
install_button: kwargs.install_button || false
};
var pkgOutput = utils.buildTemplate(pkgTemplate, projectData);
utils.writeFile('package.json', pkgOutput);
var manifestPath = path.join(__dirname, '..', 'templates', 'manifest.webapp');
var manifestTemplate = fs.readFileSync(manifestPath).toString();
projectData['name'] = name.charAt(0).toUpperCase() + name.slice(1);
var manifestOutput = utils.buildTemplate(manifestTemplate, projectData);
utils.writeFile('manifest.webapp', manifestOutput);
var counter = 0;
for (var i in arch) {
var src = path.join(__dirname, '..', 'templates', i);
Expand Down
Binary file removed dist/templates/icons/icon-128.png
Binary file not shown.
Binary file removed dist/templates/icons/icon-30.png
Binary file not shown.
Binary file removed dist/templates/icons/icon-60.png
Binary file not shown.
6 changes: 0 additions & 6 deletions dist/templates/index.hbs
Expand Up @@ -24,12 +24,6 @@
<!--[if lt IE 7]>
<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
<![endif]-->
<div id="loading-bar" class="container-fluid" style="display:none;">
<progress id="progress-bar" class="row-fluid" value="0" max="100"></progress>
</div>
<div id="install-bar" style="display:none;">
<button id="install-button">Install</button>
</div>
<div id="container" role="application"></div>

<!-- edit under your own risk -->
Expand Down
147 changes: 147 additions & 0 deletions dist/templates/libraries/backbone.extensions.js
@@ -0,0 +1,147 @@
(function() {

var ParamsMixin = {
addParams: function(object) {
for(var i in object) {
this.addParam(i, object[i]);
}
return this;
},
addParam: function(param, value) {
if (!this.params) {
this.params = {};
}
this.params[param] = value;
return this;
},
getParams: function() {
return this.params || {};
},
removeParam: function(param) {
delete this.params[param];
return this;
},
clearParams: function() {
delete this.params;
return this;
},
getParam: function(name, defaultValue) {
if (this.params) {
return this.params[name];
}
return defaultValue;
},
serializeData: function(object) {
var url = "";
if (_.size(object) === 0) {
return url;
}
for (attribute in object) {
if (typeof object == "function") {
url += attribute + "=" + object(attribute) + "&";
} else {
url += attribute + "=" + object[attribute] + "&";
}
}
return '?' + url.substring(url.length - 1, 0);
},
getParamsQuery: function() {
return this.serializeData(this.getParams());
},
serialize: function() {
return this.serializeData(this.attributes);
}
};

// Copy params mixin to Model
_.extend(Backbone.Model.prototype, ParamsMixin);

// Extend Model
_.extend(Backbone.Model.prototype, {
getOrElse: function(name, defaultValue) {
var value = this.get(name);
return value !== undefined ? value : defaultValue;
},
containsValue: function(value) {
return _.any(this.attributes, function(attr) {
return attr == value;
});
},
match: function(text) {
var reg = new RegExp(text, 'gi');
return _.any(this.attributes, function(attr) {
return reg.test(attr);
});
},
toJSON: function() {
if (typeof(this.attributes) != "undefined") {
return JSON.parse(JSON.stringify(this.attributes));
}
else {
return {};
}
}
});

// Copy params mixin to Collection
_.extend(Backbone.Collection.prototype, ParamsMixin);

// Extend View
var oldDelegateEvents = Backbone.View.prototype.delegateEvents;
var oldUndelegateEvents = Backbone.View.prototype.undelegateEvents;
var oldRemove = Backbone.View.prototype.remove;
var callbacks = {};

_.extend(Backbone.View.prototype, {
remove: function() {
this.undelegateEvents();
oldRemove.call(this);
},
delegateEvents: function(events) {
oldDelegateEvents.call(this, events);
this.globalEvents && this.delegateGlobalEvents(this.globalEvents);
},
undelegateEvents: function() {
oldUndelegateEvents.call(this);
this.globalEvents && this.undelegateGlobalEvents(this.globalEvents);
},
delegateGlobalEvents: function(events) {
for (event in events) {
var fnName = events[event];
var fn = this[fnName];
if (fn && _.isFunction(fn)) {
var callbackName = event + this.cid;

if (!callbacks[callbackName]) {
var wrapperFunction = this._makeWrappper(this, fn);
callbacks[callbackName] = wrapperFunction;
Backbone.Events.on(event, wrapperFunction);
}
}
}
},
_makeWrappper: function(view, fn) {
return (function(innerView, innerFn) {
return function(params, target, subject) {
if (subject) {
if (subject == innerView.cid) {
innerFn.call(innerView, params, target, subject);
}
} else {
innerFn.call(innerView, params, target, subject);
}
};
})(view, fn);
},
undelegateGlobalEvents: function(events) {
for (event in events) {
var callbackName = event + this.cid;
if (callbacks[callbackName]) {
Backbone.Events.off(event, callbacks[callbackName]);
delete callbacks[callbackName];
}
}
}
});

})();

0 comments on commit 46b867f

Please sign in to comment.