Skip to content

Commit 3411dbc

Browse files
Update according to Contributors library guidelines (#58)
1 parent 94a4a5c commit 3411dbc

File tree

18 files changed

+340
-49
lines changed

18 files changed

+340
-49
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"env": { "browser": true, "commonjs": true },
3+
"extends": "eslint:recommended",
4+
"parserOptions": { "ecmaVersion": 5 },
5+
"rules": {
6+
"block-scoped-var": "error",
7+
"consistent-return": "error",
8+
"eqeqeq": "error",
9+
"guard-for-in": "error",
10+
"no-bitwise": "error",
11+
"no-caller": "error",
12+
"no-extra-parens": "off",
13+
"no-extend-native": "error",
14+
"no-loop-func": "error",
15+
"no-new": "error",
16+
"no-param-reassign": "error",
17+
"no-return-assign": "error",
18+
"no-sequences": "error",
19+
"no-unused-expressions": "error",
20+
"no-use-before-define": "error",
21+
"no-undef": "error",
22+
"no-eq-null": "error",
23+
"radix": ["error", "always"],
24+
"indent": ["error", 2, { "SwitchCase": 1 }],
25+
"quotes": ["error", "double"],
26+
"semi": ["error", "always"],
27+
"strict": ["error", "global"]
28+
}
29+
}

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Bug report
3+
about: Report an issue
4+
title: ""
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of the bug.
11+
12+
**To Reproduce**
13+
A minimal code example (preferably a runnable example on [Try PureScript](https://try.purescript.org)!) or steps to reproduce the issue.
14+
15+
**Expected behavior**
16+
A clear and concise description of what you expected to happen.
17+
18+
**Additional context**
19+
Add any other context about the problem here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Change request
3+
about: Propose an improvement to this library
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your change request related to a problem? Please describe.**
10+
A clear and concise description of the problem.
11+
12+
Examples:
13+
14+
- It's frustrating to have to [...]
15+
- I was looking for a function to [...]
16+
17+
**Describe the solution you'd like**
18+
A clear and concise description of what a good solution to you looks like, including any solutions you've already considered.
19+
20+
**Additional context**
21+
Add any other context about the change request here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: PureScript Discourse
4+
url: https://discourse.purescript.org/
5+
about: Ask and answer questions here.
6+
- name: Functional Programming Slack
7+
url: https://functionalprogramming.slack.com
8+
about: For casual chat and questions (use https://fpchat-invite.herokuapp.com to join).

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**Description of the change**
2+
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.
3+
4+
---
5+
6+
**Checklist:**
7+
8+
- [ ] Added the change to the changelog's "Unreleased" section with a link to this PR and your username
9+
- [ ] Linked any existing issues or proposals that this pull request should close
10+
- [ ] Updated or added relevant documentation in the README and/or documentation directory
11+
- [ ] Added a test for the contribution (if applicable)

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up PureScript toolchain
17+
uses: purescript-contrib/setup-purescript@main
18+
19+
- name: Cache PureScript dependencies
20+
uses: actions/cache@v2
21+
with:
22+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
23+
path: |
24+
.spago
25+
output
26+
27+
- name: Set up Node toolchain
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: "12.x"
31+
32+
- name: Cache NPM dependencies
33+
uses: actions/cache@v2
34+
env:
35+
cache-name: cache-node-modules
36+
with:
37+
path: ~/.npm
38+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-build-${{ env.cache-name }}-
41+
${{ runner.os }}-build-
42+
${{ runner.os }}-
43+
44+
- name: Install NPM dependencies
45+
run: npm install
46+
47+
- name: Build the project
48+
run: npm run build
49+
50+
- name: Run tests
51+
run: npm run test

.gitignore

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
/bower_components/
2-
/node_modules/
3-
/.pulp-cache/
4-
/output/
5-
/.psci*
6-
/src/.webpack.js
7-
.psc-ide-port
1+
.*
2+
!.gitignore
3+
!.github
4+
!.editorconfig
5+
!.eslintrc.json
6+
7+
output
8+
generated-docs
9+
bower_components
10+
11+
node_modules
812
package-lock.json
13+
*.lock

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# Changelog
2+
3+
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).
4+
5+
## [Unreleased]
6+
7+
Breaking changes (😱!!!):
8+
9+
New features:
10+
11+
Bugfixes:
12+
13+
Other improvements:
14+
15+
## [v4.0.1](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v4.0.1) - 2019-02-09
16+
17+
- Fixed issue where negative numbers with padding would be printed like `00-0.5` rather than `-000.5`
18+
- Fixed issue where negative years would print similarly and would not parse
19+
20+
## [v4.0.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v4.0.0) - 2018-06-26
21+
22+
- Update to [email protected] @thomashoneyman
23+
24+
## [v3.0.1](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v3.0.1) - 2017-12-07
25+
26+
Bug fixes:
27+
- Enable timestamp parsing @tippenein
28+
29+
Other changes:
30+
- Update README and tests @tippenein
31+
- Remove self import @paulyoung
32+
33+
## [v3.0.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v3.0.0) - 2017-09-11
34+
35+
- Added formats for week day (@tippenein)
36+
37+
## [v2.1.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v2.1.0) - 2017-08-08
38+
39+
- Added `Ord` instance for `FormatterCommand`
40+
41+
## [v2.0.2](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v2.0.2) - 2017-07-19
42+
43+
- fix for 24 and `{12,0}{am,pm}` cases #26
44+
45+
## [v2.0.1](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v2.0.1) - 2017-07-11
46+
47+
- fix YYYY formatting #23
48+
49+
## [v2.0.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v2.0.0) - 2017-06-27
50+
51+
- Added support for Intervals
52+
- Type of `DateTime.Formatter` has changed (BREAKING)
53+
- Type of `Number.Formatter` has changed (BREAKING)
54+
55+
## [v1.0.1](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v1.0.1) - 2017-05-13
56+
57+
- Fixed `Hours24` to pad to two digits when printing
58+
59+
## [v1.0.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v1.0.0) - 2017-04-21
60+
61+
- Updated for PureScript 0.11
62+
63+
## [v0.4.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v0.4.0) - 2017-04-15
64+
65+
- Added `MinutesTwoDigits`, `SecondsTwoDigits`, `MillisecondsShort`, and `MillisecondsTwoDigits` (@sectore)
66+
67+
## [v0.3.1](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v0.3.1) - 2017-03-23
68+
69+
- Fixed `DayOfMonthTwoDigits` to zero-pad as necessary when printing (@korayal)
70+
71+
## [v0.3.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v0.3.0) - 2017-03-22
72+
73+
- Added support for single-digit day-of-month parsing (@negator)
74+
75+
## [v0.2.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v0.2.0) - 2017-03-07
76+
77+
- Updated dependencies
78+
79+
## [v0.1.3](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v0.1.3) - 2017-03-01
80+
81+
- Fix `bower.json` for Pursuit publishing
82+
83+
## [v0.1.1](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v0.1.1) - 2017-02-24
84+
85+
- Fixed behaviour of two-digit year formatting (@dgendill)
86+
87+
## [v0.1.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v0.1.0) - 2016-11-03
88+
89+
- 0.10 updates
90+
91+
## [0.0.5](https://github.com/purescript-contrib/purescript-formatters/releases/tag/0.0.5) - 2016-09-18
92+
93+
- Fixed AM/PM behavior @doolse
94+
95+
## [0.0.1](https://github.com/purescript-contrib/purescript-formatters/releases/tag/0.0.1) - 2016-07-21
96+
97+
- Initial release

0 commit comments

Comments
 (0)