commit 1e101c66a8a5797ee2b974368b210d322d90d581 Author: James Allen Date: Sat Feb 8 14:44:47 2014 +0000 Initial commit with web-sharelatex and document-updater-sharelatex diff --git a/server-ce/.gitignore b/server-ce/.gitignore new file mode 100644 index 0000000000..3c3629e647 --- /dev/null +++ b/server-ce/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/server-ce/Gruntfile.coffee b/server-ce/Gruntfile.coffee new file mode 100644 index 0000000000..2e3e5695c4 --- /dev/null +++ b/server-ce/Gruntfile.coffee @@ -0,0 +1,51 @@ +module.exports = (grunt) -> + grunt.loadNpmTasks 'grunt-bunyan' + grunt.loadNpmTasks 'grunt-execute' + grunt.loadNpmTasks 'grunt-available-tasks' + grunt.loadNpmTasks 'grunt-concurrent' + + grunt.initConfig + execute: + web: + src: "node_modules/web-sharelatex/app.js" + 'document-updater': + src: "node_modules/document-updater-sharelatex/app.js" + + concurrent: + all: + tasks: ['run:web', 'run:document-updater'] + options: + logConcurrentOutput: true + + availabletasks: + tasks: + options: + filter: 'exclude', + tasks: [ + 'coffee' + 'execute' + 'bunyan' + 'availabletasks' + ] + groups: + "Compile tasks": [ + "compile:server" + "compile" + ] + "Run tasks": [ + "run" + "default" + ] + "Misc": [ + "help" + ] + + grunt.registerTask 'help', 'Display this help list', 'availabletasks' + + grunt.registerTask 'run:web', "Run web-sharelatex, the ShareLaTeX web server", ["bunyan", "execute:web"] + grunt.registerTask 'run:document-updater', "Run document-updater-sharelatex, the real-time document server", ["bunyan", "execute:document-updater"] + + grunt.registerTask 'run', "Run all of the sharelatex processes", ['concurrent:all'] + + grunt.registerTask 'default', 'run' + diff --git a/server-ce/package.json b/server-ce/package.json new file mode 100644 index 0000000000..4dbb4eddd8 --- /dev/null +++ b/server-ce/package.json @@ -0,0 +1,18 @@ +{ + "name": "sharelatex", + "description": "An online collaborative LaTeX editor", + "dependencies": { + "logger-sharelatex": "git+ssh://git@bitbucket.org:sharelatex/logger-sharelatex.git#bunyan", + "web-sharelatex": "git+ssh://git@bitbucket.org:sharelatex/web-sharelatex.git#master", + "document-updater-sharelatex": "git+ssh://git@bitbucket.org:sharelatex/documentupdater-sharelatex.git#master", + "coffee-script": "~1.7.1" + }, + "devDependencies": { + "grunt": "~0.4.2", + "bunyan": "~0.22.1", + "grunt-bunyan": "~0.5.0", + "grunt-execute": "~0.1.5", + "grunt-available-tasks": "~0.4.1", + "grunt-concurrent": "~0.4.3" + } +}