mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 03:58:02 -05:00
Merge branch 'pr-origin-365' into release/2.0.x
This commit is contained in:
commit
6d2a70210a
101 changed files with 8 additions and 10 deletions
|
@ -26,6 +26,6 @@ fs.writeFile(path.resolve('config', 'database.json'), JSON.stringify(database),
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'config': path.resolve('config', 'database.json'),
|
'config': path.resolve('config', 'database.json'),
|
||||||
'migrations-path': path.resolve('lib', 'migrations'),
|
'migrations-path': path.resolve('src/lib', 'migrations'),
|
||||||
'models-path': path.resolve('lib', 'models')
|
'models-path': path.resolve('src/lib', 'models')
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run-script eslint && npm run-script jsonlint && npm run-script mocha-suite",
|
"test": "npm run-script eslint && npm run-script jsonlint && npm run-script mocha-suite",
|
||||||
"eslint": "node_modules/.bin/eslint --max-warnings 0 lib public test",
|
"eslint": "node_modules/.bin/eslint --max-warnings 0 src",
|
||||||
"jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done",
|
"jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done",
|
||||||
"mocha-suite": "NODE_ENV=test CMD_DB_URL=\"sqlite::memory:\" mocha --exit",
|
"mocha-suite": "NODE_ENV=test CMD_DB_URL=\"sqlite::memory:\" mocha --exit",
|
||||||
"standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1",
|
"standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1",
|
||||||
"dev": "webpack --config webpack.dev.js --progress --colors --watch",
|
"dev": "webpack --config webpack.dev.js --progress --colors --watch",
|
||||||
"heroku-prebuild": "bin/heroku",
|
"heroku-prebuild": "bin/heroku",
|
||||||
"build": "webpack --config webpack.prod.js --progress --colors --bail",
|
"build": "webpack --config webpack.prod.js --progress --colors --bail",
|
||||||
"start": "tsc && sequelize db:migrate && node built/app.js"
|
"start": "tsc && sequelize db:migrate && node built/lib/app.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@passport-next/passport-openid": "^1.0.0",
|
"@passport-next/passport-openid": "^1.0.0",
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
"socket.io": "~2.1.1",
|
"socket.io": "~2.1.1",
|
||||||
"socket.io-client": "~2.1.1",
|
"socket.io-client": "~2.1.1",
|
||||||
"spin.js": "^2.3.2",
|
"spin.js": "^2.3.2",
|
||||||
"sqlite3": "^4.1.0",
|
"sqlite3": "^4.2.0",
|
||||||
"store": "^2.0.12",
|
"store": "^2.0.12",
|
||||||
"string": "^3.3.3",
|
"string": "^3.3.3",
|
||||||
"tedious": "^6.6.0",
|
"tedious": "^6.6.0",
|
||||||
|
|
|
@ -14,7 +14,7 @@ import { environment } from './environment'
|
||||||
import { dockerSecret } from './dockerSecret'
|
import { dockerSecret } from './dockerSecret'
|
||||||
import deepFreeze = require('deep-freeze')
|
import deepFreeze = require('deep-freeze')
|
||||||
|
|
||||||
const appRootPath = path.resolve(__dirname, '../../')
|
const appRootPath = path.resolve(__dirname, '../../../')
|
||||||
const env = process.env.NODE_ENV || Environment.development
|
const env = process.env.NODE_ENV || Environment.development
|
||||||
const debugConfig = {
|
const debugConfig = {
|
||||||
debug: (env === Environment.development)
|
debug: (env === Environment.development)
|
|
@ -24,7 +24,7 @@ class Data {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createDmpWorker (): ChildProcess {
|
function createDmpWorker (): ChildProcess {
|
||||||
const worker = childProcess.fork(path.resolve(__dirname, '../workers/dmpWorker.js'), ['ignore'])
|
const worker = childProcess.fork(path.resolve(__dirname, '../workers/dmpWorker'), ['ignore'])
|
||||||
logger.debug('dmp worker process started')
|
logger.debug('dmp worker process started')
|
||||||
worker.on('message', function (data: Data) {
|
worker.on('message', function (data: Data) {
|
||||||
if (!data || !data.msg || !data.cacheKey) {
|
if (!data || !data.msg || !data.cacheKey) {
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue