Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
nedseb committed May 30, 2024
1 parent f696d44 commit 83eba66
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3232, 3233],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "scripts/setup.sh",
"postCreateCommand": "npm run setup",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
submodules: "recursive"
- run: scripts/setup.sh
- run: npm run setup
- run: cd pxt-lets-steam;pxt ci
env:
PXT_NODOCKER: 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildtarget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
submodules: "recursive"
- run: scripts/setup.sh
- run: npm run setup
- run: cd pxt-lets-steam;pxt ci
env:
PXT_NODOCKER: 1
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ This editor is meant for STM32 micro-controllers that are friendly to breadboard

Edit this project directly from your browser using GitHub Codespaces. If you have access to them,

* open project in a new codespace
* launch the server
- open project in a new codespace
- launch the server

```
yarn serve
```

* click on the generated URL in the terminal output and voila!
- click on the generated URL in the terminal output and voila!

## Local Dev Server

Expand Down Expand Up @@ -46,13 +46,13 @@ npm install -g pxt

```sh
cd makecode-lets-steam
scripts/setup.sh
npm run setup
```

- Run the local server :

```sh
scripts/serve.sh
npm run serve
```

### CODAL changes
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"author": "letssteam",
"license": "MIT",
"scripts": {
"setup": "scripts/setup.sh",
"serve": "scripts/serve.sh",
"build": "yarn setup && scripts/build.sh",
"staticpackage": "scripts/package.sh",
"staticserve": "http-server -c-1 pxt-lets-steam/built/packaged",
"clean": "scripts/clean.sh"
"build": "make build",
"clean": "make clean",
"serve": "make serve",
"setup": "make setup",
"staticpackage": "make package",
"staticserve": "make staticserve"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 83eba66

Please sign in to comment.