Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexktzk committed May 15, 2019
2 parents 3e6c40f + 738de4d commit 3634c3a
Show file tree
Hide file tree
Showing 39 changed files with 5,009 additions and 615 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": ["@babel/preset-env"],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.data/
/dist
25 changes: 15 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# 1.2.0 (2019-05-16)

### Added

- Webpack dev config with configuration for webpack-dev-server. Webpack production config with scripts for build and deploy ([f4188b1](https://github.com/alexktzk/trello-habitica/commit/f4188b1))

## 1.1.1 (2019-02-21)

### Added

* Ability to hide/show card badges ([b94c7d5](https://github.com/alexktzk/trello-habitica/commit/b94c7d5))
* Ability to hide/show todos icon ([ea70a12](https://github.com/alexktzk/trello-habitica/commit/ea70a12))
* Popup with latest updates ([caeb409](https://github.com/alexktzk/trello-habitica/commit/caeb409))
- Ability to hide/show card badges ([b94c7d5](https://github.com/alexktzk/trello-habitica/commit/b94c7d5))
- Ability to hide/show todos icon ([ea70a12](https://github.com/alexktzk/trello-habitica/commit/ea70a12))
- Popup with latest updates ([caeb409](https://github.com/alexktzk/trello-habitica/commit/caeb409))

### Fixed

* Ability to change todo difficulty to trivial ([afb4e47](https://github.com/alexktzk/trello-habitica/commit/afb4e47))

- Ability to change todo difficulty to trivial ([afb4e47](https://github.com/alexktzk/trello-habitica/commit/afb4e47))

## 1.0.0 (2019-02-17)

### Added

* Ability to edit single card settings ([c227095](https://github.com/alexktzk/trello-habitica/commit/c227095))
* Ability to specify default difficulty for a task ([5576e20](https://github.com/alexktzk/trello-habitica/commit/5576e20))
* Ability to sync only the cards that was assigned to user ([ff83100](https://github.com/alexktzk/trello-habitica/commit/ff83100))
* Simple auth system ([88f2c29](https://github.com/alexktzk/trello-habitica/commit/88f2c29))
* Store user id and api token in the local storage ([5a7ae1d](https://github.com/alexktzk/trello-habitica/commit/5a7ae1d))
- Ability to edit single card settings ([c227095](https://github.com/alexktzk/trello-habitica/commit/c227095))
- Ability to specify default difficulty for a task ([5576e20](https://github.com/alexktzk/trello-habitica/commit/5576e20))
- Ability to sync only the cards that was assigned to user ([ff83100](https://github.com/alexktzk/trello-habitica/commit/ff83100))
- Simple auth system ([88f2c29](https://github.com/alexktzk/trello-habitica/commit/88f2c29))
- Store user id and api token in the local storage ([5a7ae1d](https://github.com/alexktzk/trello-habitica/commit/5a7ae1d))
80 changes: 71 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## [Trello](https://trello.com) Integration with [Habitica](https://habitica.com)

This Power-Up([?](https://trello.com/en/guide/power-up-productivity)) will keep your Trello cards in sync with Habitica. **No coding is required**; just fill in the form and you're all set!

## How to use?

Each Power-Up is associated with a team. Once a Power-Up has been added to a team, it will be available to all of the boards that belong to that team. So [create a team](https://trello.com/en/guide/create-a-team.html) if you don't have one.

To add a new Power-Up to your team, navigate to the [Power-Ups Administration page](https://trello.com/power-ups/admin), choose your team and click **Create a Power-Up**.
Expand All @@ -10,16 +12,76 @@ Now it's time to fill in the form.

1. First, name your Power-Up.
2. To work properly this Power-Up requires some permissions. Make sure you've checked all of the following:
* board-buttons
* callback
* card-badges
* card-buttons
* card-detail-badges
* list-actions

- board-buttons
- callback
- card-badges
- card-buttons
- card-detail-badges
- list-actions

3. Provide the URL to your Power-Up.
* The easiest way is to use the url provided below. As a bonus you will receive all upcoming updates without any changes from your side.
`https://alexktzk.github.io/trello-habitica`
* Or you can fork this repository, publish **gh-pages** branch to [GitHub Pages](https://pages.github.com) and use your own url.

- The easiest way is to use the url provided below. As a bonus you will receive all upcoming updates without any changes from your side.
`https://alexktzk.github.io/trello-habitica`
- Or you can fork this repository, publish **gh-pages** branch to [GitHub Pages](https://pages.github.com) and use your own url.

4. Now you can navigate to one of the boards of the team and activate your Power-Up! You will find it in the **Custom** section.
5. Finally, click the list menu (three dots) and select either "Mark list as Doing" or "Mark list as Done."

![](https://github.com/alexktzk/trello-habitica/blob/master/docs/img/ui.png)

## Developing Power Up

Clone the Git repo

```
$ git clone git://github.com/alexktzk/trello-habitica
$ cd trello-habitica
```

Install packages

```
$ npm install
```

### Run

For quick start run

```
$ npm start
```

It builds the project and runs [webpack-dev-server](https://webpack.js.org/configuration/dev-server/) to watch and update when any of the files are changed.

### Live testing

In order to test your code directly on a Trello board you should obtain a public url that points to your local web server. I prefer to use [serveo](https://serveo.net/) in this case.

```
$ ssh -R 80:localhost:8080 serveo.net
```

This command will generate a static url for you.

> The subdomain is chosen deterministically based on your IP address, the provided SSH username, and subdomain availability, so you'll often get the same subdomain between restarts. [More](https://serveo.net/#manual)
You can also request a particular subdomain if you don't like the autogenerated one:

```
$ ssh -R my-subdomain:80:localhost:8080 serveo.net
```

Once you've done just grab your public url and pass it to the Power-Up form as **Iframe connector URL**.

### Deploy

```
$ npm run deploy
```

That's it, you're live. Try to check your repo's [Github Pages](https://pages.github.com/) url.

The script generates and pushes the **dist** folder to **gh-pages**. For this, it creates and switches branches under the hood. Therefore, if you have any uncommited changes it will fail to run.
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ module.exports = {
// timers: "real",

// A map from regular expressions to paths to transformers
// transform: null,
transform: {
"^.+\\.jsx?$": "babel-jest"
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down
Loading

0 comments on commit 3634c3a

Please sign in to comment.