Skip to content

Commit

Permalink
Update .circleci/config.yml to use parcel and spago
Browse files Browse the repository at this point in the history
  • Loading branch information
rnons committed Mar 2, 2020
1 parent aa9ae91 commit 7806483
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
15 changes: 7 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2
version: 2.1
jobs:
build:
docker:
Expand All @@ -9,23 +9,23 @@ jobs:

- restore_cache:
keys:
- deps-{{ checksum "bower.json" }}-{{ checksum "example/bower.json" }}
- deps-{{ checksum "example/packages.dhall" }}-{{ checksum "example/package.json" }}

- run:
working_directory: example
command: |
git checkout -b gh-pages
git reset --hard origin/master
yarn add --dev bower purescript pulp
yarn
yarn add --dev parcel purescript spago
yarn build
git checkout -- package.json
- save_cache:
paths:
- example/.spago
- example/node_modules
- example/bower_components
- output
key: deps-{{ checksum "bower.json" }}-{{ checksum "example/bower.json" }}
- example/output
key: deps-{{ checksum "example/packages.dhall" }}-{{ checksum "example/package.json" }}

- run:
command: |
Expand All @@ -37,7 +37,6 @@ jobs:
git push -q -f https://${GH_PAGES_TOKEN}@github.com/nonbili/purescript-nonbili-dom.git gh-pages
workflows:
version: 2
build-gh-pages:
jobs:
- build:
Expand Down
3 changes: 1 addition & 2 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## Development

```
yarn
pulp -w build -I ../src
spago build -w
yarn start
```
3 changes: 0 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
"build": "spago build -u '+RTS -N2 -RTS' && parcel build --public-url . -d ../docs index.html",
"pscid:build": "spago build",
"start": "parcel index.html"
},
"devDependencies": {
"parcel": "^1.12.3"
}
}

0 comments on commit 7806483

Please sign in to comment.