-
Notifications
You must be signed in to change notification settings - Fork 0
Add everything #1
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| author-name = Aldwin Vlasblom | ||
| repo-owner = fluture-js | ||
| repo-name = fluture-project | ||
| source-files = index.js | ||
| module-type = esm | ||
| opening-delimiter = ```js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| indent_style = space | ||
| indent_size = 2 | ||
| end_of_line = lf | ||
| charset = utf-8 | ||
| trim_trailing_whitespace = true | ||
| insert_final_newline = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "root": true, | ||
| "extends": ["./node_modules/sanctuary-style/eslint-es3.json"], | ||
| "parserOptions": {"sourceType": "module"}, | ||
| "env": {"node": true, "es6": true}, | ||
| "overrides": [ | ||
| { | ||
| "files": ["README.md"], | ||
| "rules": {"no-undef": ["off"]} | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| name: Initial pull request | ||
| about: When you've just generated this repository and you want to get to work. | ||
| --- | ||
|
|
||
| # Everything | ||
|
|
||
| This pull request adds everything the project needs to be at its first release. | ||
|
|
||
| # TODO | ||
|
|
||
| - [ ] Update `author-name` and `repo-owner` in `.config` and | ||
| ensure the tests pass. | ||
|
|
||
| - [ ] Name the project: | ||
| - Change `repo-name` in `.config` and ensure the tests pass. | ||
| - Change the header of the documentation in `index.js`. | ||
| - Change the module name in `rollup.config.js`. | ||
|
|
||
| - [ ] Describe the project: | ||
| - Change `description` in `package.json` | ||
| - Update the GitHub repo description. | ||
| - Add the description to the documentation in `index.js`. | ||
|
|
||
| - [ ] If this is a node-only module, remove browser support: | ||
| - Change `umd` to `cjs` in `rollup.config.js` and remove `output.name`. | ||
| - Change `eslint-es3` to `eslint-es6` in `.eslintrc.json`. | ||
|
|
||
| - [ ] Remove the `initial-pr.md` pull-request template. | ||
|
|
||
| - [ ] Write the code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /coverage/ | ||
| /index.cjs | ||
| /node_modules/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| package-lock=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| language: node_js | ||
| node_js: | ||
| - "12" | ||
| after_success: npm run codecov | ||
| branches: | ||
| only: | ||
| - master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Contribution Guideline | ||
|
|
||
| ## Making a contribution | ||
|
|
||
| 1. Fork the repo if you do not have write access | ||
| 1. Clone the remote (fork) from GitHub | ||
| 1. Create a branch named `<yourgithubusername>/<yourfeature>` | ||
| 1. Make one or more atomic commits | ||
| 1. Make sure the tests pass locally | ||
| 1. Create a pull request on GitHub | ||
|
|
||
| ## Publishing a new version | ||
|
|
||
| 1. Make sure you have write access to the module on npm | ||
| 1. Make sure you have write access to the master branch on GitHub | ||
| 1. Checkout `master` and make sure it's up to date with the remote | ||
| 1. Run `npm run release <level>`, where `<level>` can be any of: 'major', | ||
| 'minor', 'patch', 'premajor', 'preminor', 'prepatch', or 'prerelease'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| The MIT License (MIT) | ||
| Copyright (c) 2019 Aldwin Vlasblom | ||
Avaq marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| 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. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,4 @@ | ||
| # Fluture Project | ||
| # Under Construction | ||
|
|
||
| This project is still under construction. If all went well, you should be | ||
| able to learn about it in the [initial pull request](./pull/1). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| //. # Fluture Project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "name": "fluture-project", | ||
| "version": "0.0.0", | ||
| "description": "Hopefully something related to Fluture", | ||
| "type": "module", | ||
| "main": "index.cjs", | ||
| "module": "index.js", | ||
| "scripts": { | ||
| "build": "rollup -c rollup.config.js", | ||
| "codecov": "codecov", | ||
| "doctest": "sanctuary-doctest", | ||
| "lint": "sanctuary-lint", | ||
| "release": "sanctuary-release", | ||
| "test": "npm run lint && sanctuary-test && npm run doctest" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git://github.com/fluture-js/fluture-project.git" | ||
| }, | ||
| "files": [ | ||
| "/index.cjs", | ||
| "/index.js", | ||
| "/LICENSE", | ||
| "/package.json", | ||
| "/README.md" | ||
| ], | ||
| "author": "Aldwin Vlasblom <[email protected]> (https://github.com/Avaq)", | ||
| "license": "MIT", | ||
| "dependencies": {}, | ||
| "peerDependencies": {}, | ||
| "devDependencies": { | ||
| "c8": "^5.0.4", | ||
| "codecov": "^3.2.0", | ||
| "oletus": "^2.0.0", | ||
| "rollup": "^1.21.4", | ||
| "sanctuary-scripts": "^3.1.1" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| export default { | ||
| input: 'index.js', | ||
| output: { | ||
| format: 'umd', | ||
| file: 'index.cjs', | ||
| name: 'flutureProject', | ||
| interop: false | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/usr/bin/env bash | ||
| set -eufo pipefail | ||
|
|
||
| echo "Publishing as $(npm whoami)." | ||
|
|
||
| if ! npm outdated --long; then | ||
| read -rp "Continue? [y/N] " choice | ||
| if [[ "${choice-n}" != 'y' ]]; then | ||
| echo 'Package distribution aborted.' | ||
| exit 2 | ||
| fi | ||
| fi | ||
Avaq marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| npm run build | ||
|
|
||
| sanctuary-prepublish "$@" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/usr/bin/env bash | ||
| set -eufo pipefail | ||
|
|
||
| # shellcheck source=../node_modules/sanctuary-scripts/functions | ||
| source "${BASH_SOURCE%/*}/../node_modules/sanctuary-scripts/functions" | ||
|
|
||
| branches="$(get min-branch-coverage)" | ||
|
|
||
| c8 --check-coverage \ | ||
| --branches "$branches" \ | ||
| node --experimental-modules \ | ||
| --no-warnings \ | ||
| ./node_modules/.bin/oletus | ||
Avaq marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import '../index.js'; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.