-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔥 refactor: update project structures
- Loading branch information
Showing
74 changed files
with
2,833 additions
and
2,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"presets": ["es2015", "flow-vue"], | ||
"plugins": ["babel-plugin-espower"], | ||
"env": { | ||
"test": { | ||
"plugins": ["istanbul"], | ||
"presets": ["power-assert"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"root": true, | ||
"parser": "babel-eslint", | ||
"extends": "vue", | ||
"plugins": ["flowtype"], | ||
"rules": { | ||
"complexity": 0, | ||
"object-curly-spacing": ["error", "always"], | ||
"operator-linebreak": [2, "before"], | ||
"no-trailing-spaces": 0, | ||
"no-inline-comments": 0, | ||
"no-multiple-empty-lines": [2, {"max": 2}], | ||
"no-new": 0 | ||
"flowtype/define-flow-type": 1, | ||
"flowtype/use-flow-type": 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ignore] | ||
.*/node_modules/.* | ||
.*/docs/.* | ||
.*/test/.* | ||
.*/config/.* | ||
.*/examples/.* | ||
|
||
[include] | ||
|
||
[libs] | ||
decls | ||
|
||
[options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
lib | ||
coverage | ||
dist/*.gz | ||
docs/_book | ||
test/e2e/report | ||
test/e2e/screenshots | ||
node_modules | ||
.DS_Store | ||
*.log | ||
*.gz | ||
*.swp | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
*.log | ||
*.swp | ||
*.yml | ||
bower.json | ||
coverage | ||
docs/_book | ||
config | ||
dist/*.map | ||
lib | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# vue-i18n Contributing Guide | ||
|
||
- [Issue Reporting Guidelines](#issue-reporting-guidelines) | ||
- [Pull Request Guidelines](#pull-request-guidelines) | ||
- [Development Setup](#development-setup) | ||
|
||
## Issue Reporting Guidelines | ||
|
||
- The issue list of this repo is **exclusively** for bug reports and feature requests. Non-conforming issues will be closed immediately. | ||
|
||
- For more complicated questions, you can use [the official forum](http://forum.vuejs.org/) or StackOverflow. Make sure to provide enough information when asking your questions - this makes it easier for others to help you! | ||
|
||
- Try to search for your issue, it may have already been answered or even fixed in the development branch. | ||
|
||
- Check if the issue is reproducible with the latest stable version of Vue. If you are using a pre-release, please indicate the specific version you are using. | ||
|
||
- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed. | ||
|
||
- It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start based with [this template](http://jsfiddle.net/5sH6A/) that already includes the latest version of Vue. | ||
|
||
- For bugs that involves build setups, you can create a reproduction repository with steps in the README. | ||
|
||
- If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it. | ||
|
||
## Pull Request Guidelines | ||
|
||
- The `master` branch is basically just a snapshot of the latest stable release. All development should be done in dedicated branches. **Do not submit PRs against the `master` branch.** | ||
|
||
- Checkout a topic branch from the relevant branch, e.g. `dev`, and merge back against that branch. | ||
|
||
- Work in the `src` folder and **DO NOT** checkin `dist` in the commits. | ||
|
||
- It's OK to have multiple small commits as you work on the PR - we will let GitHub automatically squash it before merging. | ||
|
||
- Make sure `npm test` passes. (see [development setup](#development-setup)) | ||
|
||
- If adding new feature: | ||
- Add accompanying test case. | ||
- Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it. | ||
|
||
- If fixing a bug: | ||
- Provide detailed description of the bug in the PR. Live demo preferred. | ||
- Add appropriate test coverage if applicable. | ||
|
||
### Work Step Example | ||
- Fork the repository from [kazupon/vue-i18n](https://github.com/kazupon/vue-i18n) ! | ||
- Create your topic branch from `dev`: `git branch my-new-topic origin/dev` | ||
- Add codes and pass tests ! | ||
- Commit your changes: `git commit -am 'Add some topic'` | ||
- Push to the branch: `git push origin my-new-topic` | ||
- Submit a pull request to `dev` branch of `kazupon/vue-i18n` repository ! | ||
|
||
## Development Setup | ||
|
||
You will need [Node.js](http://nodejs.org) and [Java Runtime Environment](http://www.oracle.com/technetwork/java/javase/downloads/index.html) (needed for running Selenium server during e2e tests). | ||
|
||
After cloning the repo, run: | ||
|
||
$ npm install | ||
|
||
### Commonly used NPM scripts | ||
|
||
# watch and serve with hot reload unit test at localhost:8080 | ||
$ npm run dev | ||
|
||
# lint source codes | ||
$ npm run lint | ||
|
||
# run unit tests in browser (firefox/safari/chrome) | ||
$ npm run test:unit | ||
|
||
# build all dist files, including npm packages | ||
$ npm run build | ||
|
||
# run the full test suite, include linting / type checking | ||
$ npm test | ||
|
||
There are some other scripts available in the `scripts` section of the `package.json` file. | ||
|
||
The default test script will do the following: lint with ESLint -> type check with Flow -> unit tests with coverage -> e2e tests. **Please make sure to have this pass successfully before submitting a PR.** Although the same tests will be run against your PR on the CI server, it is better to have it working locally beforehand. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
machine: | ||
node: | ||
version: 6 | ||
test: | ||
post: | ||
- npm run coverage && bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
var pack = require('../package.json') | ||
var version = process.env.VERSION || pack.version | ||
const pack = require('../package.json') | ||
const version = process.env.VERSION || pack.version | ||
|
||
module.exports = '/*!\n' + ' * ' + pack.name + ' v' + version + '\n' | ||
+ ' * (c) ' + new Date().getFullYear() + ' ' + pack.author.name + '\n' | ||
+ ' * Released under the ' + pack.license + ' License.\n' | ||
+ ' */' | ||
module.exports = | ||
'/*!\n' + | ||
` * ${pack.name} v${version} \n` + | ||
` * (c) ${new Date().getFullYear()} ${pack.author.name}\n` + | ||
` * Released under the ${pack.license} License.\n` + | ||
' */' |
Oops, something went wrong.