Skip to content

Commit 8413325

Browse files
committed
the birth
1 parent 23369a1 commit 8413325

File tree

311 files changed

+29843
-30044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+29843
-30044
lines changed

.babelrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"presets": [
3+
[
4+
"env", {
5+
"targets": {
6+
"browsers": ["last 2 versions", "ie >= 9", "iOS >= 8"]
7+
},
8+
"module": false,
9+
"loose": true,
10+
"useBuiltIns": false
11+
}
12+
]
13+
],
14+
"plugins": [
15+
"add-module-exports",
16+
"transform-helper-modules",
17+
"transform-inline-consecutive-adds",
18+
"transform-merge-sibling-variables",
19+
"transform-minify-booleans",
20+
"minify-constant-folding",
21+
"minify-dead-code-elimination",
22+
"minify-guarded-expressions",
23+
"minify-numeric-literals",
24+
"minify-simplify",
25+
"minify-type-constructors"
26+
]
27+
}

.bmp.yml

-7
This file was deleted.

.editorconfig

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# editorconfig.org
22
root = true
33

4-
[*]
5-
indent_style = space
6-
indent_size = 4
7-
end_of_line = lf
4+
[*.js]
85
charset = utf-8
9-
trim_trailing_whitespace = true
6+
end_of_line = lf
7+
indent_style = tab
108
insert_final_newline = true
11-
12-
[*.yml]
13-
indent_size = 2
9+
max_line_length = 80
10+
trim_trailing_whitespace = true

.eslintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// Naver https://github.com/naver/eslint-config-naver/blob/master/STYLE_GUIDE.md
3+
"extends": "naver",
4+
"rules": {
5+
"linebreak-style": 0,
6+
"consistent-this": 0,
7+
"no-nested-ternary": 0,
8+
"object-shorthand": 0,
9+
"comma-dangle": 0,
10+
"no-lonely-if": 0,
11+
"no-shadow": 0,
12+
"default-case": 0,
13+
"class-methods-use-this": 0,
14+
"no-useless-escape": 0,
15+
"no-loop-func": 0,
16+
"no-console":["error", {
17+
allow: ["error"]
18+
}]
19+
}
20+
}

.github/ISSUE_TEMPLATE.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Description
2+
<!-- Detailed description of the issue -->
3+
4+
## Steps to check or reproduce
5+
<!-- Text description or code example (written code / JSFiddle link / etc.) -->

.github/PULL_REQUEST_TEMPLATE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Issue
2+
<!-- #ISSUE_NUMBER (reference issue number for this PR) -->
3+
4+
## Details
5+
<!-- Detailed description of the change/feature -->
6+
7+
## Preferred reviewers
8+
<!-- Mention user/group to be reviewed by:
9+
anyone from maintainers(@naver/billboardjs-dev) or specific user (@USER1, @USER2) -->

.gitignore

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# npm modules
21
node_modules
3-
bower_components
4-
d3.js
5-
d3.min.js
6-
components
7-
build
8-
.sass-cache
9-
10-
# coverage report
11-
/coverage
2+
.DS_Store
3+
*.log
4+
/.idea
5+
/dist
6+
/doc

.jshintrc

-24
This file was deleted.

.travis.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
sudo: false
21
language: node_js
3-
node_js:
4-
- 6
2+
3+
before_script:
4+
- npm install -g grunt-cli
5+
- gem install sass
6+
7+
script:
8+
- grunt
59

610
after_success:
711
- npm run codecov

CONTRIBUTING.md

+64-40
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,64 @@
1-
## Filing an issue
2-
3-
Before filing an issue, please [search the queue](https://github.com/c3js/c3/issues) to make sure it hasn't already been reported.
4-
5-
If a bug, please include the following —
6-
7-
1. What version of C3?
8-
1. What browsers have you confirmed it in?
9-
1. Can you isolate the issue by providing a jsFiddle demonstrating it in a minimalist capacity?
10-
11-
Please *do not* ask for support using the issue queue. For support, please ask [on chat](https://gitter.im/c3js/c3) or [the mailing list](groups.google.com/forum/#!forum/c3js).
12-
13-
##Building C3 from sources
14-
15-
1. **Clone the repo from GitHub**
16-
17-
git clone https://github.com/c3js/c3.git
18-
cd c3
19-
20-
2. **Acquire build dependencies.** Make sure you have [Node.js](http://nodejs.org/) installed on your workstation. This is only needed to _build_ C3 from sources. C3 itself has no dependency on Node.js once it is built. Now run:
21-
22-
npm install -g grunt-cli
23-
npm install
24-
25-
The first `npm` command sets up the popular [Grunt](http://gruntjs.com/) build tool. You might need to run this command with `sudo` if you're on Linux or Mac OS X, or in an Administrator command prompt on Windows. The second `npm` command fetches the remaining build dependencies.
26-
27-
3. **Run the build tool**
28-
29-
grunt
30-
31-
Now you'll find the built files in `c3.js`, `c3.min.js`, `c3.css` & `c3.min.css`.
32-
33-
## Running the tests
34-
The `grunt` script will automatically run the specification suite and report its results.
35-
36-
Or, if you want to run the specs in a browser (e.g., for debugging), simply open `spec/runner.html` in your browser.
37-
38-
## Contributing your changes
39-
40-
Add something about PRs here, indicate that PRs should not bump the version number & the build output files (`c3.js`, `c3.min.js`, `c3.css` & `c3.min.css`) should be excluded
1+
# How to contribute to billboard.js
2+
billboard.js is opened to everyone and we're welcoming for any kind of contribution.
3+
We believe that our project can grow with your interests helping others' necessities.
4+
5+
## Style Guide
6+
7+
billboard.js has several style guidelines to follow.
8+
Before your start, please read attentively below instructions.
9+
10+
### Linting and Code Convention
11+
To maintain the code style, we adopted [ESLint](http://eslint.org/) to maintain our code quality.
12+
The [rules](https://github.com/naver/eslint-config-naver/tree/master/rules) are modified version based on [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript).
13+
14+
### Commit Log Guidelines
15+
billboard.js use formatted commit logs for many different purposes (like creating CHANGELOG, ease history searching, etc.).
16+
To not break, you'll be forced to follow our commit log guidelines.
17+
Before your commit/push, make sure following our commit log guidelines.
18+
19+
The outline is as below:
20+
```bash
21+
<type>(<module>): <subject>
22+
<BLANK LINE>
23+
<body>
24+
<BLANK LINE>
25+
<footer>
26+
```
27+
28+
- **Types**
29+
- **feat**: A new feature
30+
- **fix**: A bug fix
31+
- **docs**: Documentation only changes
32+
- **style**: Changes that do not affect the meaning of the code. Such as white-space, formatting, missing semi-colons, etc.
33+
- **refactor**: A code change that neither fixes a bug nor adds a feature
34+
- **test**: Adding missing tests. Changing tests.
35+
- **chore**: Changes to the build process or tools and libraries such as documentation generation
36+
37+
Example commit of fixing a bug:
38+
```bash
39+
Fix(Axis): Correct tick rendering
40+
41+
Update condition of tick to avoide unnecessary tick rendering
42+
43+
Ref #20
44+
```
45+
46+
## How to submit Pull Requests
47+
Steps to submit your pull request:
48+
49+
1. Fork `billboard.js` on your repository
50+
2. Create new branch from your billboard.js master branch (and be sure always to be up-to-date)
51+
3. Do your work
52+
4. Create test code for your work (when is possible)
53+
5. Run `npm run lint` for linting and code style check. (update until without any error or warnings)
54+
6. Run test code by `npm run test` or `npm run test:chrome` to run the test on chrome browser.
55+
Make sure tests are all passed at least in latest version of Chrome(mobile/desktop).
56+
7. Write commit log following convention and push to your repository branch.
57+
8. Create a new PR from your branch to billboard.js.
58+
9. Wait for reviews.
59+
When your contribution is well enough to be accepted, then will be merged to our branch.
60+
10. All done!
61+
62+
63+
## License
64+
By contributing to billboard.js, you're agreeing that your contributions will be licensed under its [MIT](https://opensource.org/licenses/MIT) license.

Gruntfile.coffee

-36
This file was deleted.

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
The MIT License (MIT)
22

3+
Copyright (c) 2017 NAVER Corp.
34
Copyright (c) 2013 Masayuki Tanaka
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy of

0 commit comments

Comments
 (0)