Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Various infrastructure tweaks. (#2)
Browse files Browse the repository at this point in the history
* ALL TEH UPGRADEZ

* I'M SO OVER NODE6

* Add note about watch

* Use rimraf and don't build test

* Add ticket comment
  • Loading branch information
ryan-roemer authored and ianwsperber committed Nov 1, 2018
1 parent ed0d96e commit 970dc94
Show file tree
Hide file tree
Showing 10 changed files with 2,550 additions and 3,474 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ dist/

test/integration/tmp
test/unit/tmp
.nyc_output/
.nyc_output/
.DS_Store
node_modules
package-lock.json
coverage
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
!/dist
dist/**/*.map
dist/test
!LICENSE.txt
!HISTORY.md
!README.md
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: node_js

node_js:
- "8"
- "10"
- "11"

branches:
only:
- master

install:
# Fail if lockfile outdated.
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile
- yarn install --frozen-lockfile

script:
- yarn --version
- yarn run clean
- yarn run compile
- yarn run lint
- yarn run tests
# TODO: Add coverage
# https://github.com/FormidableLabs/yesno/issues/5
38 changes: 38 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Contributing
============

Thanks for contributing!

## Development

Install the project using `yarn` (which we've standardized on for development):

```sh
$ yarn install
```

You can build and run everything with:

```sh
$ yarn run compile
$ yarn run check
```

If you are actively developing, you can run a watch in one terminal:

```sh
$ yarn run watch
```

to build source files and then do whatever development you want in a separate terminal.

## Releasing a new version to NPM

_Only for project administrators_.

1. Update `HISTORY.md`, following format for previous versions
2. Commit as "History for version NUMBER"
3. Run `npm version patch` (or `minor|major|VERSION`) to run tests and lint,
build published directories, then update `package.json` + add a git tag.
4. Run `npm publish` and publish to NPM if all is well.
5. Run `git push && git push --tags`
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
History
=======

## Unreleased
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 Formidable Labs

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 970dc94

Please sign in to comment.