From 1b99220d6be4dad1403378bc52171a9f8580bf88 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 15:49:34 -0700 Subject: [PATCH 01/12] Update for contributors library requirements --- .editorconfig | 13 ++++++ .github/ISSUE_TEMPLATE/bug-report.md | 19 ++++++++ .github/ISSUE_TEMPLATE/change-request.md | 21 +++++++++ .github/ISSUE_TEMPLATE/config.yml | 8 ++++ .github/PULL_REQUEST_TEMPLATE.md | 11 +++++ .github/contributing.md | 51 --------------------- .github/issue_template.md | 22 --------- .github/pull_request_template.md | 15 ------ .github/workflows/ci.yml | 34 ++++++++++++++ .gitignore | 21 ++------- .travis.yml | 23 ---------- CHANGELOG.md | 58 ++++++++++++++++++++++++ CONTRIBUTING.md | 5 ++ README.md | 42 ++++++++++++----- package.json | 15 ------ packages.dhall | 4 ++ spago.dhall | 16 +++++++ 17 files changed, 225 insertions(+), 153 deletions(-) create mode 100644 .editorconfig create mode 100644 .github/ISSUE_TEMPLATE/bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/change-request.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/contributing.md delete mode 100644 .github/issue_template.md delete mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml create mode 100644 CHANGELOG.md create mode 100644 CONTRIBUTING.md delete mode 100644 package.json create mode 100644 packages.dhall create mode 100644 spago.dhall diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7c68b07 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# https://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..b79b995 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,19 @@ +--- +name: Bug report +about: Report an issue +title: "" +labels: bug +assignees: "" +--- + +**Describe the bug** +A clear and concise description of the bug. + +**To Reproduce** +A minimal code example (preferably a runnable example on [Try PureScript](https://try.purescript.org)!) or steps to reproduce the issue. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/change-request.md b/.github/ISSUE_TEMPLATE/change-request.md new file mode 100644 index 0000000..a2ee685 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/change-request.md @@ -0,0 +1,21 @@ +--- +name: Change request +about: Propose an improvement to this library +title: "" +labels: "" +assignees: "" +--- + +**Is your change request related to a problem? Please describe.** +A clear and concise description of the problem. + +Examples: + +- It's frustrating to have to [...] +- I was looking for a function to [...] + +**Describe the solution you'd like** +A clear and concise description of what a good solution to you looks like, including any solutions you've already considered. + +**Additional context** +Add any other context about the change request here. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..c47a263 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: PureScript Discourse + url: https://discourse.purescript.org/ + about: Ask and answer questions here. + - name: Functional Programming Slack + url: https://functionalprogramming.slack.com + about: For casual chat and questions (use https://fpchat-invite.herokuapp.com to join). diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..d8780f7 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,11 @@ +**Description of the change** +Clearly and concisely describe the purpose of the pull request. If this PR relates to an existing issue or change proposal, please link to it. Include any other background context that would help reviewers understand the motivation for this PR. + +--- + +**Checklist:** + +- [ ] Added the change to the changelog's "Unreleased" section with a link to this PR and your username +- [ ] Linked any existing issues or proposals that this pull request should close +- [ ] Updated or added relevant documentation in the README and/or documentation directory +- [ ] Added a test for the contribution (if applicable) diff --git a/.github/contributing.md b/.github/contributing.md deleted file mode 100644 index 83db5bd..0000000 --- a/.github/contributing.md +++ /dev/null @@ -1,51 +0,0 @@ -# Contribution - -Thank you for contributing to `purescript-js-date`! - -Following these guidelines helps ensure we're able to carefully consider your contribution and help you finalize your pull request. Your time (like ours) is valuable, and we try to at least provide constructive feedback on every contribution. - -### Contributions we love -`purescript-js-date` is an open-source library and we love to receive contributions. There are many ways you can contribute: - -* Help expand our test coverage -* Help fix open issues, even if that simply means adding a helpful comment -* Help push along open pull requests that need more work to be complete -* Improve or add new usage examples to better demonstrate how to use the library in real-world scenarios -* Update documentation and tutorials to be easier to understand, more comprehensive, and above all -- up to date! - -### Contributions we should discuss -Some contributions will take some discussion before we accept an update to the project. If your contribution includes one of the below examples (or seems to be reasonably similar), please consider reaching out to us before putting in a lot of work to build the feature. We're active on the [PureScript user forum](https://discourse.purescript.org) and the [functional programming Slack](https://functionalprogramming.slack.com/) community (new? [use this link to join](https://fpchat-invite.herokuapp.com/)!). For feature requests, feel free to open an issue with a tag. - -* New features and functions that will change the library's public API -* New tutorials (while we love seeing new tutorials, we won't always be able to feature them in the readme) - -# Ground Rules - -We have a small set of quality-of-life guidelines for contributing to `purescript-js-date`. These include: - -* All pull requests must pass continuous integration. -* If you are adding new functionality, you should provide tests and documentation for your code. If you're fixing an existing bug, please provide a failing test case your patch solves. -* If possible, please avoid requiring new dependencies. - -### Filing issues -If you have a general question about the project, it's best to ask on the [PureScript user forum](https://discourse.purescript.org) or the [functional programming Slack](https://functionalprogramming.slack.com/) than to open a new issue. If you have run into a bug in the project, then please do open an issue! When you do, we ask that you follow a few steps which are outlined in our issues template. The gist of it is here: - -* Verify the problem is indeed with `purescript-js-date` (not with Pulp, Bower, or PureScript); -* Record what versions you are using for PureScript and `purescript-js-date` -* Describe the issue with steps to reproduce (as much as you are able). A minimal reproducible example is the absolute best case scenario. - -We promise to address the issue as soon as we can. - -### Suggesting features or enhancements -We love to hear about ways we could make better. If you're wishing for a feature that doesn't exist in `purescript-js-date`, you're probably not alone; there are bound to be others with similar needs. Please feel free to open an issue on GitHub that describes: - -* the feature you would like to see -* why you need it -* how it should work - -We promise to review your issue, but we aren't always able to accommodate all requests. It helps if you're able to contribute to the implementation, too! - -### Code reviews -The core team looks at pull requests weekly, at which point we will review your code, ensure it meets our ground rules and fits with the philosophy of the project, and -- if necessary -- provide constructive feedback. As soon as at least one member of the team has signed off on your pull request, we will merge your contribution. - -If you opened a pull request and we need to ask a few questions, we expect responses within a month. After that we may close the pull request if it isn't showing any activity to keep things manageable. diff --git a/.github/issue_template.md b/.github/issue_template.md deleted file mode 100644 index 5a84cb7..0000000 --- a/.github/issue_template.md +++ /dev/null @@ -1,22 +0,0 @@ -## Pre-check - -* For help and support, try the [PureScript user forum](https://discourse.purescript.org) or the [functional programming Slack](https://functionalprogramming.slack.com) before opening an issue in the repository. -* For bug reports, do a quick search to ensure the bug has not yet been reported. -* For new feature requests, please remember to describe the feature you would like to see, why you need it, and how it might be implemented. -* Finally -- be nice and have fun! - ---- - -## Environment - -* PureScript **[version]** -* Pulp **[version]** -* `purescript-js-date` **[version]** - -## Current behavior - -Please include code samples, errors, steps to reproduce, and compiler output if appropriate. - -If possible, provide a sample minimal app or test case that reproduces the error. For visual bugs that are difficult to demonstrate in text, consider including a .gif using an app like [Recordit](http://www.recordit.co/). - -## Expected behavior diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 7c16360..0000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,15 +0,0 @@ -## What does this pull request do? - -Please describe the purpose of the pull request, including any background context and links to related issues. If this introduces a large change to the project, please describe what you have implemented. - -## Where should the reviewer start? - -Help save the reviewer time by highlighting the most important sections of code. - -## How should this be manually tested? - -If this is a new feature, you should provide new test coverage. If it fixes an existing bug, you should provide a failing test case this change fixes. Other than automated testing, what manual tests can the reviewer perform to verify your work? - -## Other Notes: - -Does the project documentation need to be updated? Should we introduce a new example, or update any existing examples? Does this PR require any other follow-up tasks? diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6b0550f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up a PureScript toolchain + uses: purescript-contrib/setup-purescript@main + + - name: Cache PureScript dependencies + uses: actions/cache@v2 + with: + key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} + path: | + .spago + output + + - name: Install dependencies + run: spago install + + - name: Build source + run: spago build --no-install --purs-args '--censor-lib --strict' + + - name: Run tests + run: spago test --no-install diff --git a/.gitignore b/.gitignore index 52587f6..7bca306 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,8 @@ -/.* -!/.gitignore -!/.github -!/.travis.yml +.* +!.gitignore +!.github +!.editorconfig -# Dependencies -bower_components -node_modules - -# Generated files output generated-docs - -# Lockfiles -package-lock.json -*.lock - -# Extra files -!/.eslintrc.json +bower_components diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 38d4651..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: node_js -dist: trusty -sudo: required -node_js: stable -env: - - PATH=$HOME/purescript:$PATH -install: - - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest)) - - curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz - - tar -xvf $HOME/purescript.tar.gz -C $HOME/ - - chmod a+x $HOME/purescript - - npm install -g bower - - npm install - - bower install --production -script: - - npm run -s build - - bower install - - npm test -after_success: - - >- - test $TRAVIS_TAG && - echo $GITHUB_TOKEN | pulp login && - echo y | pulp publish --no-push diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6e82195 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,58 @@ +# Changelog + +Notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +Breaking changes (😱!!!): + +New features: + +Bugfixes: + +Other improvements: + +## [v6.0.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v6.0.0) - 2018-05-25 + +- Updated for PureScript 0.12 + +## [v5.2.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v5.2.0) - 2018-03-20 + +- Added instances for `Eq`, `Ord`, `Show` (@eric-corumdigital) + +## [v5.1.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v5.1.0) - 2017-07-16 + +- Added `JSDate`-specific version of `now` +- Added `fromInstant` + +## [v5.0.1](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v5.0.1) - 2017-06-23 + +- Fixed date construction for years 0 <= y < 100 (@berdario) + +## [v5.0.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v5.0.0) - 2017-05-16 + +- Updated `toISOString`'s effect label from `err` to `exception` + +## [v4.0.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v4.0.0) - 2017-04-04 + +- Updated for PureScript 0.11 + +## [v3.0.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v3.0.0) - 2016-10-17 + +- Updated dependencies + +## [v2.0.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v2.0.0) - 2016-07-29 + +- Fixed the label for the `EXCEPTION` effect to `err` so it can be handled with the canonical error handling functions + +## [v1.2.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v1.2.0) - 2016-07-22 + +- Added `parse` function corresponding to invoking the `Date` constructor with a string. + +## [v1.1.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v1.1.0) - 2016-07-13 + +- Added `IsForeign` instance for `JSDate` + +## [v1.0.0](https://github.com/purescript-contrib/purescript-js-date/releases/tag/v1.0.0) - 2016-06-09 + +Initial release. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..0f4d19f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,5 @@ +# Contributing to JS Date + +Thanks for your interest in contributing to `js-date`! We welcome new contributions regardless of your level of experience or familiarity with PureScript. + +Every library in the Contributors organization shares a simple handbook that helps new contributors get started. With that in mind, please [read the short contributing guide on purescript-contrib/governance](https://github.com/purescript-contrib/governance/blob/main/contributing.md) before contributing to this library. diff --git a/README.md b/README.md index d2b24e3..222e3ad 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,45 @@ -# purescript-js-date +# JS Date -[![Latest release](http://img.shields.io/github/release/purescript-contrib/purescript-js-date.svg)](https://github.com/purescript-contrib/purescript-js-date/releases) -[![Build status](https://travis-ci.org/purescript-contrib/purescript-js-date.svg?branch=master)](https://travis-ci.org/purescript-contrib/purescript-js-date) -[![Pursuit](http://pursuit.purescript.org/packages/purescript-js-date/badge)](http://pursuit.purescript.org/packages/purescript-js-date/) -[![Maintainer: garyb](https://img.shields.io/badge/maintainer-garyb-lightgrey.svg)](http://github.com/garyb) -[![Maintainer: thomashoneyman](https://img.shields.io/badge/maintainer-thomashoneyman-lightgrey.svg)](http://github.com/thomashoneyman) +[![CI](https://github.com/purescript-contrib/purescript-js-date/workflows/CI/badge.svg?branch=main)](https://github.com/purescript-contrib/purescript-js-date/actions?query=workflow%3ACI+branch%3Amain) +[![Release](https://img.shields.io/github/release/purescript-contrib/purescript-js-date.svg)](https://github.com/purescript-contrib/purescript-js-date/releases) +[![Pursuit](https://pursuit.purescript.org/packages/purescript-js-date/badge)](https://pursuit.purescript.org/packages/purescript-js-date) +[![Maintainer: garyb](https://img.shields.io/badge/maintainer-garyb-teal.svg)](https://github.com/garyb) +[![Maintainer: thomashoneyman](https://img.shields.io/badge/maintainer-thomashoneyman-teal.svg)](https://github.com/thomashoneyman) JavaScript's native date type and corresponding functions. +This library provides the `JSDate` type and associated functions for interop purposes with JavaScript, but for working with dates in PureScript it is recommended that `DateTime` representation is used - `DateTime` offers greater type safety, a more PureScript-friendly interface, and has a `Generic` instance. There is a `toDateTime` provided for this conversion. + ## Installation +Install `js-date` with [Spago](https://github.com/purescript/spago): + +```sh +spago install js-date ``` -bower install purescript-js-date -``` + +## Quick start + +The quick start hasn't been written yet (contributions are welcome!). The quick start covers a common, minimal use case for the library, whereas longer examples and tutorials are kept in the [docs directory](./docs). ## Documentation -This library provides the `JSDate` type and associated functions for interop purposes with JavaScript, but for working with dates in PureScript it is recommended that `DateTime` representation is used - `DateTime` offers greater type safety, a more PureScript-friendly interface, and has a `Generic` instance. There is a `toDateTime` provided for this conversion. +`js-date` documentation is stored in a few places: + +1. Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-js-date). +2. Usage examples can be found in [the test suite](./test). + +If you get stuck, there are several ways to get help: -Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-js-date). +- [Open an issue](https://github.com/purescript-contrib/purescript-js-date/issues) if you have encountered a bug or problem. +- [Search or start a thread on the PureScript Discourse](https://discourse.purescript.org) if you have general questions. You can also ask questions in the `#purescript` and `#purescript-beginners` channels on the [Functional Programming Slack](https://functionalprogramming.slack.com) ([invite link](https://fpchat-invite.herokuapp.com/)). ## Contributing -Read the [contribution guidelines](https://github.com/purescript-contrib/purescript-js-date/blob/master/.github/contributing.md) to get started and see helpful related resources. +You can contribute to `js-date` in several ways: + +1. If you encounter a problem or have a question, please [open an issue](https://github.com/purescript-contrib/purescript-js-date/issues). We'll do our best to work with you to resolve or answer it. + +2. If you would like to contribute code, tests, or documentation, please [read the contributor guide](./CONTRIBUTING.md). It's a short, helpful introduction to contributing to this library, including development instructions. + +3. If you have written a library, tutorial, guide, or other resource based on this package, please share it on the [PureScript Discourse](https://discourse.purescript.org)! Writing libraries and learning resources are a great way to help this library succeed. diff --git a/package.json b/package.json deleted file mode 100644 index e8321db..0000000 --- a/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "private": true, - "scripts": { - "postinstall": "bower install", - "clean": "rimraf output && rimraf .pulp-cache", - "build": "eslint src && pulp build -- --censor-lib --strict", - "test": "pulp test" - }, - "devDependencies": { - "eslint": "^6.8.0", - "pulp": "^14.0.0", - "purescript-psa": "^0.7.3", - "rimraf": "^3.0.2" - } -} diff --git a/packages.dhall b/packages.dhall new file mode 100644 index 0000000..b5baf39 --- /dev/null +++ b/packages.dhall @@ -0,0 +1,4 @@ +let upstream = + https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200922/packages.dhall sha256:5edc9af74593eab8834d7e324e5868a3d258bbab75c5531d2eb770d4324a2900 + +in upstream diff --git a/spago.dhall b/spago.dhall new file mode 100644 index 0000000..784ff81 --- /dev/null +++ b/spago.dhall @@ -0,0 +1,16 @@ +{ name = "js-date" +, dependencies = + [ "assert" + , "console" + , "datetime" + , "effect" + , "exceptions" + , "foreign" + , "globals" + , "integers" + , "now" + , "psci-support" + ] +, packages = ./packages.dhall +, sources = [ "src/**/*.purs", "test/**/*.purs" ] +} From 216aedd904cce6182f99b844c448c67d4e49239c Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 15:53:07 -0700 Subject: [PATCH 02/12] Add js components --- .eslintrc.json | 47 ++++++++++++++++++++-------------------- .github/workflows/ci.yml | 29 ++++++++++++++++++++----- .gitignore | 5 +++++ package.json | 10 +++++++++ 4 files changed, 62 insertions(+), 29 deletions(-) create mode 100644 package.json diff --git a/.eslintrc.json b/.eslintrc.json index 39963d3..17f167d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,28 +1,29 @@ { - "parserOptions": { - "ecmaVersion": 5 - }, + "env": { "browser": true, "commonjs": true }, "extends": "eslint:recommended", - "env": { - "commonjs": true - }, + "parserOptions": { "ecmaVersion": 5 }, "rules": { - "strict": [2, "global"], - "block-scoped-var": 2, - "consistent-return": 2, - "eqeqeq": [2, "smart"], - "guard-for-in": 2, - "no-caller": 2, - "no-extend-native": 2, - "no-loop-func": 2, - "no-new": 2, - "no-param-reassign": 2, - "no-return-assign": 2, - "no-unused-expressions": 2, - "no-use-before-define": 2, - "radix": [2, "always"], - "indent": [2, 2, { "SwitchCase": 1 }], - "quotes": [2, "double"], - "semi": [2, "always"] + "block-scoped-var": "error", + "consistent-return": "error", + "eqeqeq": "error", + "guard-for-in": "error", + "no-bitwise": "error", + "no-caller": "error", + "no-extra-parens": "off", + "no-extend-native": "error", + "no-loop-func": "error", + "no-new": "error", + "no-param-reassign": "error", + "no-return-assign": "error", + "no-sequences": "error", + "no-unused-expressions": "error", + "no-use-before-define": "error", + "no-undef": "error", + "no-eq-null": "error", + "radix": ["error", "always"], + "indent": ["error", 2, { "SwitchCase": 1 }], + "quotes": ["error", "double"], + "semi": ["error", "always"], + "strict": ["error", "global"] } } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b0550f..0b3ca67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up a PureScript toolchain + - name: Set up PureScript toolchain uses: purescript-contrib/setup-purescript@main - name: Cache PureScript dependencies @@ -24,11 +24,28 @@ jobs: .spago output - - name: Install dependencies - run: spago install + - name: Set up Node toolchain + uses: actions/setup-node@v1 + with: + node-version: "12.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 source - run: spago build --no-install --purs-args '--censor-lib --strict' + - name: Build the project + run: npm run build - name: Run tests - run: spago test --no-install + run: npm run test diff --git a/.gitignore b/.gitignore index 7bca306..5a54e2f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,12 @@ !.gitignore !.github !.editorconfig +!.eslintrc.json output generated-docs bower_components + +node_modules +package-lock.json +*.lock diff --git a/package.json b/package.json new file mode 100644 index 0000000..ad3ecca --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "private": true, + "scripts": { + "build": "eslint src && spago build --purs-args '--censor-lib --strict'", + "test": "spago test --no-install" + }, + "devDependencies": { + "eslint": "^7.6.0" + } +} From 90ee425f3269c36e997712ca2e1e38841af5b619 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:01:39 -0700 Subject: [PATCH 03/12] Update ci --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b3ca67..70c9c03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,3 +49,4 @@ jobs: - name: Run tests run: npm run test + From 1fbb93bd97d34f25b7c7281a52f5fb801814e8d4 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:03:19 -0700 Subject: [PATCH 04/12] Update ci.yml --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70c9c03..d3a74d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@main + uses: purescript-contrib/setup-purescript@v1.1.0 - name: Cache PureScript dependencies uses: actions/cache@v2 @@ -49,4 +49,3 @@ jobs: - name: Run tests run: npm run test - From 7d3f4eb8f051dc1abd767026d8eba515ff481092 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:04:08 -0700 Subject: [PATCH 05/12] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3a74d4..d3a32c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@v1.1.0 + uses: purescript-contrib/setup-purescript@v1 - name: Cache PureScript dependencies uses: actions/cache@v2 From 9ab571532d46eabc9a0ca34c0b864e4986eae6c7 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:06:55 -0700 Subject: [PATCH 06/12] Update CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3a32c1..0b3ca67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@v1 + uses: purescript-contrib/setup-purescript@main - name: Cache PureScript dependencies uses: actions/cache@v2 From d5162d4e354dbe426c628934c3ae4bc36c6c02cf Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:08:33 -0700 Subject: [PATCH 07/12] Update CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b3ca67..a3d042b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@main + uses: purescript-contrib/setup-purescript@v1.1 - name: Cache PureScript dependencies uses: actions/cache@v2 From 6f2c4f7f082580b8f652bdc506e9b7118033cee3 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:10:25 -0700 Subject: [PATCH 08/12] Pin psa version --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3d042b..9f08e06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,9 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@v1.1 + uses: purescript-contrib/setup-purescript@main + with: + psa: "0.7.3" - name: Cache PureScript dependencies uses: actions/cache@v2 From 491a11bac14b3f9a2225d2198573f4e2d593d5a6 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:11:14 -0700 Subject: [PATCH 09/12] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f08e06..e8da8c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: - name: Set up PureScript toolchain uses: purescript-contrib/setup-purescript@main - with: - psa: "0.7.3" + with: + psa: "0.7.3" - name: Cache PureScript dependencies uses: actions/cache@v2 From ecdbbe8838fcbf5e9816d89bed76d265e487dc7f Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 16:25:11 -0700 Subject: [PATCH 10/12] Update ci.yml --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8da8c3..1e08e01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,9 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@main - with: - psa: "0.7.3" + uses: purescript-contrib/setup-purescript@debug - name: Cache PureScript dependencies uses: actions/cache@v2 From 39d98081c90d4b39bbbc78a41fbbcc673981849d Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 17:16:19 -0700 Subject: [PATCH 11/12] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e08e01..27f5845 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@debug + uses: purescript-contrib/setup-purescript@build-plan - name: Cache PureScript dependencies uses: actions/cache@v2 From 3775059e5846606e3820b956da443efbf664d584 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Sat, 3 Oct 2020 17:18:50 -0700 Subject: [PATCH 12/12] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27f5845..0b3ca67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up PureScript toolchain - uses: purescript-contrib/setup-purescript@build-plan + uses: purescript-contrib/setup-purescript@main - name: Cache PureScript dependencies uses: actions/cache@v2