Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
085e33ce
authored
2012-08-04 16:11:00 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Include grunt-jasmine-task to run specs as part of the build process.
1 parent
29f7ffa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
grunt.js
package.json
grunt.js
View file @
085e33c
...
...
@@ -8,6 +8,9 @@ module.exports = function(grunt) {
'// author: <%= pkg.author %>\n'
+
'// license: <%= pkg.licenses[0].type %>'
},
jasmine
:
{
all
:
[
'spec/index.html'
]
},
lint
:
{
files
:
[
'grunt.js'
,
'lib/**/*.js'
,
'spec/**/*.js'
]
},
...
...
@@ -19,11 +22,11 @@ module.exports = function(grunt) {
},
watch
:
{
files
:
'src/rivets.coffee'
,
tasks
:
'build'
tasks
:
'build
spec
'
},
});
grunt
.
registerTask
(
'default'
,
'watch
'
);
grunt
.
loadNpmTasks
(
'grunt-jasmine-task
'
);
grunt
.
registerTask
(
'compile'
,
'Compiles CoffeeScript source into JavaScript.'
,
function
(){
var
coffee
=
require
(
'coffee-script'
);
...
...
@@ -32,5 +35,7 @@ module.exports = function(grunt) {
if
(
js
)
grunt
.
file
.
write
(
'lib/rivets.js'
,
banner
+
js
);
});
grunt
.
registerTask
(
'default'
,
'watch'
);
grunt
.
registerTask
(
'spec'
,
'jasmine'
);
grunt
.
registerTask
(
'build'
,
'compile min'
);
};
...
...
package.json
View file @
085e33c
...
...
@@ -15,6 +15,7 @@
},
"devDependencies"
:
{
"grunt"
:
"0.3.x"
,
"grunt-jasmine-task"
:
"0.2.x"
,
"coffee-script"
:
"1.3.x"
}
}
...
...
Please
register
or
sign in
to post a comment