From 7806483285711fb5e5da258a29d6566b3421470e Mon Sep 17 00:00:00 2001 From: Ping Chen Date: Mon, 2 Mar 2020 17:08:01 +0900 Subject: [PATCH] Update .circleci/config.yml to use parcel and spago --- .circleci/config.yml | 15 +++++++-------- example/README.md | 3 +-- example/package.json | 3 --- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index afd7ea4..bb645d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,4 @@ -version: 2 +version: 2.1 jobs: build: docker: @@ -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: | @@ -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: diff --git a/example/README.md b/example/README.md index 11c7852..039bc60 100644 --- a/example/README.md +++ b/example/README.md @@ -1,7 +1,6 @@ ## Development ``` -yarn -pulp -w build -I ../src +spago build -w yarn start ``` diff --git a/example/package.json b/example/package.json index 03706e8..795399d 100644 --- a/example/package.json +++ b/example/package.json @@ -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" } }