Browse Source

nix?

tags/v0.1.0
Dale 2 months ago
parent
commit
02db6295bb
3 changed files with 412 additions and 1348 deletions
  1. +18
    -1
      default.nix
  2. +7
    -8
      package.json
  3. +387
    -1339
      yarn.lock

+ 18
- 1
default.nix View File

@@ -1,14 +1,31 @@
with import <nixpkgs> {};

stdenv.mkDerivation {
# stdenv.mkDerivation {
mkYarnPackage {
name = "miarcle-tv";
version = "0.1.0";
system = builtins.currentSystem;

src = fetchgit {
url = "https://code.gensokyo.social/Gensokyo.social/miracle-tv.git";
rev = "ec36ef4f4f1b418af0f9741f32426211ec69dcd0";
sha256 = "1bf0hfbdiszmq7sf7hp14bb5ckf4k59gy6jbggij97m3br8xi9nw";
};

packageJSON = ./package.json;
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;

shellHook = ''
export PATH="$PATH:$PWD/node_modules/.bin"
'';

installPhase = ''
ls $src/bin/
bash $src/bin/buildServer.sh
cp dist/* $out
'';

buildInputs = with pkgs; [
yarn automake autoconf m4 git bash
nodejs-14_x libpng libGL gcc


+ 7
- 8
package.json View File

@@ -6,16 +6,17 @@
"license": "MIT",
"private": false,
"scripts": {
"test": "sh ./bin/testServer.sh",
"test": "./bin/testServer.sh",
"test:mocha": "NODE_PATH=./src ./node_modules/.bin/mocha",
"watch:server": "./node_modules/.bin/nodemon -e ts --exec \"yarn run:server\"",
"run:server": "./node_modules/.bin/ts-node -r ./node_modules/tsconfig-paths/register ./src/server/server.ts",
"build:server": "rm -rf ./dist/* && ./node_modules/.bin/tsc",
"build:server": "./bin/buildServer.sh",
"test:server": "NODE_PATH=./src ./node_modules/.bin/mocha -r ts-node/register -r tsconfig-paths/register test/server/**/*.spec.ts --configPath ./config/test.json",
"migrate:add": "./node_modules/.bin/knex migrate:make --migrations-directory .\\migrations",
"migrate:local": "./node_modules/.bin/knex migrate:latest",
"migrate:test": "yarn migrate:local ./config/test.json"
},
"postInstall": "chmod +x ./bin/*",
"dependencies": {
"@types/js-md5": "^0.4.2",
"ajv": "^6.10.0",
@@ -25,9 +26,10 @@
"knex": "^0.16.5",
"minimist": "^1.2.0",
"miracle-tv-shared": "git+https://code.gensokyo.social/Gensokyo.social/miracle-tv-shared.git",
"pg": "^7.11.0",
"node-pre-gyp": "^0.15.0",
"pg": "^8.3.0",
"ramda": "^0.26.1",
"sqlite3": "^4.0.8",
"sqlite3": "^5.0.0",
"supertest": "^4.0.2",
"uuid": "^3.3.2"
},
@@ -51,9 +53,6 @@
"tsconfig-paths": "^3.8.0",
"tslint": "^5.18.0",
"tslint-config-airbnb": "^5.11.1",
"typescript": "^3.4.5",
"webpack": "^4.32.0",
"webpack-cli": "^3.3.2",
"webpack-node-externals": "^1.7.2"
"typescript": "^3.4.5"
}
}

+ 387
- 1339
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save