Skip to content
This repository has been archived by the owner on Jul 14, 2019. It is now read-only.

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Apr 23, 2017
1 parent fe81da1 commit 863916e
Show file tree
Hide file tree
Showing 20 changed files with 3,411 additions and 364 deletions.
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions .flowconfig
@@ -0,0 +1,9 @@
[ignore]

[include]

[libs]

[options]
module.system=node
suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore
78 changes: 63 additions & 15 deletions .gitignore
@@ -1,18 +1,66 @@
/quek.js
!src
node_modules
bower_components
coverage
log
.tmp
*#
*~
/*.js
dist

# Exclude
!/*.config.js
!/index.js
!/test.js

# Logs
logs
*.log
**/.DS_STORE
**/.DS_Store
*.swo
*.swp
*.swn
*.swm
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# 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

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
31 changes: 21 additions & 10 deletions .npmignore
@@ -1,28 +1,39 @@
app
src
test

*#
node_modules
coverage
bower_components
ssl
nbproject
bower.json
.DS_STORE
.DS_Store
*~
*.swo
*.swp
*.swn
*.swm
*~
.idea
nbproject
.git
.gitattributes
.travis.yml
.gitignore
.idea
.tmp
.jshintrc
.eslintrc
scripts
bower.json
webpack.config.js
.editorconfig
CONTRIBUTING.md
*.md
**/*.md
test
__tests__
.babelrc
.eslintrc
karma.conf.js
test.js
scripts
coverage
*.webpack.js
*.config.js
*.flowconfig
.nyc_output
yarn.lock
9 changes: 3 additions & 6 deletions .travis.yml
Expand Up @@ -14,17 +14,14 @@ git:
branches:
only:
- master
- /^greenkeeper-/
- /^greenkeeper/.*$/

cache:
yarn: true
directories:
- node_modules

before_install:
- npm install -g npm
- npm --version

notifications:
email: false

after_success: npm run coverage
after_success: yarn coverage
File renamed without changes.
38 changes: 17 additions & 21 deletions readme.md → README.md
@@ -1,48 +1,42 @@
# quek [![Build Status](https://travis-ci.org/joseluisq/quek.svg?branch=master)](https://travis-ci.org/joseluisq/quek) [![Coverage Status](https://coveralls.io/repos/github/joseluisq/quek/badge.svg?branch=master)](https://coveralls.io/github/joseluisq/quek?branch=master) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
# Quek

> A pretty small (300 bytes) [ES6](https://babeljs.io/docs/learn-es2015/) API for [Queue][1] and [Stack][2] [ADTs](https://en.wikipedia.org/wiki/Abstract_data_type).
[![Build Status](https://travis-ci.org/joseluisq/quek.svg?branch=master)](https://travis-ci.org/joseluisq/quek) [![Coverage Status](https://coveralls.io/repos/github/joseluisq/quek/badge.svg?branch=master)](https://coveralls.io/github/joseluisq/quek?branch=master) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

> A pretty small (270 bytes) [ES6](https://babeljs.io/docs/learn-es2015/) API for [Queue][1] and [Stack][2] [ADTs](https://en.wikipedia.org/wiki/Abstract_data_type).
[1]: https://en.wikipedia.org/wiki/Queue_(abstract_data_type)
[2]: https://en.wikipedia.org/wiki/Stack_(abstract_data_type)

## Install

#### CommonJS
[Yarn](https://github.com/yarnpkg/)

```sh
npm install quek --save-dev
```

#### AMD

```js
requirejs(['quek'], Quek => {

})
yarn add quek --dev
```

#### Browser
[NPM](https://www.npmjs.com/)

#### Bower
```sh
bower install quek --save
npm install quek --save-dev
```

##### CDN
[UMD](https://github.com/umdjs/umd/) file is also available on [unpkg](https://unpkg.com):

```html
<script src="https://unpkg.com/quek/dist/quek.min.js"></script>
```

You can use the library via `window.Quek`.
You can use the library via `window.quek`.

## Usage

### Queue

```js
const queue = require('quek')()
import quek from 'quek'

const queue = quek()

console.log(queue.first())
// => undefined
Expand All @@ -65,7 +59,9 @@ console.log(queue.length())
### Stack

```js
const stack = require('quek')()
import quek from 'quek'

const stack = quek()

console.log(stack.last())
// => undefined
Expand All @@ -87,12 +83,12 @@ console.log(stack.length())

## API

For more API functions check out [./src/quek.js](./src/quek.js).
For more functions check out [the source file](./index.js).

## Contributions
[Pull requests](https://github.com/joseluisq/quek/pulls) and [issues](https://github.com/joseluisq/quek/issues) are welcome.

## License
MIT license

© 2016 [José Luis Quintana](http://git.io/joseluisq)
© 2017 [José Luis Quintana](http://git.io/joseluisq)
35 changes: 0 additions & 35 deletions bower.json

This file was deleted.

0 comments on commit 863916e

Please sign in to comment.