From 5b7784b2e3cc53387feb70509a514966daa0776f Mon Sep 17 00:00:00 2001 From: kubosho Date: Wed, 26 Nov 2014 21:48:15 +0900 Subject: [PATCH] Initialize commit --- .gitignore | 9 +++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 19 +++++++++++++++++++ bower.json | 26 ++++++++++++++++++++++++++ karma.conf.js | 22 ++++++++++++++++++++++ package.json | 17 +++++++++++++++++ test/scripts/test.js | 32 ++++++++++++++++++++++++++++++++ 7 files changed, 146 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 bower.json create mode 100644 karma.conf.js create mode 100644 package.json create mode 100755 test/scripts/test.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..579fd14 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.idea/ +.sass-cache/ +build/ +bower_components/ +node_modules/ +test/scripts/espower/ + +.DS_Store +tags diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6a90064 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Shota Kubota + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..4bcdd43 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +Ano Gakki +========= + +Implement a "Ano Gakki" (That Musical Instrument) for Web Audio API. + +Demo +---- + +http://kubosho.github.io/ano-gakki + +License +------- + +MIT License + +Author +------ + +kubosho_ diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..90f0d0d --- /dev/null +++ b/bower.json @@ -0,0 +1,26 @@ +{ + "name": "ore-no-boilerplate", + "version": "0.0.1", + "homepage": "https://github.com/kubosho/ore-no-boilerplate", + "authors": [ + "kubosho_" + ], + "description": "Boilerplate that contain styles and Karma+Mocha+power-assert for WebStorm.", + "keywords": [ + "boilerplate" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "devDependencies": { + "power-assert": "~0.8.0" + }, + "dependencies": { + "modularized-normalize-scss": "~3.0.1" + } +} diff --git a/karma.conf.js b/karma.conf.js new file mode 100644 index 0000000..ada5840 --- /dev/null +++ b/karma.conf.js @@ -0,0 +1,22 @@ +module.exports = function (config) { + config.set({ + basePath: '', + frameworks: ['mocha'], + files: [ + './bower_components/power-assert/build/power-assert.js', + './test/scripts/espower/*.js', + './src/*.js', + ], + exclude: [ + ], + preprocessors: { + }, + reporters: ['progress'], + port: 9876, + colors: true, + logLevel: config.LOG_INFO, + autoWatch: false, + browsers: ['Chrome'], + singleRun: false + }); +}; diff --git a/package.json b/package.json new file mode 100644 index 0000000..1bf5537 --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "devDependencies": { + "6to5": "^1.14.0", + "karma": "^0.12.23", + "karma-chrome-launcher": "^0.1.5", + "karma-mocha": "^0.1.9", + "mocha": "^1.21.4" + }, + "dependencies": { + "jade": "^1.7.0" + }, + "scripts": { + "setup": "npm install && bower install", + "6to5": "6to5 ./src/lib/diagram/circle.js" + }, + "private": true +} diff --git a/test/scripts/test.js b/test/scripts/test.js new file mode 100755 index 0000000..aa60a54 --- /dev/null +++ b/test/scripts/test.js @@ -0,0 +1,32 @@ +/*global describe, before, it, assert */ +describe('Sounds', function () { + describe('#add()', function () { + it('should be return 5', function () { + assert(math.add(3, 2) === 5); + }); + }); + + describe('#sub()', function () { + it('should be return 1', function () { + assert(math.sub(3, 2) === 1); + }); + }); + + describe('#multi()', function () { + it('should be return 6', function () { + assert(math.multi(3, 2) === 6); + }); + }); + + describe('#div()', function () { + it('should be return 1.5', function () { + assert(math.div(3, 2) === 1.5); + }); + }); + + describe('#remainder()', function () { + it('should be return 1', function () { + assert(math.remainder(3, 2) === 1); + }); + }); +});