Fixing up README and getting ready for initial publish

This commit is contained in:
Jonathan Putney
2020-01-16 13:03:45 -05:00
parent 4ec7338406
commit 3c6e460d44
5 changed files with 248 additions and 12 deletions

View File

@@ -1,5 +1,17 @@
module.exports = function(grunt) {
grunt.initConfig({
mochaTest: {
test: {
options: {
reporter: 'list',
require: '@babel/register',
noFail: false,
recursive: true,
captureFile: false,
},
src: ['test/**/*.spec.js'],
},
},
browserify: {
development: {
src: [
@@ -42,7 +54,8 @@ module.exports = function(grunt) {
],
],
plugin: [
['minifyify',
[
'minifyify',
{
map: 'scorm-again.js.map',
output: './dist/scorm-again.js.map',
@@ -55,6 +68,9 @@ module.exports = function(grunt) {
});
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.registerTask('test', 'mochaTest');
grunt.registerTask('default',
['browserify:development', 'browserify:production']);