Skip to content

Commit

Permalink
feat: add kleur-template
Browse files Browse the repository at this point in the history
  • Loading branch information
henrycunh committed Mar 3, 2022
1 parent 80597db commit f5804f7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -152,6 +152,7 @@ const filled = template.file({ GITHUB_TOKEN: '...' }, 'my-template')
### Included batteries

- `kleur` - a nice color library
- `kleur-template` - easier coloring through templating
- `glob` - utility for globbing files
- `yaml` - a yaml parser
- `os` - the os package
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1 +1 @@
{"name":"haxx","version":"0.0.6","description":"a very opinionated runtime for scripts, it simply works","main":"dist/index.mjs","module":"dist/index.mjs","type":"module","files":["dist/index.mjs","dist/*.d.ts","dist/chunks"],"bin":{"haxx":"./dist/haxx.mjs"},"exports":{".":{"import":"./dist/index.mjs"}},"types":"dist/*.d.ts","engines":{"node":">= 14.8.0"},"scripts":{"test":"vitest -u","build":"unbuild"},"repository":{"type":"git","url":"git+https://github.com/henrycunh/isw.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/henrycunh/isw/issues"},"homepage":"https://github.com/henrycunh/isw#readme","devDependencies":{"@antfu/eslint-config":"^0.16.1","@types/fs-extra":"^9.0.13","eslint":"^8.9.0","esmo":"^0.14.1","typescript":"^4.5.5","unbuild":"^0.6.9","vitest":"^0.5.3"},"dependencies":{"axios":"^0.26.0","fs-extra":"^10.0.1","globby":"^13.1.1","haxx":"^0.0.4","kleur":"^4.1.4","minimist":"^1.2.5","mustache":"^4.2.0","ps-tree":"^1.2.0","which":"^2.0.2","yaml":"^1.10.2"}}
{"name":"haxx","version":"0.0.6","description":"a very opinionated runtime for scripts, it simply works","main":"dist/index.mjs","module":"dist/index.mjs","type":"module","files":["dist/index.mjs","dist/*.d.ts","dist/chunks"],"bin":{"haxx":"./dist/haxx.mjs"},"exports":{".":{"import":"./dist/index.mjs"}},"types":"dist/*.d.ts","engines":{"node":">= 14.8.0"},"scripts":{"test":"vitest -u","build":"unbuild"},"repository":{"type":"git","url":"git+https://github.com/henrycunh/isw.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/henrycunh/isw/issues"},"homepage":"https://github.com/henrycunh/isw#readme","devDependencies":{"@antfu/eslint-config":"^0.16.1","@types/fs-extra":"^9.0.13","eslint":"^8.9.0","esmo":"^0.14.1","typescript":"^4.5.5","unbuild":"^0.6.9","vitest":"^0.5.3"},"dependencies":{"axios":"^0.26.0","fs-extra":"^10.0.1","globby":"^13.1.1","haxx":"^0.0.4","kleur":"^4.1.4","kleur-template":"^0.0.1","minimist":"^1.2.5","mustache":"^4.2.0","ps-tree":"^1.2.0","which":"^2.0.2","yaml":"^1.10.2"}}
29 changes: 29 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/global.ts
Expand Up @@ -5,6 +5,7 @@ import axios from 'axios'
import fs from 'fs-extra'
import YAML from 'yaml'
import * as glob from 'globby'
import { style } from 'kleur-template'
import { io, read, write } from './io'
import { template } from './template'
import {
Expand Down Expand Up @@ -33,5 +34,6 @@ export function registerGlobals() {
read,
write,
template,
style
})
}

0 comments on commit f5804f7

Please sign in to comment.