pax_global_header 0000666 0000000 0000000 00000000064 12232171344 0014511 g ustar 00root root 0000000 0000000 52 comment=01783eade6037a827074a0b1ebba5168cd9172f0
jio-main-v2.0.0/ 0000775 0000000 0000000 00000000000 12232171344 0013401 5 ustar 00root root 0000000 0000000 jio-main-v2.0.0/.gitignore 0000664 0000000 0000000 00000000061 12232171344 0015366 0 ustar 00root root 0000000 0000000 #vi
*.swp
*~
#dolphin
.directory
node_modules/* jio-main-v2.0.0/Gruntfile.js 0000664 0000000 0000000 00000005160 12232171344 0015700 0 ustar 00root root 0000000 0000000 /*jslint indent: 2, maxlen: 80 */
/*global module */
module.exports = function (grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jslint: {
grunt: {
src: ['Gruntfile.js'],
options: {
errorsOnly: true
}
},
jio: {
src: ['src/jio/**/*.js'],
exclude: ['src/jio/intro.js', 'src/jio/outro.js'],
options: {
errorsOnly: true
}
},
jio_storages: {
src: ['src/jio.storage/**/*.js'],
options: {
errorsOnly: true
}
},
tests: {
src: ['test/**/*.js'],
options: {
errorsOnly: true
}
},
queries: {
src: ['src/queries/core/**/*.js'],
exclude: [
'src/queries/begin.js',
'src/queries/end.js',
'src/queries/parser-begin.js',
'src/queries/parser-end.js'
],
options: {
errorsOnly: true
}
}
},
concat: {
jio: {
// duplicate files are ignored
src: [
'src/jio/intro.js',
'src/jio/core/globals.js',
'src/jio/core/util.js',
'src/jio/core/**/*.js',
'src/jio/features/**/*.js',
'src/jio/outro.js'
],
dest: 'jio.js'
},
queries: {
src: [
'src/queries/begin.js',
'src/queries/parser-begin.js',
'src/queries/build/parser.js',
'src/queries/parser-end.js',
'src/queries/core/globals.js',
'src/queries/core/tools.js',
'src/queries/core/**/*.js',
'src/queries/end.js'
],
dest: 'complex_queries.js'
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= pkg.version %> ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
jio: {
src: 'jio.js', // '<%= pkg.name %>.js'
dest: 'jio.min.js'
},
queries: {
src: 'complex_queries.js',
dest: 'complex_queries.min.js'
}
},
qunit: {
// grunt doesn't like requirejs
// phantomjs daesn't know Blobs !!
files: ['test/tests.html']
}
});
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.registerTask('default', ['jslint', 'concat', 'uglify']); //, 'qunit']);
grunt.registerTask('lint', ['jslint']);
grunt.registerTask('build', ['concat', 'uglify']);
grunt.registerTask('test', ['jslint', 'qunit']);
};
jio-main-v2.0.0/Makefile 0000664 0000000 0000000 00000001166 12232171344 0015045 0 ustar 00root root 0000000 0000000 # dir
QUERIES_DIR = src/queries
# files
JIO = jio.js
JIO_MIN = jio.min.js
COMPLEX = complex_queries.js
COMPLEX_MIN = complex_queries.min.js
PARSER_PAR = $(QUERIES_DIR)/core/parser.par
PARSER_OUT = $(QUERIES_DIR)/build/parser.js
# npm install jscc-node
JSCC_CMD = node ./node_modules/jscc-node/jscc.js -t ./node_modules/jscc-node/driver_node.js_
auto: compile
compile:
mkdir -p $(dir $(PARSER_OUT))
$(JSCC_CMD) -o $(PARSER_OUT) $(PARSER_PAR)
.phony: clean
clean:
find -name '*~' -delete
realclean:
rm -f "$(JIO)"
rm -f "$(JIO_MIN)"
rm -f "$(COMPLEX)"
rm -f "$(COMPLEX_MIN)"
rm -f "$(PARSER_OUT)"
jio-main-v2.0.0/README.md 0000664 0000000 0000000 00000024043 12232171344 0014663 0 ustar 00root root 0000000 0000000 ## Javascript Input/Output
**jIO is a client-side JavaScript library to manage documents across multiple
storages.**
### Getting Started
To set up jIO include jio.js, dependencies and the connectors for the storages
you want to use in your page header (note that more dependencies may be required
depending on type of storages being used):