diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..dbf08213 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/* \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 00000000..593bd1a2 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,34 @@ +module.exports = function(grunt) { + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + meta: { + build: "dist" + }, + connect: { + server: { + options: { + port: 3000, + protocol: 'http', + hostname: 'localhost', + base: '.', + debug: false, + livereload: true + } + } + }, + watch: { + options: { + livereload: true + }, + html: { + files: ['*'], + options: { + spawn: false + } + } + } + }); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-contrib-connect'); + grunt.registerTask('default', ['connect', 'watch']); +}; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000..7f0c0210 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "LoquiIM", + "version": "0.3.0", + "description": "FirefoxOS IM chat client", + "author": { + "name": "LoquiIM Community", + "site": "loqui.im" + }, + "repository": { + "type": "git", + "url": "https://github.com/loqui/im" + }, + "license": { + "type": "AGPL" + }, + "devDependencies": { + "grunt": "~0.4.1", + "grunt-contrib-watch": "~0.5.3", + "grunt-contrib-connect": "~0.6.0" + } +} \ No newline at end of file