mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
7bab895dee
Previously, when diplomats submit translations, the system would try to figure out whether it should be a 'patch' or a 'change', and then would either create a patch for an admin or artisan to review and accept or reject, or would apply the changes immediately and they would be live. This was done as a compromise between getting translations live quickly, but also preventing already-translated text from getting overwritten without oversight. But having the client handle this added logical complexity. So this makes all diplomats submit patches, no matter what. The server is then in charge of deciding if it should auto-accept the patch or not. Either way, a patch is created. There was also much refactoring. This commit includes: * Update jsondiffpatch so changes within array items are handled correctly * Refactor posting patches to use the new auto-accepting logic, and out of Patch model * Refactor POST /db/patch/:handle/status so that it doesn't rely on handlers * Refactor patch stat handling to ensure auto-accepted patches are counted * Refactor User.incrementStat to use mongodb update commands, to avoid race conditions * Refactor Patch tests
140 lines
4 KiB
JSON
140 lines
4 KiB
JSON
{
|
|
"name": "codecombat",
|
|
"description": "A multiplayer programming game for learning how to code.",
|
|
"author": "Nick Winter <nick@codecombat.com>",
|
|
"homepage": "https://github.com/codecombat/codecombat",
|
|
"domains": [
|
|
"codecombat.com"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/codecombat/codecombat"
|
|
},
|
|
"contributors": [
|
|
{
|
|
"name": "Nick Winter",
|
|
"email": "nick@codecombat.com"
|
|
},
|
|
{
|
|
"name": "Scott Erickson",
|
|
"email": "scott@codecombat.com"
|
|
},
|
|
{
|
|
"name": "George Saines",
|
|
"email": "george@codecombat.com"
|
|
},
|
|
{
|
|
"name": "Matt Lott",
|
|
"email": "matt@codecombat.com"
|
|
}
|
|
],
|
|
"scripts": {
|
|
"start": "node ./index.js",
|
|
"test": "./node_modules/.bin/karma start",
|
|
"predeploy": "echo Starting deployment--hold onto your butts.; echo Skipping brunch build --production",
|
|
"postdeploy": "echo Deployed. Unclench.",
|
|
"postinstall": "bower install && brunch build --env fast",
|
|
"brunch": "brunch",
|
|
"bower": "bower",
|
|
"dev": "brunch watch --server --env fast",
|
|
"nodemon": "nodemon",
|
|
"jasmine-node": "jasmine-node",
|
|
"multicore": "coffee multicore.coffee",
|
|
"jasmine": "jasmine",
|
|
"proxy": "COCO_PROXY='true' nodemon"
|
|
},
|
|
"main": "index.js",
|
|
"keywords": [
|
|
"learning",
|
|
"live coding",
|
|
"game",
|
|
"multiplayer"
|
|
],
|
|
"dependencies": {
|
|
"JQDeferred": "~2.1.0",
|
|
"ace-builds": "https://github.com/ajaxorg/ace-builds/archive/3fb55e8e374ab02ce47c1ae55ffb60a1835f3055.tar.gz",
|
|
"aether": "~0.5.21",
|
|
"async": "0.2.x",
|
|
"aws-sdk": "~2.0.0",
|
|
"bayesian-battle": "0.0.7",
|
|
"bluebird": "^3.2.1",
|
|
"chalk": "^1.1.3",
|
|
"co": "^4.6.0",
|
|
"co-express": "^1.2.1",
|
|
"coffee-script": "1.9.x",
|
|
"connect": "2.7.x",
|
|
"country-list": "0.0.3",
|
|
"express": "~3.0.6",
|
|
"express-useragent": "~0.0.9",
|
|
"geoip-lite": "^1.1.6",
|
|
"graceful-fs": "~2.0.1",
|
|
"gridfs-stream": "~1.1.1",
|
|
"jsondiffpatch": "^0.2.3",
|
|
"lodash": "~2.4.1",
|
|
"lz-string": "^1.3.3",
|
|
"mailchimp-api": "2.0.x",
|
|
"moment": "~2.5.0",
|
|
"mongodb": "^2.0.28",
|
|
"mongoose": "4.5.3",
|
|
"mongoose-cache": "https://github.com/nwinter/mongoose-cache/tarball/master",
|
|
"node-force-domain": "~0.1.0",
|
|
"node-gyp": "~0.13.0",
|
|
"node-statsd": "^0.1.1",
|
|
"passport": "0.1.x",
|
|
"passport-local": "0.1.x",
|
|
"redis": "",
|
|
"request": "^2.69.0",
|
|
"sendwithus": "2.1.x",
|
|
"stream-buffers": "0.2.x",
|
|
"stripe": "~2.9.0",
|
|
"tv4": "~1.0.16",
|
|
"underscore.string": "2.3.x",
|
|
"winston": "0.6.x"
|
|
},
|
|
"devDependencies": {
|
|
"after-brunch": "0.0.5",
|
|
"assetsmanager-brunch": "^1.8.1",
|
|
"auto-reload-brunch": "^1.8.1",
|
|
"bower": "~1.6.4",
|
|
"brunch": "^1.8.5",
|
|
"coffee-script-brunch": "^1.8.3",
|
|
"coffeelint-brunch": "^1.7.1",
|
|
"commonjs-require-definition": "0.2.0",
|
|
"compressible": "~1.0.1",
|
|
"country-data": "0.0.24",
|
|
"css-brunch": "^1.7.0",
|
|
"fs-extra": "^0.26.2",
|
|
"http-proxy": "^1.13.2",
|
|
"jade-brunch": "1.7.5",
|
|
"jasmine": "^2.4.1",
|
|
"javascript-brunch": "> 1.0 < 1.8",
|
|
"karma": "~0.13",
|
|
"karma-chrome-launcher": "~0.1.2",
|
|
"karma-coffee-preprocessor": "~0.1.2",
|
|
"karma-coverage": "~0.5.1",
|
|
"karma-firefox-launcher": "~0.1.3",
|
|
"karma-html2js-preprocessor": "~0.1.0",
|
|
"karma-jasmine": "^1.0.2",
|
|
"karma-phantomjs-launcher": "~0.1.1",
|
|
"karma-requirejs": "~0.2.1",
|
|
"karma-script-launcher": "~0.1.0",
|
|
"marked": "0.2.x",
|
|
"nock": "^2.17.0",
|
|
"nodemon": "1.6.1",
|
|
"parse-domain": "^0.2.1",
|
|
"requirejs": "~2.1.10",
|
|
"sass-brunch": "https://github.com/basicer/sass-brunch-bleeding/archive/1.9.1-bleeding.tar.gz",
|
|
"telepath-brunch": "https://github.com/nwinter/telepath-brunch/tarball/master",
|
|
"uglify-js": "^2.5.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"newrelic": "^1.24.0",
|
|
"webworker-threads": "~0.6.2"
|
|
},
|
|
"license": "MIT for the code, and CC-BY for the art and music",
|
|
"private": true,
|
|
"engines": {
|
|
"node": "^5.1.1",
|
|
"npm": "^3.0.0"
|
|
}
|
|
}
|