Skip to content

Commit

Permalink
move to yarn. it's just easier to type yarn command than `npn run c…
Browse files Browse the repository at this point in the history
…ommand`. and more readable in gitpod.yml and package.json
  • Loading branch information
mcgrealife committed Mar 7, 2023
1 parent 849ef4d commit 73d8df8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package-lock.json
dist
node_modules
dbschema/edgeql-js
6 changes: 3 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

tasks:
# read "caveats". installs to /home/gitpod/.local/bin which is outside the /workspace/ and thus lost between workspace builds. recommend using before task or custom docker. trying before first.
- name: install npm packages, install-edgedb-cli, initialize project, overwrite example schema, run migrations, open files
- name: install packages, install-edgedb-cli, initialize project, overwrite example schema, run migrations, open files
before: |
npm install
yarn
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- -y -v
edgedb project init --server-instance=edgedb --non-interactive
init: |
edgedb project init --non-interactive
mv default.esdl dbschema
command: |
edgedb migration create --non-interactive && edgedb migration apply && npm run generate
edgedb migration create --non-interactive && edgedb migration apply && yarn generate
gp open welcome.md
# - name: reinstall CLI on restart; reinitialize project with link flag
# command: curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- -y -v ; edgedb project init --server-instance=edgedb --non-interactive
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"type": "module",
"scripts": {
"build": "tsc",
"start": "npm run build && node dist/src",
"migrate": "edgedb migration create && edgedb migration apply && npm run generate",
"generate": "npx @edgedb/generate edgeql-js && npx @edgedb/generate interfaces && npx @edgedb/generate queries --file",
"start": "yarn build && node dist/src",
"migrate": "edgedb migration create && edgedb migration apply && yarn generate",
"generate": "yarn @edgedb/generate edgeql-js && yarn @edgedb/generate interfaces && yarn @edgedb/generate queries --file",
"ui": "edgedb ui --print-url"
},
"dependencies": {
Expand Down

0 comments on commit 73d8df8

Please sign in to comment.