This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just type `npm install && grunt` and the code will get: - linted - built - minimized - unittested (in Chrome)
- Loading branch information
1 parent
5e5848f
commit 2a8abe2
Showing
14 changed files
with
610 additions
and
2,755 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = function(grunt) { | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
jshint: { | ||
all: ['Gruntfile.js', 'lib/*.js'] | ||
}, | ||
|
||
concat: { | ||
dist: { | ||
src: [ | ||
'lib/jose-jwe-core.js', | ||
'lib/jose-jwe-utils.js', | ||
'lib/jose-jwe-encrypt.js' | ||
], | ||
dest: 'dist/jose-jwe.js' | ||
} | ||
}, | ||
|
||
uglify: { | ||
dist: { | ||
src: 'dist/jose-jwe.js', | ||
dest: 'dist/jose-jwe.min.js' | ||
} | ||
}, | ||
|
||
karma: { | ||
continuous: { | ||
options: { | ||
frameworks: ['qunit'], | ||
files: [ | ||
{pattern: 'dist/jose-jwe.js', watching: false, included: false}, | ||
{pattern: 'test/qunit-promises.js', watching: false, included: false}, | ||
'test/jose-jwe-test.html' | ||
], | ||
autoWatch: true, | ||
browsers: ['Chrome'], | ||
singleRun: true | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-karma'); | ||
|
||
grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'karma']); | ||
}; |
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
Oops, something went wrong.