TagSpaces is an offline, open source, document manager with tagging support
adding some new tasks
uggrock3ac341011def
diff --git a/Gruntfile.js b/Gruntfile.jsindex 79d75b88c..323a98678 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -4,9 +4,12 @@'use strict';module.exports = function(grunt) {+ require('load-grunt-tasks')(grunt);+if (!grunt.file.exists('developer.json')) {grunt.file.copy('developer.tmpl.json', 'developer.json');}+grunt.initConfig({dev: grunt.file.readJSON('developer.json'),@@ -45,6 +48,38 @@ module.exports = function(grunt) {},},+ myth: {+ options: {+ sourcemap: false+ },+ dist: {+ files: {+ 'data/assets/generated.css': 'data/assets/tagspaces.css'+ }+ }+ },++ uglify: {+ pro: {+ files: {+ 'data/pro/js/thumbsgenerator-u.js': ['data/pro/js/thumbsgenerator.js']+ },+ options: {+ //compress: false+ }+ },+ },++ watch: {+ scripts: {+ files: ['**/*.css'],+ tasks: ['myth'],+ options: {+ spawn: false,+ },+ },+ },+jshint: {options: {jshintrc: true@@ -205,25 +240,7 @@ module.exports = function(grunt) {}},- watch: {- scripts: {- files: ['Gruntfile.js', '{data/js,data/ext}/**/*.js'],- tasks: ['default'],- options: {- spawn: false- }- }- },-shell: {- jsdav: {- command: 'node webdavserver.js',- options: {- execOptions: {- maxBuffer: 1024 * 1024 * 1024- }- }- },jsdoc: {command: 'node node_modules/jsdoc/jsdoc.js -c jsdoc.conf.json --verbose',},@@ -256,6 +273,7 @@ module.exports = function(grunt) {grunt.loadNpmTasks('grunt-replace');grunt.loadNpmTasks('grunt-contrib-watch');grunt.loadNpmTasks('grunt-contrib-compress');+ grunt.loadNpmTasks('grunt-contrib-uglify');grunt.loadNpmTasks("grunt-jscs");grunt.loadNpmTasks('grunt-shell');grunt.loadNpmTasks('grunt-fixmyjs');diff --git a/package.json b/package.jsonindex 1e25ed5af..cf9d70c4e 100644--- a/package.json+++ b/package.json@@ -1,60 +1,63 @@-{- "name": "tagspaces",- "license": "AGPL 3.0",- "author": "TagSpaces Authors",- "version": "2.1.3",- "mainversion": "2.1",- "subversion": "3",- "buildid": "20160307103048",- "fullName": "TagSpaces",- "id": "jid1-FBaMKxTifTSahQ",- "lib": "data/mozilla",- "description": "Offline document organizer and browser for your local files, supporting easy file tagging and document editing.",- "icon": "data/assets/icon48.png",- "icon64": "data/assets/icon64.png",- "homepage": "http://tagspaces.org",- "permissions": {- "private-browsing": false- },- "unpack": true,-- "repository": {- "type": "git",- "url": "https://github.com/tagspaces/tagspaces.git"- },- "keywords": [- "file manager", "file organizer"- ],- "dependencies": {},- "devDependencies": {- "grunt": "~0.4.2",- "grunt-contrib-clean": "~0.5.0",- "grunt-contrib-compress": "~0.6.1",- "grunt-contrib-concat": "~0.3.0",- "grunt-contrib-copy": "~0.8.0",- "grunt-text-replace": "~0.3.11",- "grunt-contrib-jshint": "~0.10.0",- "grunt-contrib-watch": "~0.5.3",- "grunt-replace": "~0.8.0",- "grunt-jsbeautifier": "~0.2.8",- "grunt-fixmyjs": "~0.3.0",- "grunt-jscs": "~1.1.0",- "grunt-jsdoc": "^0.5.7",- "grunt-mozilla-addon-sdk": "~0.3.2",- "jsDAV": "~0.3.2",- "nightmare": "~2.2.0",- "chai": "~3.5.0",- "express": "^4.13.3",- "mocha-generators": "^1.2.0",- "mocha": "^2.3.0"- },- "private": true,- "scripts": {- "start": "cd data && npm start",- "debug": "cd data && electron . --debug",- "webdav": "cd data && cd web && node webdavserver.js",- "firefoxdev": "cfx run -b ~/Apps/firefoxdev/firefox -p ../mozprofile",- "firefox": "cfx run -p ../mozprofile --static-args='{ \"disableStrict\": true }'",- "test": "make test"- }-}+{+ "name": "tagspaces",+ "license": "AGPL 3.0",+ "author": "TagSpaces Authors",+ "version": "2.1.3",+ "mainversion": "2.1",+ "subversion": "3",+ "buildid": "20160307103048",+ "fullName": "TagSpaces",+ "id": "jid1-FBaMKxTifTSahQ",+ "lib": "data/mozilla",+ "description": "Offline document organizer and browser for your local files, supporting easy file tagging and document editing.",+ "icon": "data/assets/icon48.png",+ "icon64": "data/assets/icon64.png",+ "homepage": "http://tagspaces.org",+ "permissions": {+ "private-browsing": false+ },+ "unpack": true,+ "repository": {+ "type": "git",+ "url": "https://github.com/tagspaces/tagspaces.git"+ },+ "keywords": [+ "file manager",+ "file organizer"+ ],+ "dependencies": {},+ "devDependencies": {+ "chai": "~3.5.0",+ "express": "^4.13.3",+ "grunt": "~0.4.2",+ "grunt-contrib-clean": "~0.5.0",+ "grunt-contrib-compress": "~0.6.1",+ "grunt-contrib-concat": "~0.3.0",+ "grunt-contrib-copy": "~0.8.0",+ "grunt-contrib-jshint": "~0.10.0",+ "grunt-contrib-uglify": "^1.0.0",+ "grunt-contrib-watch": "^0.6.1",+ "grunt-fixmyjs": "~0.3.0",+ "grunt-jsbeautifier": "~0.2.8",+ "grunt-jscs": "~1.1.0",+ "grunt-jsdoc": "^0.5.7",+ "grunt-mozilla-addon-sdk": "~0.3.2",+ "grunt-myth": "^1.0.1",+ "grunt-replace": "~0.8.0",+ "grunt-text-replace": "~0.3.11",+ "jsDAV": "~0.3.2",+ "load-grunt-tasks": "^3.4.1",+ "mocha": "^2.3.0",+ "mocha-generators": "^1.2.0",+ "nightmare": "~2.2.0"+ },+ "private": true,+ "scripts": {+ "start": "cd data && npm start",+ "debug": "cd data && electron . --debug",+ "webdav": "cd data && cd web && node webdavserver.js",+ "firefoxdev": "cfx run -b ~/Apps/firefoxdev/firefox -p ../mozprofile",+ "firefox": "cfx run -p ../mozprofile --static-args='{ \"disableStrict\": true }'",+ "test": "make test"+ }+}