UNPKG

gs1-barcode-parser

Version:

The barcode parser is a library for handling the contents of GS1 barcodes.

35 lines (31 loc) 986 B
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { all: ['src/**/*.js', 'spec/**/*.js'], options: { esnext: true } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, dist: { src: 'src/BarcodeParser.js', dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.min.js' } }, jasmine: { src: 'src/**/*.js', options: { specs: 'spec/**/*Spec.js' } } }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-jasmine'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.registerTask('default', ['jshint', 'jasmine', 'uglify']); grunt.registerTask('test', ['jshint', 'jasmine']); };