Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to spago@next #52

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 12 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,36 @@ name: CI

on:
push:
branches: [main]
branches: [master, main]
pull_request:
branches: [main]
branches: [master, main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up PureScript toolchain
- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"
purescript: "latest"
purs-tidy: "latest"
spago: "unstable"

- name: Cache PureScript dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
path: |
.spago
output

- name: Set up Node toolchain
uses: actions/setup-node@v2
with:
node-version: "14.x"

- name: Cache NPM dependencies
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Install NPM dependencies
run: npm install

- name: Build the project
run: npm run build
- name: Build source
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages

- name: Run tests
run: npm run test
run: spago test --offline --censor-stats --strict --pedantic-packages

- name: Check formatting
- name: Verify formatting
run: purs-tidy check src test

- name: Verify Bower & Pulp
run: |
npm install bower [email protected]
npx bower install
npx pulp build -- --censor-lib --strict
if [ -d "test" ]; then
npx pulp test
fi
35 changes: 0 additions & 35 deletions bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```
```sh
spago bundle-app -m Example.Main -t example/example.js
npm i -g parcel
parcel serve example/index.html --open
Expand Down
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
{
"private": true,
"license": "MIT",
"authors": [
"John A. De Goes <[email protected]> (http://degoes.net)",
"Maxim Zimaliev <[email protected]>"
],
"repository": {
"type": "git",
"url": "https://github.com/purescript-contrib/purescript-ace.git"
},
"name": "purescript-ace",
"scripts": {
"build": "eslint src && spago build --purs-args '--censor-lib --strict'",
"test": "spago test --no-install"
"build": "eslint src && spago build --censor-stats --strict --ensure-ranges --pedantic-packages",
"test": "spago test --offline"
},
"devDependencies": {
"eslint": "^7.15.0"
"eslint": "^9.12.0"
},
"dependencies": {
"ace-builds": "^1.4.12"
"ace-builds": "^1.36.2"
}
}
4 changes: 0 additions & 4 deletions packages.dhall

This file was deleted.

22 changes: 0 additions & 22 deletions spago.dhall

This file was deleted.

28 changes: 28 additions & 0 deletions spago.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package:
name: ace
publish:
license: MIT
version: 10.0.0
location:
githubOwner: purescript-contrib
githubRepo: purescript-ace
dependencies:
- arrays: ">=7.3.0 <8.0.0"
- effect: ">=4.0.0 <5.0.0"
- either: ">=6.1.0 <7.0.0"
- foldable-traversable: ">=6.0.0 <7.0.0"
- foreign: ">=7.0.0 <8.0.0"
- functions: ">=6.0.0 <7.0.0"
- maybe: ">=6.0.0 <7.0.0"
- nullable: ">=6.0.0 <7.0.0"
- partial: ">=4.0.0 <5.0.0"
- prelude: ">=6.0.1 <7.0.0"
- st: ">=6.2.0 <7.0.0"
- transformers: ">=6.1.0 <7.0.0"
- web-html: ">=4.1.0 <5.0.0"
- web-uievents: ">=5.0.0 <6.0.0"
test:
main: Test.Main
dependencies:
- console
workspace: {}
File renamed without changes.