Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated client-slide javascript

+ Updated command line tests to be version independent
+ Big thanks to @panosru
  • Loading branch information...
commit d9769fd139c7f724a5565e2dc776d9dc9e2c6f23 1 parent d4d1fe8
@mendezcode mendezcode authored
Showing with 14 additions and 10 deletions.
  1. +8 −8 client/javascript.json
  2. +6 −2 test/command.js
View
16 client/javascript.json
@@ -1,9 +1,9 @@
{
"jquery": {
"description": "jQuery JavaScript Library",
- "version": "1.7.2",
+ "version": "1.8.1",
"website": "http://jquery.com/",
- "download": "http://code.jquery.com/jquery-1.7.2.min.js"
+ "download": "http://code.jquery.com/jquery-1.8.1.min.js"
},
"backbone": {
@@ -29,9 +29,9 @@
"ember": {
"description": "Ember.js JavaScript Framework",
- "version": "0.9.7.1",
+ "version": "1.0.pre",
"website": "http://emberjs.com/",
- "download": "http://cloud.github.com/downloads/emberjs/ember.js/ember-0.9.7.1.min.js"
+ "download": "http://cloud.github.com/downloads/emberjs/ember.js/ember-1.0.pre.min.js"
},
"knockout": {
@@ -43,16 +43,16 @@
"prototype": {
"description": "Prototype JavaScript Framework",
- "version": "1.7.0.0",
+ "version": "1.7.1.0",
"website": "http://www.prototypejs.org/",
- "download": "https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"
+ "download": "https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"
},
"momentjs": {
"description": "MomentJS: Javascript date library",
- "version": "1.6.2",
+ "version": "1.7.0",
"website": "http://momentjs.com/",
- "download": "https://raw.github.com/timrwood/moment/1.6.2/min/moment.min.js"
+ "download": "https://raw.github.com/timrwood/moment/1.7.0/min/moment.min.js"
},
"moneyjs": {
View
8 test/command.js
@@ -16,6 +16,10 @@ var cwd = process.cwd(),
var skeleton = fs.readdirSync(cwd + '/skeleton/');
var prefix = '../../../';
+var jsLibs = require('../client/javascript.json');
+var jQueryVersion = jsLibs.jquery.version;
+var emberVersion = jsLibs.ember.version;
+
var protos = new Multi({
command: function(str, callback) {
cp.exec(util.format(prefix + 'bin/protos %s', str), function(err, stdout, stderr) {
@@ -95,7 +99,7 @@ Created myapp1/app/views/test/test-index.mustache';
},
"Downloads assets & libraries": function() {
- assert.isTrue(fs.existsSync('myapp/public/js/jquery-1.7.2.min.js'));
+ assert.isTrue(fs.existsSync('myapp/public/js/jquery-' + jQueryVersion + '.min.js'));
assert.isTrue(fs.existsSync('myapp/public/js/prototype.js'));
assert.isTrue(fs.existsSync('myapp/public/css/bootstrap/css/bootstrap-responsive.css'));
},
@@ -360,7 +364,7 @@ Created myapp1/app/views/blog/blog-m2.eco.html\n» Created myapp1/app/views/admi
var r1 = results[0];
var expected = '» Downloading Skeleton Mobile-Friendly Responsive Framework\n» Downloading Ember.js JavaScript Framework';
assert.equal(r1, expected);
- assert.isTrue(fs.existsSync('public/js/ember-0.9.7.1.min.js'));
+ assert.isTrue(fs.existsSync('public/js/ember-' + emberVersion + '.min.js'));
assert.isTrue(fs.existsSync('public/css/skeleton'));
}
Please sign in to comment.
Something went wrong with that request. Please try again.