From 93794988827b94a5489a744c77a47035086aa3d9 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Wed, 30 Sep 2020 22:05:47 +0200 Subject: Kronikarz 2.2.0 (#22) * Update kronikarz * Add ignore paths --- .gitignore | 2 ++ test/.envrc | 1 + test/default.nix | 9 +++++++++ test/package.json | 4 ++-- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 test/.envrc create mode 100644 test/default.nix diff --git a/.gitignore b/.gitignore index 62eeeb8..fcf263a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ .DS_Store static/api +static/files +static/rss.xml # testing node_modules 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 { }; +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": [], -- cgit 1.4.1