-
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.
Merge pull request #13 from artpani4/artpani/ward
Artpani/ward
- Loading branch information
Showing
18 changed files
with
568 additions
and
106 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,5 +1,5 @@ | ||
import Tuner from '../../mod.ts'; | ||
|
||
export default Tuner.tune({ | ||
config: { a: 100, d: 101 }, | ||
config: { a: 100, d: 101, CONFIG_B: 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Tuner from '../../mod.ts'; | ||
|
||
export default Tuner.tune({ | ||
config: { a: 400, b: 401, c: 402 }, | ||
config: { a: 50, b: 40, c: 402, base: false }, | ||
}); |
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 |
---|---|---|
@@ -1,9 +1,25 @@ | ||
import Tuner from '../../mod.ts'; | ||
import { Config } from './configSchema.ts'; | ||
const cfg = (await Tuner.use.loadConfig()) as Config; | ||
// Tuner.use.generateSchema( | ||
import { Ward } from '../../src/ward/ward.ts'; | ||
|
||
let cfg = await Tuner.use.loadConfig(); | ||
// await Tuner.use.generateSchema( | ||
// cfg, | ||
// 'config', | ||
// 'example/config/configSchema.ts', | ||
// ); | ||
console.log(cfg); | ||
await Tuner.onChanged(async (_data) => { | ||
// cfg = (await Tuner.use.loadConfig()) as Config; | ||
cfg = await Tuner.use.loadConfig(); | ||
console.log(cfg); | ||
}); | ||
|
||
setInterval(() => { | ||
// console.log(Ward.wards.map((ward) => ward.period).join(' ')); | ||
console.log(Deno.memoryUsage().heapUsed); | ||
// gc(); | ||
}, 600); | ||
|
||
// const a = async (x: number) => x + 2; | ||
// const b = async (x: number) => x + 2; | ||
|
||
// console.log(a.toString() === b.toString()); |
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,14 +1,6 @@ | ||
// import Tuner from '../mod.ts'; | ||
// import { Config } from './config/schema.ts'; | ||
// const config = (await Tuner.use.loadConfig()) as Config; | ||
// console.log(config); | ||
|
||
// config/develop.tuner.ts | ||
import Tuner from '../mod.ts'; | ||
export default Tuner.tune({ | ||
child: Tuner.Load.local.configDir('a.tuner.ts'), | ||
config: { | ||
a: 300, | ||
b: 301, | ||
}, | ||
}); | ||
import { Config } from './config/configSchema.ts'; | ||
|
||
const config = (await Tuner.use.loadConfig()) as Config; | ||
|
||
setInterval(() => console.log(Deno.memoryUsage()), 500); |
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
Oops, something went wrong.