Skip to content

Commit

Permalink
fix: simplify everything (#31)
Browse files Browse the repository at this point in the history
Move to `kcd-scripts`

Remove lamps, workshop, and demo. We'll leave the sites up for now, but
if we ever want to be serious about this then we'll start from scratch.
  • Loading branch information
Kent C. Dodds committed Sep 8, 2017
1 parent 60f8c89 commit 9212a30
Show file tree
Hide file tree
Showing 390 changed files with 2,805 additions and 160,133 deletions.
24 changes: 24 additions & 0 deletions .all-contributorsrc
@@ -0,0 +1,24 @@
{
"projectName": "genie",
"projectOwner": "kentcdodds",
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "kentcdodds",
"name": "Kent C. Dodds",
"avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=3",
"profile": "https://kentcdodds.com",
"contributions": [
"code",
"doc",
"infra",
"test",
"talk"
]
}
]
}
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
@@ -1,2 +1,3 @@
/.grunt/
node_modules/
dist
node_modules
coverage
39 changes: 0 additions & 39 deletions .jshintrc

This file was deleted.

26 changes: 15 additions & 11 deletions .travis.yml
@@ -1,12 +1,16 @@
language:
- node_js
node_js:
- '0.10'
sudo: false
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: false
node_js: '8'
install: npm install
script: npm run validate
after_success:
- npx codecov
# enable this later...
# - npx -p semantic-release@7 -c "semantic-release pre && npm publish && semantic-release post"
branches:
only:
- master
before_script:
- npm install -g grunt-cli
- npm install
script:
- grunt build
only: master
78 changes: 41 additions & 37 deletions CHANGELOG.md
@@ -1,54 +1,58 @@
# Latest

- Pulling in ux-genie.
- Reorganizing some of the project.
- Creating slots for lamps made to work with other frameworks and libraries.
- Starting tests for ux-genie.
# 0.5.0

- Remove all lamps
- Modernize the tooling of the project

# 0.4.0

- Bug Fix: Path Contexts would only match the first group in the regex. One character change.
- Pulling in ux-genie.
- Reorganizing some of the project.
- Creating slots for lamps made to work with other frameworks and libraries.
- Starting tests for ux-genie.
- Bug Fix: Path Contexts would only match the first group in the regex. One character change.

# 0.3.0

- Breaking changes: Changed how wishes are registered. Now you
can only register with objects and arrays of objects. You can't
register by parameters. There were just too many parameters,
and everyone using this was using objects/arrays anyway.
Also changing context a tad internally. Now all context will
be created as an object. Though a string or array can still
be provided, it will be assigned to the `context.any` property.
- Update to the matching algorithm to improve suggestions.
- Genie now adds a `data` property to all wishes with a
`timesMade` object indicating how many times that wish had
been made (how many times the action was called) total as well
as with specific magic words.
- Added getWishesWithContext(context, type, wishContextTypes)
- Added getWishesInContext(context)
- Added getWish(id)
- Added overrideMatchingAlgorithm(function(wishes, magicWord, enteredMagicWords){}).
See README.
- Adding autodocs
- Added restoreMatchingAlgorithm()
- Seriously documented some functions.
- Adding jshint to the build. Some errors corrected.
- Old tests fixed/removed
- Updated README accordingly
- Breaking changes: Changed how wishes are registered. Now you
can only register with objects and arrays of objects. You can't
register by parameters. There were just too many parameters,
and everyone using this was using objects/arrays anyway.
Also changing context a tad internally. Now all context will
be created as an object. Though a string or array can still
be provided, it will be assigned to the `context.any` property.
- Update to the matching algorithm to improve suggestions.
- Genie now adds a `data` property to all wishes with a
`timesMade` object indicating how many times that wish had
been made (how many times the action was called) total as well
as with specific magic words.
- Added getWishesWithContext(context, type, wishContextTypes)
- Added getWishesInContext(context)
- Added getWish(id)
- Added overrideMatchingAlgorithm(function(wishes, magicWord, enteredMagicWords){}).
See README.
- Adding autodocs
- Added restoreMatchingAlgorithm()
- Seriously documented some functions.
- Adding jshint to the build. Some errors corrected.
- Old tests fixed/removed
- Updated README accordingly

# 0.2.5

- Big improvement to context. Added complex context functionality
allowing for more fine control over what wishes are in context and
which are not.
- Big improvement to context. Added complex context functionality
allowing for more fine control over what wishes are in context and
which are not.

# 0.2.4

- Bug fix: if a wish is deregistered, it is removed from the entered
magic words, but the entry in the entered magic words remained even
if it was empty.
- Bug fix: if a wish is deregistered, it is removed from the entered
magic words, but the entry in the entered magic words remained even
if it was empty.

# 0.2.3

- Added the pathContext feature
- Added some internal helpers
- Added this changelog file :)
- Added the pathContext feature
- Added some internal helpers
- Added this changelog file :)
73 changes: 73 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,73 @@
# Contributing

Thanks for being willing to contribute!

**Working on your first Pull Request?** You can learn how from this *free* series
[How to Contribute to an Open Source Project on GitHub][egghead]

## Project setup

1. Fork and clone the repo
2. `$ npm install` to install dependencies
3. `$ npm run validate` to validate you've got it working
4. Create a branch for your PR

> Tip: Keep your `master` branch pointing at the original repository and make
> pull requests from branches on your fork. To do this, run:
>
> ```
> git remote add upstream https://github.com/kentcdodds/genie.git
> git fetch upstream
> git branch --set-upstream-to=upstream/master master
> ```
>
> This will add the original repository as a "remote" called "upstream,"
> Then fetch the git information from that remote, then set your local `master`
> branch to use the upstream master branch whenever you run `git pull`.
> Then you can make all of your pull request branches based on this `master`
> branch. Whenever you want to update your version of `master`, do a regular
> `git pull`.
## Add yourself as a contributor

This project follows the [all contributors][all-contributors] specification.
To add yourself to the table of contributors on the `README.md`, please use the
automated script as part of your PR:

```console
npm run add-contributor
```

Follow the prompt and commit `.all-contributorsrc` and `README.md` in the PR.
If you've already added yourself to the list and are making
a new type of contribution, you can run it again and select the added
contribution type.

## Committing and Pushing changes

Please make sure to run the tests before you commit your changes. You can run
`npm run test:update` which will update any snapshots that need updating.
Make sure to include those changes (if they exist) in your commit.

### opt into git hooks

There are git hooks set up with this project that are automatically installed
when you install dependencies. They're really handy, but are turned off by
default (so as to not hinder new contributors). You can opt into these by
creating a file called `.opt-in` at the root of the project and putting this
inside:

```
pre-commit
```

## Help needed

Please checkout the [the open issues][issues]

Also, please watch the repo and respond to questions/bug reports/feature
requests! Thanks!

[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
[all-contributors]: https://github.com/kentcdodds/all-contributors
[issues]: https://github.com/kentcdodds/genie/issues
84 changes: 0 additions & 84 deletions Gruntfile.js

This file was deleted.

26 changes: 13 additions & 13 deletions LICENSE
@@ -1,20 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 Kent C. Dodds

Copyright (c) 2013 Kent C. Dodds

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:
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.
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.

0 comments on commit 9212a30

Please sign in to comment.