Skip to content

Commit

Permalink
Merge pull request #9 from Stinkdigital/feature/es6
Browse files Browse the repository at this point in the history
Feature/es6
  • Loading branch information
ianmcgregor authored Oct 2, 2016
2 parents 19e3d1c + 7615826 commit e63607b
Show file tree
Hide file tree
Showing 59 changed files with 6,864 additions and 6,420 deletions.
115 changes: 115 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"globals": {
"sono": true,
"expect": true,
"it": true
},
"plugins": [],
"parserOptions": {
"ecmaVersion": 6,
"jsx": true,
"sourceType": "module"
},
"rules": {
"array-bracket-spacing": [2, "never"],
"block-scoped-var": 0,
"block-spacing": 2,
"brace-style": [2, "1tbs"],
"callback-return": [2, ["cb", "callback", "next"]],
"camelcase": [2, {"properties": "never"}],
"comma-dangle": [2, "never"],
"comma-spacing": 2,
"comma-style": [2, "last"],
"consistent-return": 2,
"curly": [2, "all"],
"default-case": 2,
"dot-location": [2, "property"],
"dot-notation": [2, {"allowKeywords": true}],
"eol-last": 2,
"eqeqeq": 2,
"func-style": [2, "declaration"],
"guard-for-in": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": 2,
"max-len": [1, 120],
"new-cap": 0,
"new-parens": 2,
"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-confusing-arrow": 2,
"no-console": 0,
"no-const-assign": 2,
"no-constant-condition": 2,
"no-delete-var": 2,
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-semi": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-invalid-this": 2,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": [2, {"allowLoop": true, "allowSwitch": true}],
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-mixed-spaces-and-tabs": [2, false],
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-nested-ternary": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-process-exit": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-undef": 2,
"no-undefined": 2,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": 2,
"no-useless-concat": 2,
"no-var": 2,
"no-with": 2,
"object-curly-spacing": [2, "never"],
"prefer-const": 2,
"quotes": [2, "single"],
"radix": 2,
"require-jsdoc": 0,
"semi-spacing": [2, {"before": false, "after": true}],
"semi": 2,
"space-before-blocks": 2,
"space-before-function-paren": [0, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"spaced-comment": [0, "always", {"exceptions": ["-"]}],
"strict": [1, "global"],
"valid-jsdoc": [0, {"prefer": { "return": "returns"}}],
"wrap-iife": 2,
"yoda": [2, "never"]
}
}
89 changes: 0 additions & 89 deletions .jshintrc

This file was deleted.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- 0.12.7
- 6
addons:
firefox: "39.0"
firefox: "latest"
before_install:
- 'npm install -g karma-cli'
before_script:
Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sono

[![NPM version](https://badge.fury.io/js/sono.svg)](http://badge.fury.io/js/sono) [![Build Status](https://secure.travis-ci.org/ianmcgregor/sono.png)](https://travis-ci.org/ianmcgregor/sono)
[![NPM version](https://badge.fury.io/js/sono.svg)](http://badge.fury.io/js/sono) [![Build Status](https://travis-ci.org/Stinkdigital/sono.svg?branch=master)](https://travis-ci.org/Stinkdigital/sono)

A library for making stuff with Web Audio

Expand Down Expand Up @@ -101,15 +101,27 @@ echo.feedback = 0.9;

## Dev setup

To install dependencies:
Install dependencies:

```
$ npm install
```

To run tests:
Run tests:

```
$ npm install -g karma-cli
$ karma start
$ npm test
```

Build bundles:

```
$ npm run build
```

Watch and continuous tests:

```
$ npm start
```
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sono",
"version": "0.1.2",
"version": "0.1.8",
"homepage": "https://github.com/Stinkdigital/sono",
"authors": [
"Ian McGregor <[email protected]>"
Expand Down
Loading

0 comments on commit e63607b

Please sign in to comment.