-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f771924
commit c908593
Showing
6 changed files
with
32 additions
and
2 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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"eips": [ | ||
1459, | ||
2124, | ||
225, | ||
2364, | ||
2364, | ||
2464, | ||
2464, | ||
706 | ||
] | ||
|
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
name: Péter Szilágyi | ||
links: | ||
github: https://github.com/karalabe | ||
emails: | ||
- [email protected] | ||
- [email protected] |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts"; | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { emptyDir } from "https://deno.land/[email protected]/fs/empty_dir.ts"; | ||
import { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts"; | ||
import { exists } from "https://deno.land/[email protected]/fs/exists.ts"; | ||
import Ajv from "https://esm.sh/[email protected]?pin=v58"; | ||
import addFormats from "https://esm.sh/[email protected]"; | ||
|
@@ -82,6 +83,14 @@ export default class Engine { | |
}; | ||
} | ||
|
||
async itemCreate(colId, slug, index) { | ||
const dir = this.path(this.config.dataDir, colId, slug); | ||
if (await exists(dir)) { | ||
throw Error(`Dir exists!: ${dir}`) | ||
} | ||
await ensureDir() | ||
} | ||
|
||
path(...paths) { | ||
return path.join(this.params.cwd, ...paths); | ||
} | ||
|
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,6 +2,7 @@ import Engine from "./engine.js"; | |
import cheerio from "npm:[email protected]"; | ||
import { ensureDir, exists } from "https://deno.land/[email protected]/fs/mod.ts"; | ||
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts"; | ||
import { slugify } from "https://deno.land/x/slugify/mod.ts"; | ||
|
||
const e = new Engine(); | ||
await e.init(); | ||
|
@@ -59,7 +60,8 @@ const tools = { | |
await Deno.writeTextFile(cacheFn, output); | ||
return output; | ||
}, | ||
yaml | ||
yaml, | ||
slugify, | ||
} | ||
|
||
for (const extId in e.config.extenders) { | ||
|
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