Skip to content

Commit f1c67f6

Browse files
committed
scripts: adding 'npm start' to run foi-toy web tool locally
1 parent 1da249e commit f1c67f6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build-foi-toy-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: install deps and build foi-toy web
3737
run: |
3838
npm install
39-
npm run build-foi-toy-web
39+
npm run build:foi-toy-web
4040
- name: Setup Pages
4141
uses: actions/configure-pages@v2
4242
- name: Upload artifact

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "foi-lang",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"description": "Foi: a different kind of functional programming language",
55
"repository": "getify/foi-lang",
66
"scripts": {
7-
"build-foi-toy-web": "foi-toy/scripts/build-web",
8-
"build": "npm run build-foi-toy-web"
7+
"build:foi-toy-web": "foi-toy/scripts/build-web",
8+
"build": "npm run build:foi-toy-web",
9+
"start:foi-toy-web": "npx http-server foi-toy/web -p 8080",
10+
"start": "npm run start:foi-toy-web"
911
},
1012
"devDependencies": {
1113
"minimist": "~1.2.7",

0 commit comments

Comments
 (0)