- Install Nix package manager
- Run
nix develop
ordirenv allow
- You can use development tasks
> nix develop
(prepared shell)
> makers help
> Tools
---
check - ...
help - ...
> makers setup
added 438 packages, and audited 439 packages in 6s
> makers check
...tests, typechecks, linters...
See also scripts for tasks details.
pnpm run repl
Welcome to Node.js v20.12.2.
Type ".help" for more information.
>
// You can use `import()` function, not `import statement`.
> const { Temporal } = await import('temporal-polyfill')
> Temporal.Duration.from({seconds: 500}).round({ largestUnit: 'minutes' }).toString()
'PT8M20S'
// exported methods in this repository also can be loaded
> const { readableDuration } = await import('./src/report.ts');
> readableDuration(Temporal.Duration.from({seconds: 500}))
'about 8 minutes 20 seconds'
// You can directly use TypeScript code
> const map = new Map<K, Array<T>>();
> map.set(undefined, 42)
Map(1) { undefined => 42 }