4 Commits

Author SHA1 Message Date
d01b3cc124 New version added v0.0.4 2016-04-07 06:20:37 +02:00
31d80834a7 npm and node version where to strict 2016-04-07 06:20:18 +02:00
1aff4ba049 Installation info added 2016-04-06 22:02:32 +02:00
4f693c9859 New version added v0.0.3 2016-04-06 21:48:38 +02:00
3 changed files with 13 additions and 31 deletions

View File

@ -1,6 +1,9 @@
/** /**
* Grunt file for node-wifi-scanner * Grunt file for the ZigBeeSiteSurvey
* *
* grunt update
* Updates the local common files with the ones from the editor project
* Create a new bugfix version (x.y.++): * Create a new bugfix version (x.y.++):
* grunt v:patch * grunt v:patch
* *
@ -10,7 +13,7 @@
* Create a new major version (++.0.0) * Create a new major version (++.0.0)
* grunt v:major * grunt v:major
* *
* Created by kc on 06.04.16 * Created by kc on 27.06.15.
*/ */
module.exports = function (grunt) { module.exports = function (grunt) {
@ -26,43 +29,18 @@ module.exports = function (grunt) {
commitFiles: ['-a'], commitFiles: ['-a'],
tagName: 'v%VERSION%', tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%', tagMessage: 'Version %VERSION%',
push: true, push: false,
pushTo: 'git@github.com:ancasicolica/ZigBeeSiteSurvey.git',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d', gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
globalReplace: false, globalReplace: false,
prereleaseName: false, prereleaseName: false,
regExp: false regExp: false
} }
},
zip: {
'make': {
src: ['./**/**'],
dest: '../ZigBeeSiteSurvey_x.y.z_OS_.zip',
compression: 'DEFLATE'
}
},
compress: {
main: {
options: {
archive: 'dist/ZigBeeSiteSurvey-' + grunt.file.readJSON('package.json').version + '-Win-x64.zip'
},
files: [{
src: ['*.js', 'LICENSE', '*.json', 'node.exe', '*.md', 'lib/**', 'node_modules/**', 'public/**', 'routes/**', 'views/**'],
dest: 'ZigBeeSiteSurvey-' + grunt.file.readJSON('package.json').version + '-Win-x64'
}]
}
} }
}); });
grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('minify', ['concat', 'uglify:js']);
grunt.registerTask('v:patch', ['bump:patch']); grunt.registerTask('v:patch', ['bump:patch']);
grunt.registerTask('v:minor', ['bump:minor']); grunt.registerTask('v:minor', ['bump:minor']);
grunt.registerTask('v:major', ['bump:major']); grunt.registerTask('v:major', ['bump:major']);
grunt.registerTask('make', ['zip:make']);
}; };

View File

@ -19,6 +19,10 @@ It was tested with the following operating systems:
* Ubuntu 14.04 * Ubuntu 14.04
* Raspbian "Jessie" * Raspbian "Jessie"
## Installation
npm i node-wifi-scanner
## Usage ## Usage
const scanner = require('node-wifi-scanner'); const scanner = require('node-wifi-scanner');

View File

@ -1,6 +1,6 @@
{ {
"name": "node-wifi-scanner", "name": "node-wifi-scanner",
"version": "0.0.2", "version": "0.0.4",
"description": "node.js module for WiFi network detection", "description": "node.js module for WiFi network detection",
"main": "index.js", "main": "index.js",
"keywords": [ "keywords": [
@ -20,8 +20,8 @@
"url": "https://github.com/ancasicolica/node-wifi-scanner.git" "url": "https://github.com/ancasicolica/node-wifi-scanner.git"
}, },
"engines": { "engines": {
"node": ">= 4.4.0", "node": ">= 4.0.0",
"npm": ">= 2.14.0" "npm": ">= 2.0.0"
}, },
"scripts": { "scripts": {
"test": "mocha test" "test": "mocha test"