Skip to content

Commit

Permalink
🎉 - Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
limichange committed Feb 15, 2017
0 parents commit 72baeb1
Show file tree
Hide file tree
Showing 11 changed files with 3,659 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/*.js
config/*.js
12 changes: 12 additions & 0 deletions .eslintrc.js
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
}
}
39 changes: 39 additions & 0 deletions .gitignore
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
14 changes: 14 additions & 0 deletions .travis.yml
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
45 changes: 45 additions & 0 deletions README.md
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.
48 changes: 48 additions & 0 deletions package.json
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"
}
19 changes: 19 additions & 0 deletions rollup.config.js
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
}
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let yukiGta = {}

export default yukiGta
5 changes: 5 additions & 0 deletions test/unit/specs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import test from 'ava'

test('test', t => {
t.pass()
})
Loading

0 comments on commit 72baeb1

Please sign in to comment.