Skip to content

Commit

Permalink
Update dev init order
Browse files Browse the repository at this point in the history
  • Loading branch information
underscope committed Oct 22, 2024
1 parent 50396d3 commit 72bcf02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import fkill from 'fkill'
import { portToPid } from 'pid-port'

const log = msg => console.log(`\n${msg}\n`)
const timeout = (ms) => new Promise((resolve) => setTimeout(resolve, ms))

Check failure on line 10 in scripts/dev.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected parentheses around single function argument having a body with no curly braces

Check failure on line 10 in scripts/dev.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected parentheses around single function argument having a body with no curly braces

const configLocation = path.join(process.cwd(), '.env')
const config = await fs.readFile(configLocation, 'utf-8')
Expand All @@ -22,12 +23,15 @@ for (const port of [env.EXAMPLE_API_PORT]) {
catch {}
}

log('🐳 Seed the localstack S3...')
await execaCommand('pnpm seed')
log('🖥️ Initializing localstack...')
await timeout(3000);

Check failure on line 27 in scripts/dev.js

View workflow job for this annotation

GitHub Actions / lint

Extra semicolon

log('🔧 Build Garment...')
await execaCommand('pnpm build')

log('🐳 Seed the localstack S3...')
await execaCommand('pnpm seed')

const libCommand = {
name: 'lib',
prefixColor: 'blue',
Expand Down

0 comments on commit 72bcf02

Please sign in to comment.