appbase-js
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "appbase-js", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"homepage": "https://github.com/appbaseio/appbase-js", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -5,7 +5,28 @@ module.exports = function(grunt) { | ||
watch: { | ||
files: [ "./*.js", "./actions/**/*.js"], | ||
tasks: [ 'browserify', 'uglify' ] | ||
options: { | ||
atBegin: true | ||
}, | ||
files: [ './src/**/*.js'], | ||
tasks: [ 'babel', 'browserify', 'uglify' ] | ||
}, | ||
babel: { | ||
options: { | ||
loose: 'all' | ||
}, | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: 'src', | ||
dest: 'dist', | ||
ext: '.js', | ||
src: ['**/*.js'] | ||
}] | ||
} | ||
}, | ||
browserify: { | ||
'browser/appbase.js': ['appbase.js'] | ||
dist: { | ||
files: { | ||
'browser/appbase.js': ['dist/appbase.js'] | ||
} | ||
} | ||
}, | ||
@@ -16,2 +37,3 @@ uglify: { | ||
}) | ||
grunt.loadNpmTasks('grunt-babel') | ||
grunt.loadNpmTasks('grunt-contrib-watch') | ||
@@ -18,0 +40,0 @@ grunt.loadNpmTasks('grunt-browserify') |
{ | ||
"name": "appbase-js", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Appbase.io streaming client lib for Javascript", | ||
"main": "appbase.js", | ||
"main": "dist/appbase.js", | ||
"scripts": { | ||
@@ -28,2 +28,3 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"grunt": "^0.4.5", | ||
"grunt-babel": "^5.0.3", | ||
"grunt-browserify": "^3.8.0", | ||
@@ -30,0 +31,0 @@ "grunt-contrib-uglify": "^0.9.1", |
@@ -9,2 +9,3 @@ var elasticsearch = require('elasticsearch') | ||
var streamSearchTests = require('./stream_search_test.js') | ||
var getTypesTest = require('./get_types_test.js') | ||
@@ -63,2 +64,8 @@ describe('Appbase', function() { | ||
}) | ||
describe('#getTypes()', function () { | ||
it('should receive an array of types', function(done) { | ||
getTypesTest.getAllTypes(streamingClient, done) | ||
}) | ||
}) | ||
}) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
743370
40
17160
7