Skip to content

Commit

Permalink
everything
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Feb 24, 2023
1 parent eddb8c3 commit 1696727
Show file tree
Hide file tree
Showing 11 changed files with 821 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
repo-owner = sanctuary-js
repo-name = sanctuary-argv
contributing-file = .github/CONTRIBUTING.md
module-type = esm
41 changes: 41 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"root": true,
"extends": ["./node_modules/sanctuary-style/eslint-es6.json"],
"parserOptions": {"ecmaVersion": 2020, "sourceType": "module"},
"env": {"node": true},
"overrides": [
{
"files": ["*.md"],
"globals": {
"Flag": "readonly",
"Just": "readonly",
"Left": "readonly",
"Nothing": "readonly",
"Option": "readonly",
"Pair": "readonly",
"Right": "readonly",
"S": "readonly",
"conf": "readonly",
"parseArgs": "readonly",
"spec": "readonly"
},
"rules": {
"comma-dangle": ["error", {"arrays": "always-multiline", "objects": "always-multiline"}],
"key-spacing": ["off"],
"no-unused-vars": ["error", {"args": "none", "varsIgnorePattern": "^(conf|spec)$"}]
}
},
{
"files": ["index.js"],
"rules": {
"curly": ["off"]
}
},
{
"files": ["test/index.js"],
"rules": {
"object-property-newline": ["off"]
}
}
]
}
27 changes: 27 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Contributing

Note: __README.md__ is generated from comments in __index.js__. Do not modify
__README.md__ directly.

1. Update local master branch:

$ git checkout master
$ git pull upstream master

2. Create feature branch:

$ git checkout -b feature-x

3. Make one or more atomic commits, and ensure that each commit has a
descriptive commit message. Commit messages should be line wrapped
at 72 characters.

4. Run `npm test`, and address any errors. Preferably, fix commits in place
using `git rebase` or `git commit --amend` to make the changes easier to
review.

5. Push:

$ git push origin feature-x

6. Open a pull request.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [davidchambers, Avaq]
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint and test

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.0.0, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.nyc_output/
/coverage/
/node_modules/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
The MIT License (MIT)

Copyright (c) 2023 Sanctuary

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 1696727

Please sign in to comment.