codimd: 1.2.0 -> 1.4.0, repackage using yarn2nix-moretea

This commit is contained in:
WilliButz 2019-07-13 15:09:39 +02:00
parent f748b501e8
commit cee4d964a7
No known key found for this signature in database
GPG key ID: 92582A10F1179CB2
15 changed files with 23337 additions and 20715 deletions

View file

@ -1,46 +0,0 @@
{ stdenv, pkgs, fetchFromGitHub, nodejs-8_x, phantomjs2, which }:
let
nodePackages = import ./node.nix {
inherit pkgs;
system = stdenv.system;
};
phantomjs-prebuilt = nodePackages."phantomjs-prebuilt-^2.1.12".override (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ phantomjs2 ];
});
in
stdenv.mkDerivation {
name = "codemirror-hackmdio-05-07-2018";
src = fetchFromGitHub {
owner = "hackmdio";
repo = "CodeMirror";
rev = "df412731ed3923124f9a43f60e84bdf855eb843a";
sha256 = "02v2wccv9sjdda9x45ib8d08i1pc4b8kwg3p6qc314wqq89nhniw";
};
nativeBuildInputs = [ which ];
buildInputs = [ nodejs-8_x phantomjs-prebuilt ] ++ (stdenv.lib.attrVals [
"blint-^1"
"node-static-0.6.0"
"rollup-^0.41.0"
"rollup-plugin-buble-^0.15.0"
"rollup-watch-^3.2.0"
"uglify-js-^2.8.15"
] nodePackages);
buildPhase = ''
patchShebangs .
npm run build
node release
'';
installPhase = ''
mkdir -p $out/lib/node_modules/codemirror
cp -R {codemirror.min.js,addon,bin,keymap,lib,mode,theme} $out/lib/node_modules/codemirror/
ln -s ${nodePackages."url-loader-^0.5.7"}/lib/node_modules/url-loader \
$out/lib/node_modules
'';
}

View file

@ -1,8 +0,0 @@
[ { "blint": "^1" }
, { "node-static": "0.6.0" }
, { "phantomjs-prebuilt": "^2.1.12" }
, { "rollup": "^0.41.0" }
, { "rollup-plugin-buble": "^0.15.0" }
, { "rollup-watch": "^3.2.0" }
, { "uglify-js": "^2.8.15" }
, { "url-loader": "^0.5.7" } ]

View file

@ -1,7 +0,0 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix
node2nix -8 -i deps.json \
-e ../../../../development/node-packages/node-env.nix \
--no-copy-node-env \
-c node.nix

File diff suppressed because it is too large Load diff

View file

@ -1,17 +0,0 @@
# This file has been generated by node2nix 1.7.0. Do not edit!
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-8_x"}:
let
nodeEnv = import ../../../../development/node-packages/node-env.nix {
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
inherit nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv;
}

View file

@ -1,197 +1,82 @@
{ stdenv, pkgs, buildEnv, fetchFromGitHub, makeWrapper
, fetchpatch, nodejs-8_x, phantomjs2, runtimeShell }:
let
nodePackages = let
# Some packages fail to install with ENOTCACHED due to a mistakenly added
# package-lock.json that bundles optional dependencies not resolved with `node2nix.
# See also https://github.com/svanderburg/node2nix/issues/134
dontInstall = n: v:
if builtins.match ".*babel.*" n == null
then v
else v.override { dontNpmInstall = true; };
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper
, which, nodejs, yarn2nix, python2, phantomjs2 }:
packages = stdenv.lib.mapAttrs (dontInstall) (
import ./node.nix {
inherit pkgs;
system = stdenv.system;
}
);
in packages // {
"js-url-^2.3.0" = packages."js-url-^2.3.0".overrideAttrs (_: {
# Don't download chromium (this isn't needed anyway for our case).
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "1";
});
yarn2nix.mkYarnPackage rec {
name = "codimd";
version = "1.4.0";
src = fetchFromGitHub {
owner = "codimd";
repo = "server";
rev = version;
sha256 = "0cljgc056p19pjzphwkcfbvgp642w3r6p626w2fl6m5kdk78qd1g";
};
addPhantomjs = (pkgs:
map (pkg: pkg.override ( oldAttrs: {
buildInputs = oldAttrs.buildInputs or [] ++ [ phantomjs2 ];
})) pkgs);
nativeBuildInputs = [ which makeWrapper ];
extraBuildInputs = [ python2 phantomjs2 ];
drvName = drv: (builtins.parseDrvName drv).name;
yarnNix = ./yarn.nix;
yarnLock = ./yarn.lock;
packageJSON = ./package.json;
linkNodeDeps = ({ pkg, deps, name ? "" }:
let
targetModule = if name != "" then name else drvName pkg;
in nodePackages.${pkg}.override (oldAttrs: {
postInstall = ''
mkdir -p $out/lib/node_modules/${targetModule}/node_modules
${stdenv.lib.concatStringsSep "\n" (map (dep: ''
ln -s ${nodePackages.${dep}}/lib/node_modules/${drvName dep} \
$out/lib/node_modules/${targetModule}/node_modules/${drvName dep}
'') deps
)}
'';
})
);
filterNodePackagesToList = (filterPkgs: allPkgs:
stdenv.lib.mapAttrsToList (_: v: v) (
stdenv.lib.filterAttrs (n: _:
! builtins.elem (drvName n) filterPkgs
) allPkgs)
);
# add phantomjs to buildInputs
pkgsWithPhantomjs = (addPhantomjs (map (
p: nodePackages.${p}
) [
"js-url-^2.3.0"
"markdown-pdf-^8.0.0"
]));
# link extra dependencies to lib/node_modules
pkgsWithExtraDeps = map (args:
linkNodeDeps args ) [
{ pkg = "select2-^3.5.2-browserify";
deps = [ "url-loader-^0.5.7" ]; }
{ pkg = "ionicons-~2.0.1";
deps = [ "url-loader-^0.5.7" "file-loader-^0.9.0" ]; }
{ pkg = "font-awesome-^4.7.0";
deps = [ "url-loader-^0.5.7" "file-loader-^0.9.0" ]; }
{ pkg = "bootstrap-^3.3.7";
deps = [ "url-loader-^0.5.7" "file-loader-^0.9.0" ]; }
{ pkg = "markdown-it-^8.2.2";
deps = [ "json-loader-^0.5.4" ]; }
{ pkg = "markdown-it-emoji-^1.3.0";
deps = [ "json-loader-^0.5.4" ]; }
{ pkg = "raphael-git+https://github.com/dmitrybaranovskiy/raphael";
deps = [ "eve-^0.5.4" ];
name = "raphael"; }
];
codemirror = pkgs.callPackage ./CodeMirror { };
nodeEnv = buildEnv {
name = "codimd-env";
paths = pkgsWithPhantomjs ++ pkgsWithExtraDeps ++ [
codemirror
# `js-sequence-diagrams` has been removed from the registry
# and replaced by a security holding package (the tarballs weren't published by
# upstream as upstream only supports bower,
# see https://github.com/bramp/js-sequence-diagrams/issues/212).
#
# As the tarballs are still there, we build this manually for now until codimd's upstream
# has resolved the issue.
(import ./js-sequence-diagrams {
inherit pkgs;
nodejs = nodejs-8_x;
extraNodePackages = {
lodash = nodePackages."lodash-^4.17.4";
eve = nodePackages."eve-^0.5.4";
};
})
] ++ filterNodePackagesToList [
"bootstrap"
"codemirror-git+https://github.com/hackmdio/CodeMirror.git"
"font-awesome"
"ionicons"
"js-url"
"markdown-it"
"markdown-pdf"
"node-uuid"
"raphael-git+https://github.com/dmitrybaranovskiy/raphael"
"select2-browserify"
"url-loader"
] nodePackages;
};
name = "codimd-${version}";
version = "1.2.0";
src = stdenv.mkDerivation {
name = "${name}-src";
inherit version;
src = fetchFromGitHub {
owner = "hackmdio";
repo = "codimd";
rev = version;
sha256 = "003v90g5sxxjv5smxvz6y6bq2ny0xpxhsx2cdgkvj7jla243v48s";
};
dontBuild = true;
installPhase = ''
mkdir $out
cp -R . $out
'';
};
in
stdenv.mkDerivation rec {
inherit name version src;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ nodejs-8_x ];
NODE_PATH = "${nodeEnv}/lib/node_modules";
patches = [
(fetchpatch { # fixes for configurable paths
url = "https://patch-diff.githubusercontent.com/raw/hackmdio/codimd/pull/940.patch";
sha256 = "0w1cvnp3k1n8690gzlrfijisn182i0v8psjs3df394rfx2347xyp";
})
];
postPatch = ''
# due to the `dontNpmInstall` workaround, `node_modules/.bin` isn't created anymore.
substituteInPlace package.json \
--replace "webpack --config" "${nodejs-8_x}/bin/node ./node_modules/webpack/bin/webpack.js --config"
postConfigure = ''
rm deps/CodiMD/node_modules
cp -R "$node_modules" deps/CodiMD
chmod -R u+w deps/CodiMD
'';
buildPhase = ''
ln -s ${nodeEnv}/lib/node_modules node_modules
runHook preBuild
cd deps/CodiMD
pushd node_modules/codemirror
npm run install
popd
pushd node_modules/sqlite3
export OLD_HOME="$HOME"
export HOME="$PWD"
mkdir -p .node-gyp/${nodejs.version}
echo 9 > .node-gyp/${nodejs.version}/installVersion
ln -s ${nodejs}/include .node-gyp/${nodejs.version}
npm run install
export HOME="$OLD_HOME"
unset OLD_HOME
popd
pushd node_modules/phantomjs-prebuilt
npm run install
popd
npm run build
runHook postBuild
'';
installPhase = ''
mkdir -p $out/bin
dontInstall = true;
distPhase = ''
runHook preDist
mkdir -p $out
cp -R {app.js,bin,lib,locales,node_modules,package.json,public} $out
cat > $out/bin/codimd <<EOF
#!${runtimeShell}
${nodejs-8_x}/bin/node $out/app.js
#!${stdenv.shell}/bin/sh
${nodejs}/bin/node $out/app.js
EOF
cp -R {app.js,bin,lib,locales,package.json,public} $out/
'';
postFixup = ''
chmod +x $out/bin/codimd
wrapProgram $out/bin/codimd \
--set NODE_PATH "${nodeEnv}/lib/node_modules"
'';
--set NODE_PATH "$out/lib/node_modules"
passthru = {
sequelize = pkgs.writeScript "codimd-sequelize" ''
#!${pkgs.bash}/bin/bash -e
export NODE_PATH="${nodeEnv}/lib/node_modules"
exec -a "$0" "${nodeEnv}/lib/node_modules/sequelize-cli/bin/sequelize" "$@"
'';
};
runHook postDist
'';
meta = with stdenv.lib; {
description = "Realtime collaborative markdown notes on all platforms";
license = licenses.agpl3;
homepage = https://github.com/hackmdio/codimd;
homepage = "https://github.com/codimd/server";
maintainers = with maintainers; [ willibutz ma27 ];
platforms = platforms.linux;
};

View file

@ -1,149 +0,0 @@
[ { "eve": "^0.5.4" }
, { "babel-cli": "^6.18.0" }
, { "babel-core": "^6.21.0" }
, { "babel-loader": "^6.2.10" }
, { "babel-plugin-transform-runtime": "^6.15.0" }
, { "babel-polyfill": "^6.22.0" }
, { "babel-preset-es2015": "^6.18.0" }
, { "babel-runtime": "^6.20.0" }
, { "copy-webpack-plugin": "^4.0.1" }
, { "css-loader": "^0.26.1" }
, { "doctoc": "^1.3.0" }
, { "ejs-loader": "^0.3.0" }
, { "exports-loader": "^0.6.3" }
, { "expose": "^0.1.4" }
, { "expose-loader": "^0.7.1" }
, { "extract-text-webpack-plugin": "^1.0.1" }
, { "file-loader": "^0.9.0" }
, { "html-webpack-plugin": "^2.25.0" }
, { "imports-loader": "^0.7.0" }
, { "json-loader": "^0.5.4" }
, { "jsonlint": "^1.6.2" }
, { "less": "^2.7.1" }
, { "less-loader": "^2.2.3" }
, { "optimize-css-assets-webpack-plugin": "^1.3.0" }
, { "script-loader": "^0.7.0" }
, { "standard": "^9.0.1" }
, { "string-loader": "^0.0.1" }
, { "style-loader": "^0.13.1" }
, { "url-loader": "^0.5.7" }
, { "webpack": "^1.14.0" }
, { "webpack-parallel-uglify-plugin": "^0.2.0" }
, { "Idle.Js": "git+https://github.com/shawnmclean/Idle.js" }
, { "archiver": "^2.1.1" }
, { "async": "^2.1.4" }
, { "aws-sdk": "^2.7.20" }
, { "base64url": "^3.0.0" }
, { "azure-storage": "^2.7.0" }
, { "blueimp-md5": "^2.6.0" }
, { "body-parser": "^1.15.2" }
, { "bootstrap": "^3.3.7" }
, { "bootstrap-validator": "^0.11.8" }
, { "chance": "^1.0.4" }
, { "cheerio": "^0.22.0" }
, { "codemirror": "git+https://github.com/hackmdio/CodeMirror.git" }
, { "compression": "^1.6.2" }
, { "connect-flash": "^0.1.1" }
, { "connect-session-sequelize": "^4.1.0" }
, { "cookie": "0.3.1" }
, { "cookie-parser": "1.4.3" }
, { "deep-freeze": "^0.0.1" }
, { "diff-match-patch": "git+https://github.com/hackmdio/diff-match-patch.git" }
, { "ejs": "^2.5.5" }
, { "emojify.js": "~1.1.0" }
, { "express": ">=4.14" }
, { "express-session": "^1.14.2" }
, { "file-saver": "^1.3.3" }
, { "flowchart.js": "^1.6.4" }
, { "font-awesome": "^4.7.0" }
, { "formidable": "^1.0.17" }
, { "gist-embed": "~2.6.0" }
, { "graceful-fs": "^4.1.11" }
, { "handlebars": "^4.0.6" }
, { "helmet": "^3.3.0" }
, { "highlight.js": "~9.12.0" }
, { "i18n": "^0.8.3" }
, { "imgur": "git+https://github.com/hackmdio/node-imgur.git" }
, { "ionicons": "~2.0.1" }
, { "jquery": "^3.1.1" }
, { "jquery-mousewheel": "^3.1.13" }
, { "jquery-ui": "^1.12.1" }
, { "js-cookie": "^2.1.3" }
, { "js-url": "^2.3.0" }
, { "js-yaml": "^3.7.0" }
, { "jsdom-nogyp": "^0.8.3" }
, { "keymaster": "^1.6.2" }
, { "list.js": "^1.5.0" }
, { "lodash": "^4.17.4" }
, { "lz-string": "1.4.4" }
, { "markdown-it": "^8.2.2" }
, { "markdown-it-abbr": "^1.0.4" }
, { "markdown-it-container": "^2.0.0" }
, { "markdown-it-deflist": "^2.0.1" }
, { "markdown-it-emoji": "^1.3.0" }
, { "markdown-it-footnote": "^3.0.1" }
, { "markdown-it-imsize": "^2.0.1" }
, { "markdown-it-ins": "^2.0.0" }
, { "markdown-it-mark": "^2.0.0" }
, { "markdown-it-mathjax": "^2.0.0" }
, { "markdown-it-regexp": "^0.4.0" }
, { "markdown-it-sub": "^1.0.0" }
, { "markdown-it-sup": "^1.0.0" }
, { "markdown-pdf": "^8.0.0" }
, { "mathjax": "~2.7.0" }
, { "mermaid": "~7.1.0" }
, { "mattermost": "^3.4.0" }
, { "meta-marked": "^0.4.2" }
, { "method-override": "^2.3.7" }
, { "minimist": "^1.2.0" }
, { "minio": "^6.0.0" }
, { "moment": "^2.17.1" }
, { "morgan": "^1.7.0" }
, { "mysql": "^2.12.0" }
, { "node-uuid": "^1.4.7" }
, { "octicons": "~4.4.0" }
, { "passport": "^0.4.0" }
, { "passport-dropbox-oauth2": "^1.1.0" }
, { "passport-facebook": "^2.1.1" }
, { "passport-github": "^1.1.0" }
, { "passport-gitlab2": "^4.0.0" }
, { "passport-google-oauth20": "^1.0.0" }
, { "passport-ldapauth": "^2.0.0" }
, { "passport-local": "^1.0.0" }
, { "passport-oauth2": "^1.4.0" }
, { "passport-twitter": "^1.0.4" }
, { "passport-saml": "^0.31.0" }
, { "passport.socketio": "^3.7.0" }
, { "pdfobject": "^2.0.201604172" }
, { "pg": "^6.1.2" }
, { "pg-hstore": "^2.3.2" }
, { "prismjs": "^1.6.0" }
, { "randomcolor": "^0.5.3" }
, { "raphael": "git+https://github.com/dmitrybaranovskiy/raphael" }
, { "readline-sync": "^1.4.7" }
, { "request": "^2.79.0" }
, { "reveal.js": "~3.6.0" }
, { "scrypt": "^6.0.3" }
, { "select2": "^3.5.2-browserify" }
, { "sequelize": "^3.28.0" }
, { "sequelize-cli": "^2.5.1" }
, { "shortid": "2.2.8" }
, { "socket.io": "~2.0.4" }
, { "socket.io-client": "~2.0.4" }
, { "spin.js": "^2.3.2" }
, { "sqlite3": "^4.0.1" }
, { "store": "^2.0.12" }
, { "string": "^3.3.3" }
, { "tedious": "^1.14.0" }
, { "to-markdown": "^3.0.3" }
, { "toobusy-js": "^0.5.1" }
, { "uuid": "^3.1.0" }
, { "uws": "~0.14.1" }
, { "validator": "^10.4.0" }
, { "velocity-animate": "^1.4.0" }
, { "visibilityjs": "^1.2.4" }
, { "viz.js": "^1.7.0" }
, { "winston": "^2.3.0" }
, { "xss": "^1.0.3" } ]

View file

@ -1,7 +0,0 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix
node2nix -8 -i deps.json \
-e ../../../development/node-packages/node-env.nix \
--no-copy-node-env \
-c node.nix

View file

@ -1,33 +0,0 @@
{ pkgs, nodejs, extraNodePackages }:
let
nodeEnv = import ../../../../development/node-packages/node-env.nix {
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
inherit nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
nodeEnv.buildNodePackage {
name = "js-sequence-diagrams";
packageName = "js-sequence-diagrams";
version = "1000000.0.6";
src = pkgs.fetchFromGitHub {
owner = "Moeditor";
repo = "js-sequence-diagrams";
rev = "4d46bc6229a3f93c9bcad561cab4924034f5456d";
sha256 = "09ri5cx5yq87p3nla06gs0xb2gifmsy0xhs0s5524xr4ya6pnivv";
};
dependencies = [ ];
dontNpmInstall = true;
meta = {
description = "Fucks NPM and draws simple SVG sequence diagrams from textual representation of the diagram";
homepage = "https://github.com/Moeditor/js-sequence-diagrams#readme";
license = "BSD-2-Clause";
};
production = true;
bypassCache = true;
postInstall = builtins.concatStringsSep "\n" (pkgs.lib.mapAttrsToList (
name: pkg: "ln -s ${pkg}/lib/node_modules/${name} $out/lib/node_modules/${name}"
) extraNodePackages);
}

File diff suppressed because it is too large Load diff

View file

@ -1,17 +0,0 @@
# This file has been generated by node2nix 1.7.0. Do not edit!
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-8_x"}:
let
nodeEnv = import ../../../development/node-packages/node-env.nix {
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
inherit nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv;
}

View file

@ -0,0 +1,211 @@
{
"name": "CodiMD",
"version": "1.4.0",
"description": "Realtime collaborative markdown notes on all platforms.",
"main": "app.js",
"license": "AGPL-3.0",
"scripts": {
"test": "npm run-script eslint && npm run-script jsonlint && npm run-script mocha-suite",
"eslint": "node_modules/.bin/eslint lib public test app.js",
"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",
"standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1",
"dev": "webpack --config webpack.dev.js --progress --colors --watch",
"heroku-prebuild": "bin/heroku",
"build": "webpack --config webpack.prod.js --progress --colors --bail",
"start": "sequelize db:migrate && node app.js"
},
"dependencies": {
"@passport-next/passport-openid": "^1.0.0",
"Idle.Js": "git+https://github.com/shawnmclean/Idle.js",
"archiver": "^2.1.1",
"async": "^2.1.4",
"aws-sdk": "^2.345.0",
"azure-storage": "^2.7.0",
"base64url": "^3.0.0",
"body-parser": "^1.15.2",
"bootstrap": "^3.4.0",
"bootstrap-validator": "^0.11.8",
"chance": "^1.0.4",
"cheerio": "^0.22.0",
"codemirror": "git+https://github.com/hackmdio/CodeMirror.git",
"compression": "^1.6.2",
"connect-flash": "^0.1.1",
"connect-session-sequelize": "^4.1.0",
"cookie": "0.3.1",
"cookie-parser": "1.4.3",
"deep-freeze": "^0.0.1",
"diff-match-patch": "git+https://github.com/hackmdio/diff-match-patch.git",
"ejs": "^2.5.5",
"emojify.js": "~1.1.0",
"escape-html": "^1.0.3",
"express": ">=4.14",
"express-session": "^1.14.2",
"file-saver": "^1.3.3",
"flowchart.js": "^1.6.4",
"fork-awesome": "^1.1.3",
"formidable": "^1.0.17",
"gist-embed": "~2.6.0",
"graceful-fs": "^4.1.11",
"handlebars": "^4.1.2",
"helmet": "^3.13.0",
"highlight.js": "~9.12.0",
"i18n": "^0.8.3",
"imgur": "git+https://github.com/hackmdio/node-imgur.git",
"ionicons": "~2.0.1",
"jquery": "^3.4.1",
"jquery-mousewheel": "^3.1.13",
"jquery-ui": "^1.12.1",
"js-cookie": "^2.1.3",
"js-sequence-diagrams": "git+https://github.com/codimd/js-sequence-diagrams.git",
"js-yaml": "^3.13.1",
"jsdom-nogyp": "^0.8.3",
"keymaster": "^1.6.2",
"list.js": "^1.5.0",
"lodash": "^4.17.11",
"lutim": "^1.0.2",
"lz-string": "git+https://github.com/hackmdio/lz-string.git",
"markdown-it": "^8.2.2",
"markdown-it-abbr": "^1.0.4",
"markdown-it-container": "^2.0.0",
"markdown-it-deflist": "^2.0.1",
"markdown-it-emoji": "^1.3.0",
"markdown-it-footnote": "^3.0.1",
"markdown-it-imsize": "^2.0.1",
"markdown-it-ins": "^2.0.0",
"markdown-it-mark": "^2.0.0",
"markdown-it-mathjax": "^2.0.0",
"markdown-it-regexp": "^0.4.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-pdf": "^9.0.0",
"mathjax": "~2.7.0",
"mattermost": "^3.4.0",
"mermaid": "~7.1.0",
"meta-marked": "git+https://github.com/codimd/meta-marked#semver:^0.4.2",
"method-override": "^2.3.7",
"minimist": "^1.2.0",
"minio": "^6.0.0",
"moment": "^2.17.1",
"morgan": "^1.7.0",
"mysql": "^2.12.0",
"passport": "^0.4.0",
"passport-dropbox-oauth2": "^1.1.0",
"passport-facebook": "^2.1.1",
"passport-github": "^1.1.0",
"passport-gitlab2": "^4.0.0",
"passport-google-oauth20": "^1.0.0",
"passport-ldapauth": "^2.0.0",
"passport-local": "^1.0.0",
"passport-oauth2": "^1.4.0",
"passport-saml": "^1.0.0",
"passport-twitter": "^1.0.4",
"passport.socketio": "^3.7.0",
"pdfobject": "^2.0.201604172",
"pg": "^6.1.2",
"pg-hstore": "^2.3.2",
"prismjs": "^1.6.0",
"randomcolor": "^0.5.3",
"raphael": "git+https://github.com/dmitrybaranovskiy/raphael",
"readline-sync": "^1.4.7",
"request": "^2.88.0",
"reveal.js": "~3.7.0",
"scrypt-async": "^2.0.1",
"scrypt-kdf": "^2.0.1",
"select2": "^3.5.2-browserify",
"sequelize": "^3.28.0",
"sequelize-cli": "^2.5.1",
"shortid": "2.2.8",
"socket.io": "~2.1.1",
"socket.io-client": "~2.1.1",
"spin.js": "^2.3.2",
"sqlite3": "^4.0.7",
"store": "^2.0.12",
"string": "^3.3.3",
"tedious": "^1.14.0",
"toobusy-js": "^0.5.1",
"turndown": "^5.0.1",
"uuid": "^3.1.0",
"validator": "^10.4.0",
"velocity-animate": "^1.4.0",
"visibilityjs": "^1.2.4",
"viz.js": "^1.7.0",
"winston": "^3.1.0",
"ws": "^6.0.0",
"wurl": "^2.5.3",
"xss": "^1.0.3"
},
"resolutions": {
"**/tough-cookie": "~2.4.0",
"**/minimatch": "^3.0.2",
"**/request": "^2.88.0"
},
"engines": {
"node": ">=8.x"
},
"bugs": "https://github.com/codimd/server/issues",
"keywords": [
"Collaborative",
"Markdown",
"Notes"
],
"homepage": "https://codimd.org",
"maintainers": [
{
"name": "Claudius Coenen",
"url": "https://www.claudiuscoenen.de/"
},
{
"name": "Christoph (Sheogorath) Kern",
"email": "codimd@sheogorath.shivering-isles.com",
"url": "https://shivering-isles.com"
}
],
"repository": {
"type": "git",
"url": "https://github.com/codimd/server.git"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-runtime": "^6.26.0",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^1.0.0",
"ejs-loader": "^0.3.1",
"eslint": "^5.9.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"exports-loader": "^0.7.0",
"expose-loader": "^0.7.5",
"file-loader": "^2.0.0",
"html-webpack-plugin": "4.0.0-beta.2",
"imports-loader": "^0.8.0",
"jsonlint": "^1.6.2",
"less": "^2.7.1",
"less-loader": "^4.1.0",
"mini-css-extract-plugin": "^0.4.1",
"mocha": "^5.2.0",
"mock-require": "^3.0.3",
"optimize-css-assets-webpack-plugin": "^5.0.0",
"script-loader": "^0.7.2",
"string-loader": "^0.0.1",
"style-loader": "^0.21.0",
"uglifyjs-webpack-plugin": "^1.2.7",
"url-loader": "^1.0.1",
"webpack": "^4.14.0",
"webpack-cli": "^3.1.0",
"webpack-merge": "^4.1.4",
"webpack-parallel-uglify-plugin": "^1.1.0"
},
"optionalDependencies": {
"bufferutil": "^4.0.0",
"utf-8-validate": "^5.0.1"
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -2168,7 +2168,13 @@ in
cmst = libsForQt5.callPackage ../tools/networking/cmst { };
codimd = callPackage ../servers/web-apps/codimd { };
codimd = callPackage ../servers/web-apps/codimd {
nodejs = nodejs-10_x;
yarn2nix = yarn2nix-moretea.override {
nodejs = nodejs-10_x;
yarn = yarn.override { nodejs = nodejs-10_x; };
};
};
colord = callPackage ../tools/misc/colord { };