From d321d8366b597e46ff8e3fc63d17622a9297505c Mon Sep 17 00:00:00 2001 From: aFuzzyBear Date: Tue, 10 Aug 2021 01:24:25 +0100 Subject: Adds examples page --- scripts/index.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) mode change 100755 => 100644 scripts/index.js (limited to 'scripts/index.js') diff --git a/scripts/index.js b/scripts/index.js old mode 100755 new mode 100644 index 7908b112c..0b6577966 --- 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(); -- cgit v1.2.3