Created
February 24, 2014 14:43
-
-
Save gong023/9189579 to your computer and use it in GitHub Desktop.
grunt_contrib_jasmine
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
diff --git a/.gitignore b/.gitignore | |
index 509eb00..99f37ae 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -1 +1,2 @@ | |
js/libs/ | |
+node_modules/ | |
diff --git a/Gruntfile.js b/Gruntfile.js | |
new file mode 100644 | |
index 0000000..ab4b14e | |
--- /dev/null | |
+++ b/Gruntfile.js | |
@@ -0,0 +1,31 @@ | |
+module.exports = function(grunt) { | |
+ grunt.initConfig({ | |
+ jasmine: { | |
+ src: 'js/app/**/*.js', | |
+ options: { | |
+ specs: 'js/spec/**/*_spec.js', | |
+ helpers: 'js/spec/app/SpecHelper.js', | |
+ template: require('grunt-template-jasmine-requirejs'), | |
+ templateOptions: { | |
+ requireConfig: { | |
+ baseUrl: "js/app/", | |
+ paths: { | |
+ jquery: '../libs/jquery/jquery-min', | |
+ underscore: '../libs/underscore/underscore-min', | |
+ backbone: '../libs/backbone/backbone-min' | |
+ }, | |
+ shim: { | |
+ 'backbone': { | |
+ deps: ['underscore', 'jquery'], | |
+ exports: 'Backbone' | |
+ } | |
+ } | |
+ } | |
+ } | |
+ } | |
+ } | |
+ }); | |
+ | |
+ grunt.loadNpmTasks('grunt-contrib-jasmine'); | |
+ grunt.registerTask('default', ['jasmine']); | |
+}; | |
diff --git a/package.json b/package.json | |
new file mode 100644 | |
index 0000000..0c9d433 | |
--- /dev/null | |
+++ b/package.json | |
@@ -0,0 +1,24 @@ | |
+{ | |
+ "name": "nicoaudio", | |
+ "version": "0.0.0", | |
+ "description": "chrome extension for listen nicovideo.jp", | |
+ "main": "index.js", | |
+ "scripts": { | |
+ "test": "grunt jasmine" | |
+ }, | |
+ "repository": { | |
+ "type": "git", | |
+ "url": "git://github.com/gong023/nicoplay-for-chrome.git" | |
+ }, | |
+ "author": "gong023", | |
+ "license": "BSD-2-Clause", | |
+ "bugs": { | |
+ "url": "https://github.com/gong023/nicoplay-for-chrome/issues" | |
+ }, | |
+ "homepage": "https://github.com/gong023/nicoplay-for-chrome", | |
+ "devDependencies": { | |
+ "grunt": "~0.4.2", | |
+ "grunt-contrib-jasmine": "~0.5.2", | |
+ "grunt-template-jasmine-requirejs": "~0.1.9" | |
+ } | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment