Skip to content

Commit

Permalink
setup zx script for codepsaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandotv authored Jun 8, 2022
1 parent 1ebdd45 commit fae5bda
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ RUN apt-get update \
# Clean up
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/

# always sign commits
RUN git config --global commit.gpgsign true

# Setting the ENTRYPOINT to docker-init.sh will configure non-root access
# to the Docker socket. The script will also execute CMD as needed.
ENTRYPOINT [ "/usr/local/share/docker-init.sh" ]
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"forwardPorts": [3000, 27017, 9000],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm i -g pnpm@6 && pnpm install",
"postCreateCommand": "npm i zx --location=global && ./.devcontainer/setup.mjs",

"shutdownAction": "stopCompose",

Expand Down
12 changes: 12 additions & 0 deletions .devcontainer/setup.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env zx

// info: https://github.com/google/zx

// install pnpm
await $`npm i pnpm@6 --location=global`

// install dependencies
await $`pnpm i`

// automatically sign commits
await $`git config --global commit.gpgsign true`
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
"ts-essentials": "^9.1.2",
"typescript": "^4.6.4",
"webpack": "^5.72.1",
"workbox-webpack-plugin": "^6.5.3"
"workbox-webpack-plugin": "^6.5.3",
"zx": "^6.2.4"
}
}
166 changes: 161 additions & 5 deletions pnpm-lock.yaml

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

1 comment on commit fae5bda

@vercel
Copy link

@vercel vercel bot commented on fae5bda Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-radio – ./

next-radio-git-master-ivandotv.vercel.app
next-radio-ivandotv.vercel.app
live-radio.vercel.app

Please sign in to comment.