-
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
a7237cb
commit 68c5b47
Showing
19 changed files
with
57 additions
and
31 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
code/sys.driver/driver-automerge/src/crdt.fs/Store.Fs.Index/mod.ts
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 +1,4 @@ | ||
/** | ||
* TODO 🐷 | ||
*/ | ||
export {}; |
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,2 +1 @@ | ||
export { Tmpl } from './m.Tmpl.ts'; | ||
export { ensureFiles } from './u.ensureFiles.ts'; |
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion
2
...r-vitepress/src/m.VitePress/-.Env.test.ts → .../driver-vitepress/src/m.Env/-.Env.test.ts
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,25 @@ | ||
import { type t, expect } from '../-test.ts'; | ||
import { Fs } from './common.ts'; | ||
export { SAMPLE } from '../m.VitePress/-u.ts'; | ||
|
||
/** | ||
* Assert the given path exists. | ||
*/ | ||
export const assertExists = async (path: t.StringPath, expected = true) => { | ||
expect(await Fs.exists(path)).to.eql(expected, path); | ||
}; | ||
|
||
/** | ||
* Assert all the standard environment paths exists in the given directory. | ||
*/ | ||
export const assertEnvExists = async (dir: t.StringDir, expected = true) => { | ||
const assert = (path: string) => assertExists(Fs.join(dir, path), expected); | ||
await assert('.vscode/settings.json'); | ||
await assert('.gitignore'); | ||
await assert('.vitepress/config.ts'); | ||
await assert('.sys/-main.ts'); | ||
await assert('deno.json'); | ||
await assert('package.json'); | ||
await assert('pkg.ts'); | ||
await assert('docs/index.md'); | ||
}; |
File renamed without changes.
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,19 @@ | ||
import { type t, c } from './common.ts'; | ||
import { ensureFiles } from './u.ensureFiles.ts'; | ||
|
||
/** | ||
* Helpers for establishing and updating the project environment. | ||
*/ | ||
export const Env: t.VitePressEnvLib = { | ||
/** | ||
* Initialize template files. | ||
*/ | ||
async init(args = {}) { | ||
const { inDir = '', srcDir, force = false, silent = false, filter } = args; | ||
const files = await ensureFiles({ inDir, srcDir, force, filter }); | ||
if (!silent) { | ||
console.info(c.green('Update Environment')); | ||
files.table.render(); | ||
} | ||
}, | ||
}; |
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 @@ | ||
export { Env } from './m.Env.ts'; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...iver-vitepress/src/-tmpl/u.ensureFiles.ts → ...iver-vitepress/src/m.Env/u.ensureFiles.ts
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
File renamed without changes.
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,5 @@ | ||
export { ViteLog } from '@sys/driver-vite/log'; | ||
export { Tmpl, ensureFiles } from '../-tmpl/mod.ts'; | ||
export { Tmpl } from '../-tmpl/mod.ts'; | ||
export { Env } from '../m.Env/mod.ts'; | ||
|
||
export * from '../common.ts'; |
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
code/sys.driver/driver-vitepress/src/m.VitePress/m.VitePress.ts
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
3 changes: 1 addition & 2 deletions
3
code/sys.driver/driver-vitepress/src/m.VitePress/u.cmd.build.ts
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
12 changes: 0 additions & 12 deletions
12
code/sys.driver/driver-vitepress/src/m.VitePress/u.initEnv.ts
This file was deleted.
Oops, something went wrong.
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