diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37a8ca4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/node_modules +/lib +*.swp +*.log diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..26322a6 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +/node_modules +/src +*.swp +.npmignore +.gitignore diff --git a/Gruntfile.coffee b/Gruntfile.coffee new file mode 100644 index 0000000..16ef5e8 --- /dev/null +++ b/Gruntfile.coffee @@ -0,0 +1,27 @@ +module.exports = (grunt) -> + grunt.initConfig + pkg: grunt.file.readJSON('package.json') + + coffee: + glob_to_multiple: + expand: true + cwd: 'src' + src: ['*.coffee'] + dest: 'lib' + ext: '.js' + + coffeelint: + options: + max_line_length: + level: 'ignore' + + src: ['src/**/*.coffee'] + + grunt.loadNpmTasks('grunt-contrib-coffee') + grunt.loadNpmTasks('grunt-shell') + grunt.loadNpmTasks('grunt-coffeelint') + grunt.registerTask('lint', ['coffeelint']) + grunt.registerTask('default', ['coffee', 'lint']) + grunt.registerTask 'clean', -> + rm = require('rimraf').sync + rm('lib') diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..493db50 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2013 GitHub Inc. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ed98a6f --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# mini-breakpad-server + +Minimum collecting server for crash reports sent by +[google-breakpad](https://code.google.com/p/google-breakpad/). + + +## Features + +* No requirement for setting up databases or web servers. +* Collecting crash reports with minidump files. +* Simple web interface for viewing translated crash reports. + +## Build + +* `npm install .` +* `grunt` +* `node lib/app.js` diff --git a/package.json b/package.json new file mode 100644 index 0000000..13cb426 --- /dev/null +++ b/package.json @@ -0,0 +1,34 @@ +{ + "name": "mini-breakpad-server", + "description": "Minimum breakpad crash reports collecting server", + "version": "0.1.0", + "scripts": { + "prepublish": "grunt coffee" + }, + "dependencies": { + "express": "3.x", + "minidump": "0.1.0" + }, + "devDependencies": { + "grunt": "~0.4.1", + "grunt-contrib-coffee": "~0.6.6", + "grunt-coffeelint": "~0.0.6", + "grunt-cli": "~0.1.7", + "grunt-shell": "~0.2.2", + "rimraf": "~2.1.4", + "coffee-script": "~1.6.2" + }, + "licenses": [ + { + "type": "MIT", + "url": "http://github.com/atom/mini-breakpad-server/raw/master/LICENSE" + } + ], + "repository": { + "type": "git", + "url": "https://github.com/atom/mini-breakpad-server.git" + }, + "bugs": { + "url": "https://github.com/atom/mini-breakpad-server/issues" + } +} diff --git a/src/app.coffee b/src/app.coffee new file mode 100644 index 0000000..f4540a4 --- /dev/null +++ b/src/app.coffee @@ -0,0 +1,6 @@ +express = require 'express' + +app = express() + +app.listen 1127 +console.log 'Listening on port 1127'