-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 72baeb1
Showing
11 changed files
with
3,659 additions
and
0 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,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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/*.js | ||
config/*.js |
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,12 @@ | ||
module.exports = { | ||
root: true, | ||
extends: 'standard', | ||
'rules': { | ||
// allow paren-less arrow functions | ||
'arrow-parens': 0, | ||
// allow async-await | ||
'generator-star-spacing': 0, | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 | ||
} | ||
} |
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,39 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
.DS_Store |
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,14 @@ | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "6" | ||
|
||
sudo: false | ||
|
||
before_script: | ||
- npm install -g eslint-config-standard eslint-plugin-standard eslint-plugin-promise ava | ||
|
||
cache: | ||
directories: | ||
- node_modules |
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,45 @@ | ||
# yuki-gta | ||
⛩ yuki-gta | ||
|
||
[![Travis](https://img.shields.io/travis/yuki-torii/yuki-gta.svg?style=flat-square)](https://travis-ci.org/yuki-torii/yyuki-git-commit) | ||
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/limichange/yuki-git-commit/master/LICENSE) | ||
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/) | ||
|
||
## Install | ||
```bash | ||
$ npm i --save yuki-gta | ||
# or | ||
$ yarn add yuki-gta | ||
``` | ||
|
||
## Usage | ||
```js | ||
import yuki-gta from 'yuki-gta' | ||
``` | ||
|
||
## Development | ||
```bash | ||
# install dependencies | ||
$ npm i | ||
# or | ||
$ yarn | ||
|
||
# dev | ||
$ npm run dev | ||
|
||
# test | ||
$ npm run test | ||
|
||
# lint | ||
$ npm run lint | ||
``` | ||
|
||
## Contributing | ||
- Fork it! | ||
- Create your feature branch: git checkout -b my-new-feature | ||
- Commit your changes: git commit -am 'Add some feature' | ||
- Push to the branch: git push origin my-new-feature | ||
- Submit a pull request 🍻 | ||
|
||
## Author | ||
yuki-gta © [Limichange](https://github.com/limichange), Released under the [MIT](https://opensource.org/licenses/MIT) License. |
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,48 @@ | ||
{ | ||
"name": "yuki-gta", | ||
"description": "A npm project", | ||
"version": "0.0.1", | ||
"author": "limichange <limichange@hotmail.com>", | ||
"main": "dist/yuki-gta.common.js", | ||
"unpkg": "dist/yuki-gta.js", | ||
"scripts": { | ||
"dev": "rollup -cw", | ||
"build": "rollup -c --environment BUILD && uglifyjs dist/yuki-gta.js > dist/yuki-gta.min.js", | ||
"test": "npm run lint && ava", | ||
"lint": "eslint --ext .js src test/unit/specs" | ||
}, | ||
"license": "MIT", | ||
"pre-commit": [ | ||
"lint" | ||
], | ||
"keywords": [ | ||
"yuki" | ||
], | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.17.0", | ||
"eslint": "^3.13.1", | ||
"eslint-config-standard": "^6.2.1", | ||
"eslint-plugin-promise": "^3.4.0", | ||
"eslint-plugin-standard": "^2.0.1", | ||
"pre-commit": "^1.1.3", | ||
"rollup": "^0.41.4", | ||
"rollup-plugin-buble": "^0.15.0", | ||
"rollup-plugin-commonjs": "^7.0.0", | ||
"rollup-plugin-node-resolve": "^2.0.0", | ||
"rollup-watch": "^3.2.2", | ||
"uglify-js": "^2.7.5" | ||
}, | ||
"standard": { | ||
"globals": [] | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+git@github.com:yuki-torii/yuki-gta.git.git" | ||
}, | ||
"bugs": { | ||
"url": "git@github.com:yuki-torii/yuki-gta.git/issues" | ||
}, | ||
"homepage": "git@github.com:yuki-torii/yuki-gta.git#readme" | ||
} |
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,19 @@ | ||
import buble from 'rollup-plugin-buble' | ||
import commonjs from 'rollup-plugin-commonjs' | ||
import nodeResolve from 'rollup-plugin-node-resolve' | ||
|
||
let targets = [ { dest: 'dist/yuki-gta.js', format: 'umd' } ] | ||
|
||
if (process.env.BUILD) { | ||
targets = targets.concat([ | ||
{ dest: 'dist/yuki-gta.common.js', format: 'cjs' }, | ||
{ dest: 'dist/yuki-gta.es5.js', format: 'es' } | ||
]) | ||
} | ||
|
||
export default { | ||
entry: 'src/index.js', | ||
plugins: [buble(), nodeResolve(), commonjs()], | ||
moduleName: 'yuki-gta', | ||
targets: targets | ||
} |
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,3 @@ | ||
let yukiGta = {} | ||
|
||
export default yukiGta |
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,5 @@ | ||
import test from 'ava' | ||
|
||
test('test', t => { | ||
t.pass() | ||
}) |
Oops, something went wrong.