Skip to content
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

Add .coafile and Travis lint job #59

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[all]
ignore = node_modules/**, dist/**, .git/**
use_spaces = true

[all.SpaceConsistencyBear]
files = **.js, **.json, **.yml, **.yaml, **.md
bears = SpaceConsistencyBear
# gantt-chart.js contains mixture of tabs and spaces
ignore += src/gantt-chart.js

[all.json]
bears = JSONFormatBear
files = **.json
indent_size = 2

[all.js]
bears = ESLintBear
eslint_config = .eslintrc
files = **.js
ignore += src/gantt-chart.js

[all.markdown]
bears = MarkdownBear
files = **.md

[all.yaml]
bears = YAMLLintBear
files = **.yml, **.yaml
13 changes: 2 additions & 11 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,14 @@
"plugins": [ "react" ],
"env": {
"es6": true,
"browser": true,
},
"ecmaFeatures": {
"templateStrings": true,
"arrowFunctions": true,
"modules": true,
"blockBindings": true,
"forOf": true,
"jsx": true
"browser": true
},
"rules": {
"no-unused-vars": 1,
"react/jsx-uses-vars": 1,
"no-var": 2,
"new-cap": 0,
"quotes": [1, "single", "avoid-escape"],
"semi": 1,
"indent": [2, 2]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this is annoying ... as the rule is generally ok, but there are a bunch of exceptions which probably need to be added to get it working. (help ...?)

An alternative is to not ugprade eslint to 4.19. I chose that version because it is the same as being used on git-task-list, and IMO we should aim at having the same in our JS repos.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Airbnb style actually uses 4.9 as peer dependency. I really want to downgrade to that matching version :( too. Waiting for @blazeu .

Copy link

@bekicot bekicot Jun 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was using 4.19 as i though, later is better. (it was before adding airbnbstyleguide)

Copy link
Member Author

@jayvdb jayvdb Jun 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Airbnb style actually uses 4.9 as peer dependency.

No it doesnt @bekicot.
It uses eslint: '^4.9.0', which in case you didnt know means any version of 4, after that.

To check what a JS semvar spec means, https://semver.npmjs.com/ is very helpful.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.9 seems to work fine and no additional overhead.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it would work with 4.19 with no dependency error. But it add additional overhead.

"semi": 1
}
}
37 changes: 31 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,50 @@ cache:
directories:
- "node_modules"

.disable_global: &disable_global
node_js: false
cache: false
before_install: false
install: false
before_script: false
script: false
after_success: false
before_deploy: false
deploy: false

# env forces jobs to be created from the top level settings
env:
jobs:
include:
- stage: moban
- <<: *disable_global
stage: moban
language: python
python: 3.6
cache: pip
before_install: false
install: pip install moban
before_script: false
script: .ci/check_moban.sh
after_success: false

- <<: *disable_global
stage: lint
language: python
python: 3.6
cache:
pip: true
directories:
- node_modules
before_install:
- export PATH=$PATH:./node_modules/.bin
- export NODE_PATH=$NODE_PATH:./node_modules
install:
- pip install coala-bears
- npm install
script: coala --non-interactive -V

# Needed for Firefox
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
- sleep 3 # give xvfb some time to start

script:
- npm run test
Expand All @@ -42,5 +67,5 @@ deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
"on":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vaguely remember doing something like this in the past, but my quick searches couldn't come up with anything. What's the story behind this?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is from the yaml lint bear.
I used to disabled it in git-task-list. But it is far easier just to quote it.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you did it in gci-leader?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, I knew that was familiar 😂

branch: master
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Serverless Kanban Board for GitHub Issues

[![issues][gh-board-image]][gh-board-url]
[![dependency status][dependency-image]][dependency-url]
[![dev dependency status][dev-dependency-image]][dev-dependency-url]
Expand Down Expand Up @@ -33,14 +34,12 @@ Multiple Repositories in an organization can be shown on a board (from different

![image](https://cloud.githubusercontent.com/assets/253202/13621991/70bb1312-e569-11e5-86ef-82372752fbff.png)


### Linked Issues and Pull Requests

Just add `#123` or `orgName/RepoName#123` to the Issue or Pull Request body and linked Issues will show up with the column they are in, both below the Card and in the preview popup.

![image](https://cloud.githubusercontent.com/assets/253202/13620658/63f99478-e55f-11e5-8e9f-9babcfb69a29.png)


### Real-Time Collaboration

By clicking the :pencil2: icon next to the card title, multiple people can edit the Issue Body at once (ie in a meeting), and when editing is done, one person clicks <kbd>Save to GitHub</kbd>.
Expand All @@ -56,15 +55,13 @@ Features:

![gh-board_realtime-editing4](https://cloud.githubusercontent.com/assets/253202/13621429/8c917166-e565-11e5-8e80-10fab6d51253.gif)


### Filtering

- cards can be filtered by label, milestone, board column, or user
- filters can be inclusive as well as exclusive

![gh-board_filters](https://cloud.githubusercontent.com/assets/253202/13621706/958fafec-e567-11e5-9411-405de7f34664.gif)


### Milestone Planning

When doing Milestone (or Sprint) planning there is a view to easily move cards into milestones
Expand Down Expand Up @@ -99,7 +96,6 @@ By using the `- [ ]` notation in the body of an Issue or Pull Request, the progr

![image](https://cloud.githubusercontent.com/assets/253202/13621905/dfee5920-e568-11e5-94df-98a887f63d24.png)


### Burnup Chart

[Why Burnup instead of Burndown?](http://brodzinski.com/2012/10/burn-up-better-burn-down.html)
Expand All @@ -111,7 +107,6 @@ It also skips when nothing was opened or closed that day/month/year (useful to s

![burnup-chart](https://cloud.githubusercontent.com/assets/253202/14406693/5e05c870-fe7d-11e5-9564-ecddb08ebe0d.png)


# Issue Image

If an Issue or Pull Request contains an image then it will be shown in the Issue
Expand All @@ -130,7 +125,6 @@ If you need to rename a column or remove a duplicate label you can get to this p

![image](https://cloud.githubusercontent.com/assets/253202/14569597/b3388eba-030d-11e6-9b6e-ea03df2f2327.png)


# Examples

Just specify a GitHub repository in the URL and off you go!
Expand All @@ -141,7 +135,6 @@ Just specify a GitHub repository in the URL and off you go!
- [jquery/jquery](http://philschatz.com/gh-board/#/r/jquery:jquery)
- Or wildcards! (must be logged in) using `http://philschatz.com/gh-board/#/r/openstax:tutor-js|*`


# Development

- `npm start` to start up the dev server and go to `http://localhost:8080`
Expand All @@ -155,7 +148,6 @@ Just specify a GitHub repository in the URL and off you go!
- There are special Labels which represent the board columns (in the format `# - Column Title`)
- To be a "Good API Citizen" `gh-board` uses eTags provided by GitHub and saves them in `localStorage` (or `IndexedDB`)


### Hosting your own Forked Version

1. create a fork
Expand All @@ -174,7 +166,6 @@ Just specify a GitHub repository in the URL and off you go!
1. `git pull https://github.com/philschatz/gh-board.git master`
2. run `npm run deploy`


# TODO List

- [x] combine Issue and the Pull Requests that fixes it
Expand All @@ -193,12 +184,18 @@ Just specify a GitHub repository in the URL and off you go!
- [ ] add effort labels XS, S, M, L, XL
- [ ] add GitHub search


[gh-board-image]: https://img.shields.io/github/issues/philschatz/gh-board.svg?label=Issues%20%28gh-board%29

[gh-board-url]: http://philschatz.com/gh-board/

[travis-image]: https://img.shields.io/travis/philschatz/gh-board.svg

[travis-url]: https://travis-ci.org/philschatz/gh-board

[dependency-image]: https://img.shields.io/david/philschatz/gh-board.svg

[dependency-url]: https://david-dm.org/philschatz/gh-board

[dev-dependency-image]: https://img.shields.io/david/dev/philschatz/gh-board.svg

[dev-dependency-url]: https://david-dm.org/philschatz/gh-board?type=dev
Loading