diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-13 20:39:27 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-13 20:39:27 +0100 |
commit | f630d296af067bdfa5ad9fa423d36aa629f17148 (patch) | |
tree | b1a14cb9e44a15e1d97da14f30113dfbb3f7e508 | |
parent | 98a64c88c6b8911bb2eb71a4ab9bd918a91145af (diff) | |
download | kronika-f630d296af067bdfa5ad9fa423d36aa629f17148.tar.gz kronika-f630d296af067bdfa5ad9fa423d36aa629f17148.zip |
Remove unnecessary files
-rw-r--r-- | test/.envrc | 1 | ||||
-rwxr-xr-x | test/_headers | 2 | ||||
-rw-r--r-- | test/build.js | 6 | ||||
-rw-r--r-- | test/check.js | 11 | ||||
-rw-r--r-- | test/default.nix | 9 | ||||
-rw-r--r-- | test/package.json | 17 | ||||
-rwxr-xr-x | test/validator.sh | 9 |
7 files changed, 0 insertions, 55 deletions
diff --git a/test/.envrc b/test/.envrc deleted file mode 100644 index 1d953f4..0000000 --- a/test/.envrc +++ /dev/null @@ -1 +0,0 @@ -use nix diff --git a/test/_headers b/test/_headers deleted file mode 100755 index f2d986b..0000000 --- a/test/_headers +++ /dev/null @@ -1,2 +0,0 @@ -/* - Access-Control-Allow-Origin: * diff --git a/test/build.js b/test/build.js deleted file mode 100644 index b9fe6e3..0000000 --- a/test/build.js +++ /dev/null @@ -1,6 +0,0 @@ -import Kronikarz from 'kronikarz'; - -const k = new Kronikarz('../wpisy'); - -k.generateApi('../static'); -k.generateRss('../static/rss.xml', {title: "Kronika 19PDH Puszcza", feed_url: "https://puszcza.netlify.app/rss.xml", site_url: "https://puszcza.netlify.app"} ); diff --git a/test/check.js b/test/check.js deleted file mode 100644 index 12ed637..0000000 --- a/test/check.js +++ /dev/null @@ -1,11 +0,0 @@ -import readline from 'readline'; -import Post from 'kronikarz/dist/Post'; - -const rl = readline.createInterface({ - input: process.stdin, - output: process.stdout, -}); - -rl.question('', (filePath) => { - new Post(filePath); -}); diff --git a/test/default.nix b/test/default.nix deleted file mode 100644 index 65e3443..0000000 --- a/test/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -let - pkgs = import <nixpkgs> { }; -in - with pkgs; - mkShell { - buildInputs = [ - nodejs - ]; - } diff --git a/test/package.json b/test/package.json deleted file mode 100644 index f5a9a93..0000000 --- a/test/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "tester", - "version": "1.0.0", - "description": "Checks if articles are write in right way", - "main": "check.js", - "dependencies": { - "esm": "^3.2.25", - "kronikarz": "^2.3.1" - }, - "scripts": { - "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": [], - "author": "Patryk Niedźwiedziński", - "license": "ISC" -} diff --git a/test/validator.sh b/test/validator.sh deleted file mode 100755 index b7e738c..0000000 --- a/test/validator.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -NEW_FILES=`git diff --name-only HEAD master | egrep 'wpisy/*'` - -for file in $NEW_FILES; do - echo "../$file" > path.in - - node -r esm check.js < path.in -done \ No newline at end of file |