-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For migrating WordPress blog. Tabling, for re-rework.
- Loading branch information
Showing
13 changed files
with
286 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"program": "${workspaceFolder}/example.js" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"git.ignoreLimitWarning": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "start", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { | ||
catcher, | ||
iterateIntoArchivable | ||
} from '../src/module'; | ||
import { | ||
read, | ||
handle, | ||
write | ||
} from '../src/markdownify'; | ||
|
||
const URL_LIST = 'archive/index.csv'; | ||
|
||
(async () => { | ||
/** | ||
* Something is going somewhat as an anti-pattern here. | ||
* We want Promise.all(...) at each step, and it's not how | ||
* it is as of now. Needs rework here. TODO | ||
*/ | ||
for (const archivable of iterateIntoArchivable(URL_LIST)) { | ||
const contents = await read(archivable).catch(catcher); | ||
const handled = await handle(contents).catch(catcher); | ||
await write(handled).catch(catcher); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,37 +2,51 @@ | |
"name": "archivator", | ||
"version": "1.0.0", | ||
"description": "Fetch and stream body contents for URLs", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/renoirb/archivator.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/renoirb/archivator/issues" | ||
}, | ||
"bin": { | ||
"archivator-archive": "./src/archive.js", | ||
"archivator-analyze": "./src/analyze.js" | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/renoirb/archivator.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Renoir Boulanger <[email protected]> (http://renoirb.com/)", | ||
"main": "index.js", | ||
"module": "module.js", | ||
"bin": { | ||
"archivator-analyze": "./dist/analyze.js", | ||
"archivator-archive": "./dist/archive.js" | ||
}, | ||
"scripts": { | ||
"analyze": "node_modules/.bin/babel-node src/analyze.js", | ||
"archive": "node_modules/.bin/babel-node src/archive.js", | ||
"dev": "node_modules/.bin/babel src/ -d dist/ -w -s", | ||
"dist": "node_modules/.bin/babel src/ --minified -d dist/ -s", | ||
"test": "node_modules/.bin/mocha --compilers js:babel-core/register", | ||
"lint": "node_modules/.bin/xo", | ||
"dev": "node_modules/.bin/babel src/ -d dist/ -w -s", | ||
"archive": "node_modules/.bin/babel-node src/archive.js", | ||
"analyze": "node_modules/.bin/babel-node src/analyze.js", | ||
"lint:fix": "node_modules/.bin/xo --fix", | ||
"markdownify": "node_modules/.bin/babel-node src/markdownify.js", | ||
"lint:fix": "node_modules/.bin/xo --fix" | ||
"test": "node_modules/.bin/mocha --compilers js:babel-core/register" | ||
}, | ||
"xo": { | ||
"esnext": true, | ||
"ignores": [ | ||
"dist/**", | ||
"example.js" | ||
], | ||
"plugins": [ | ||
"unicorn" | ||
], | ||
"rules": { | ||
"func-names": 0 | ||
}, | ||
"space": 2 | ||
}, | ||
"author": "Renoir Boulanger <[email protected]> (http://renoirb.com/)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"async-file": "^2.0.2", | ||
"babel-polyfill": "^6.23.0", | ||
"cheerio": "^0.22.0", | ||
"elasticsearch": "^12.1.3", | ||
"esm": "^3.0.81", | ||
"esm": "^3.2.25", | ||
"gen-readlines": "^0.1.3", | ||
"html-md-2": "^3.0.0", | ||
"node-fetch": "^1.6.3", | ||
|
@@ -52,19 +66,5 @@ | |
"eslint-plugin-unicorn": "^1.0.0", | ||
"mocha": "^3.2.0", | ||
"xo": "^0.17.1" | ||
}, | ||
"xo": { | ||
"esnext": true, | ||
"space": 2, | ||
"plugins": [ | ||
"unicorn" | ||
], | ||
"ignores": [ | ||
"dist/**", | ||
"example.js" | ||
], | ||
"rules": { | ||
"func-names": 0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
"a", | ||
"avec", | ||
"ce", | ||
"dans", | ||
"de", | ||
"de", | ||
"des", | ||
"du", | ||
"en", | ||
"est", | ||
"jai", | ||
"je", | ||
"la", | ||
"le", | ||
"les", | ||
"long", | ||
"mon", | ||
"non", | ||
"off", | ||
"oh", | ||
"ok", | ||
"or", | ||
"pas", | ||
"possible", | ||
"pour", | ||
"que", | ||
"qui", | ||
"sensible", | ||
"sont", | ||
"sur", | ||
"une", | ||
"zero", | ||
"janvier", | ||
"fevrier", | ||
"mars", | ||
"avril", | ||
"mai", | ||
"juin", | ||
"juillet", | ||
"aout", | ||
"septembre", | ||
"octobre", | ||
"novembre", | ||
"decembre" | ||
] |
Oops, something went wrong.