Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

knockout.app

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knockout.app - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

_site/README.md

68

Gruntfile.js

@@ -21,4 +21,4 @@ /*global module:false*/

src: ['src/start.js', 'src/utils.js', 'src/model.js', 'src/collection.js', 'src/sync.js', 'src/end.js'],
dest: 'knockout.app.js'
},
dest: 'build/knockout.app.js'
}
},

@@ -31,4 +31,4 @@

build: {
files:{
'knockout.app.min.js': ['knockout.app.js']
files: {
'build/knockout.app.min.js': ['build/knockout.app.js']
}

@@ -38,4 +38,13 @@ }

qunit: {
options: {
urls: [
'http://localhost:8000/tests/index.html'
]
},
all: [] // this is needed otherwise no test would run
},
connect: {
server: { },
server: {}, // keep the server running using 'grunt connect:server:keepalive'
},

@@ -50,15 +59,48 @@

qunit: {
all: 'http://localhost:8000/tests/index.html'
copy: {
publish: {
files: [
{src: ['tests/**', 'example/**', 'build/**'], dest: '_site/'}
]
}
},
docco: {
build: {
src: ['knockout.app.js', 'example/app.js'],
dest: 'annotated-source-code/'
publish: {
src: ['build/knockout.app.js', 'example/app.js'],
dest: '_site/annotated-source-code/'
}
},
exec:{
publish: {
cmd: function(){
var version = this.config.get('pkg').version,
files = 'build/knockout.app.js build/knockout.app.js',
build = 'git add -f ' + files,
commit = 'git commit -m\'publishing v' + version + '\''
tag = 'git tag ' + version,
push = 'git push origin master && git push --tags',
publish = 'npm publish',
back = 'git rm ' + files + ' && git commit -am\'switching back to development\' && git push origin master',
// Site
cdSite = 'cd _site'
commitSite = 'git add -A && git commit -m\'publishing site for v' + version + '\' && git tag gh-pages-' + version,
pushSite = 'git push origin gh-pages && git push --tags',
backSite = 'cd ..'
site = cdSite + ' && ' + commitSite + ' && ' + pushSite + ' && ' + backSite;
return build + ' && ' + commit + ' && ' + tag + ' && ' + push + ' && ' + publish + ' && ' + back + ' && ' + site;
}
}
}
});
// Register tasks.
grunt.registerTask('build', ['concat:build', 'uglify:build']);
grunt.registerTask('test', ['build', 'connect:server', 'qunit']);
grunt.registerTask('run', ['test', 'watch']);
grunt.registerTask('publish', ['test', 'copy:publish', 'docco:publish', 'exec:publish']); //used to publish a new version of KnockoutApp
// Load tasks

@@ -70,8 +112,6 @@ grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-docco');
grunt.loadNpmTasks('grunt-exec');
// Register tasks.
grunt.registerTask('build', ['concat', 'uglify', 'docco']);
grunt.registerTask('run', ['build', 'connect:server', 'qunit', 'watch']);
};

@@ -6,5 +6,8 @@ {

"author": "Matteo Pagliazzi <matteopagliazzi@gmail.com>",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",
"main": "knockout.app.js",
"main": "build/knockout.app.js",
"scripts": {
"test": "grunt test"
},
"keywords" : ["model", "knockout", "knockoutjs", "knockoutapp", "browser", "collection", "controller", "client", "browser"],

@@ -22,4 +25,5 @@ "repository": {

"grunt-contrib-concat": "0.1.x",
"grunt-docco": "https://github.com/purge/grunt-docco/tarball/master"
"grunt-docco": "https://github.com/bdougherty/grunt-docco/tarball/grunt-0.4",
"grunt-exec": "https://github.com/jharding/grunt-exec/tarball/grunt0.4rc"
}
}
**KnockoutApp** is a framework for building apps using [KnockoutJS](http://knockoutjs.com/).
The last version released is 0.2.0
The last version released is 0.2.1

@@ -5,0 +5,0 @@ **Documentation**, **downloads**, how to **contribute**, **tests**, **example application** and more can be found on the [website](http://paglias.net/KnockoutApp).

@@ -68,3 +68,3 @@ // ## KnockoutApp.Collection

self.models([]); //reset the collection
self.reset(); //reset the collection
if(toAdd.length > 0) self.add(toAdd);

@@ -71,0 +71,0 @@ if(success) success(self, data);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc