Skip to content

Commit

Permalink
Moved to v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoVal committed Apr 21, 2015
1 parent c1a2670 commit cd0dd0d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
23 changes: 18 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,23 @@ module.exports = function(grunt) {
]
}
},
concat_sourcemap: { ////////////////////////////////////////////////////
capataz_node: {
src: ['__prologue__', 'server', 'stores', '__epilogue__'
].map(function (path) { return 'src/capataz_node/'+ path +'.js'; }),
dest: 'build/capataz_node.js',
options: {
separator: '\n\n'
}
},
},
jshint: { //////////////////////////////////////////////////////////////
build: {
options: { // Check <http://jshint.com/docs/options/>.
loopfunc: true,
boss: true
},
src: ['src/capataz_*.js'],
src: ['src/capataz_*.js', 'build/capataz_node.js'],
},
},
uglify: { //////////////////////////////////////////////////////////////
Expand All @@ -30,8 +40,8 @@ module.exports = function(grunt) {
report: 'min'
},
capataz_node: {
src: './src/capataz_node.js',
dest: './build/capataz_node.js'
src: './build/capataz_node.js',
dest: './build/capataz_node.min.js'
},
capataz_browser: {
src: './src/capataz_browser.js',
Expand All @@ -48,7 +58,8 @@ module.exports = function(grunt) {
dest: "docs/docker",
options: {
colourScheme: 'borland',
ignoreHidden: true
ignoreHidden: true,
exclude: 'src/**/__*__.js'
}
}
},
Expand All @@ -70,6 +81,7 @@ module.exports = function(grunt) {
});

// Load tasks. /////////////////////////////////////////////////////////////////
grunt.loadNpmTasks('grunt-concat-sourcemap');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
Expand All @@ -78,7 +90,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');

// Register tasks. /////////////////////////////////////////////////////////////
grunt.registerTask('compile', ['clean:build', 'copy', 'jshint:build', 'uglify']);
grunt.registerTask('compile', ['clean:build', 'copy', 'concat_sourcemap:capataz_node',
'jshint:build', 'uglify']);
grunt.registerTask('build', ['compile', 'docker']);
grunt.registerTask('default', ['build']);
grunt.registerTask('lib', ['bowercopy']);
Expand Down
4 changes: 1 addition & 3 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ connect via standard web browsers. Since every end-user device with an internet
certainly has one or more web browsers, Capataz can mount a distributed algorithm on a lot of
different platforms.


## First example

This example requires Node.js properly installed. The `node` and `npm` programs should be accessible
Expand Down Expand Up @@ -148,8 +147,7 @@ The callback function is called when a job gets scheduled to be performed and pe
Simply put, they are objects that represent a computation or process that will finished at an
indeterminate moment. We have to provide a callback to be called when that happens. This is done
with the `then` method. In this case when the results are available the sum difference is checked.
If it is zero we know a partition has been found, and the solution is logged.

If it is zero we know a partition has been found, and the solution is logged.

```javascript
server.logger.info("Numbers are ", JSON.stringify(NUMBERS));
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "capataz",
"description": "A framework to set up distributed algorithm via HTTP and Javascript.",
"keywords": [ "distributed computing", "distributed algorithm" ],
"version": "0.1.2-alpha",
"version": "0.1.2",
"author": {
"name": "Leonardo Val",
"email": "[email protected]"
Expand All @@ -16,7 +16,7 @@
"type": "git",
"url": "http://github.com/LeonardoVal/capataz.js"
},
"main": "build/capataz_node.js",
"main": "build/capataz_node.min.js",
"files": [
"build",
"LICENSE.md",
Expand All @@ -30,6 +30,7 @@
"requirejs": "~2.1.9",
"source-map-support": "~0.2.6",
"grunt": "~0.4.4",
"grunt-concat-sourcemap": "~0.4.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-uglify": "~0.2.7",
Expand Down

0 comments on commit cd0dd0d

Please sign in to comment.