Initial commit with web-sharelatex and document-updater-sharelatex

This commit is contained in:
James Allen 2014-02-08 14:44:47 +00:00
commit 6a1a965ffd
3 changed files with 70 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
node_modules

51
Gruntfile.coffee Normal file
View file

@ -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'

18
package.json Normal file
View file

@ -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"
}
}