summaryrefslogtreecommitdiff
path: root/scripts/index.js
diff options
context:
space:
mode:
authorGravatar aFuzzyBear <drgaud@hotmail.com> 2021-08-10 01:24:25 +0100
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:21:39 -0700
commitd321d8366b597e46ff8e3fc63d17622a9297505c (patch)
tree339775403be469fdc9c53c4f9484c8ba7c23811a /scripts/index.js
parente686c3c50469d18db93da7ce79ddcac8659c3166 (diff)
downloadastro-d321d8366b597e46ff8e3fc63d17622a9297505c.tar.gz
astro-d321d8366b597e46ff8e3fc63d17622a9297505c.tar.zst
astro-d321d8366b597e46ff8e3fc63d17622a9297505c.zip
Adds examples page
Diffstat (limited to 'scripts/index.js')
-rw-r--r--[-rwxr-xr-x]scripts/index.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/scripts/index.js b/scripts/index.js
index 7908b112c..0b6577966 100755..100644
--- a/scripts/index.js
+++ b/scripts/index.js
@@ -1,19 +1,19 @@
-#!/usr/bin/env node
-export default async function run() {
- const [cmd, ...args] = process.argv.slice(2);
- switch (cmd) {
- case 'dev':
- case 'build': {
- const { default: build } = await import('./cmd/build.js');
- await build(...args, cmd === 'dev' ? 'IS_DEV' : undefined);
- break;
- }
- case 'copy': {
- const { default: copy } = await import('./cmd/copy.js');
- await copy(...args);
- break;
- }
- }
-}
-
-run();
+#!/usr/bin/env node
+export default async function run() {
+ const [cmd, ...args] = process.argv.slice(2);
+ switch (cmd) {
+ case 'dev':
+ case 'build': {
+ const { default: build } = await import('./cmd/build.js');
+ await build(...args, cmd === 'dev' ? 'IS_DEV' : undefined);
+ break;
+ }
+ case 'copy': {
+ const { default: copy } = await import('./cmd/copy.js');
+ await copy(...args);
+ break;
+ }
+ }
+}
+
+run();