Skip to content

Commit 6f48ff4

Browse files
test: add build script for netlify
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
1 parent d439be1 commit 6f48ff4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The package exposes 5 `Intl` components, viz.,
4242
| [VIntlDateTimeFormat](https://v-intl.netlify.app/guide/format/date-time.html) | _Formats the Date & Time._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) |
4343
| [VIntlRelativeTimeFormat](https://v-intl.netlify.app/guide/format/relative-time.html) | _Create a relative time formatter in specified locale._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat) |
4444
| [VIntlDisplayNames](https://v-intl.netlify.app/guide/format/display-names.html) | _Translates region, language, currency, script._ | [Read More](https://v8.dev/features/intl-displaynames#full-api) |
45+
| [VIntlDurationFormat](https://v-intl.netlify.app/guide/format/duration.html) | _Enables language-sensitive duration formatting._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat) |
4546

4647
They're are tree-shakable, meaning, you don't need to bulk up your bundle by including all the components.
4748
I've tried to keep the API as consistent as possible.

netlify.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[dev]
2-
command = "npm run docs:dev"
2+
command = "bun run docs:dev"
33

44
[build]
5-
command = "npm run docs:build"
6-
publish = "docs/.vitepress/dist"
5+
command = "./scripts/build.sh"
6+
publish = "docs/.vitepress/dist"

scripts/build.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
curl -fsSL https://bun.sh/install | bash
4+
export PATH="/opt/buildhome/.bun/bin:$PATH"
5+
bun --version
6+
bun install
7+
bun --bun run docs:build

0 commit comments

Comments
 (0)