diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/.envrc | 1 | ||||
-rw-r--r-- | test/default.nix | 9 | ||||
-rw-r--r-- | test/package.json | 4 |
3 files changed, 12 insertions, 2 deletions
diff --git a/test/.envrc b/test/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/test/.envrc @@ -0,0 +1 @@ +use nix diff --git a/test/default.nix b/test/default.nix new file mode 100644 index 0000000..65e3443 --- /dev/null +++ b/test/default.nix @@ -0,0 +1,9 @@ +let + pkgs = import <nixpkgs> { }; +in + with pkgs; + mkShell { + buildInputs = [ + nodejs + ]; + } diff --git a/test/package.json b/test/package.json index 85edd14..acebb34 100644 --- a/test/package.json +++ b/test/package.json @@ -5,10 +5,10 @@ "main": "check.js", "dependencies": { "esm": "^3.2.25", - "kronikarz": "^2.0.0" + "kronikarz": "^2.2.0" }, "scripts": { - "build": "mkdir -p ../static/api && touch ../static/api/posts.json && node -r esm build.js && cp _headers ../static && cp -r ../wpisy ../static/files", + "build": "mkdir -p ../static/api && touch ../static/api/posts.json && sed -i '/type\": \"module/d' node_modules/@gerhobbelt/markdown-it-html5-media/package.json && node -r esm build.js && cp _headers ../static && cp -r ../wpisy ../static/files", "test": "./validator.sh" }, "keywords": [], |