diff options
| author | 2021-02-03 19:17:50 -0500 | |
|---|---|---|
| committer | 2021-02-03 19:17:50 -0500 | |
| commit | 475d074fd74425efbe783fad08f97f2df0c4909f (patch) | |
| tree | 2acdae53999b3c74b716efa4edb5b40311fa356a /npm_assets/node_modules/html5shiv/Gruntfile.js | |
| parent | cd502d52787f666fff3254d7d7e7578930c813c2 (diff) | |
| parent | 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (diff) | |
Update upstream source from tag 'upstream/8.1.2'
Update to upstream version '8.1.2'
with Debian dir e5e966a9e6010ef70618dc9a61558fa4db35aceb
Diffstat (limited to 'npm_assets/node_modules/html5shiv/Gruntfile.js')
| -rw-r--r-- | npm_assets/node_modules/html5shiv/Gruntfile.js | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/npm_assets/node_modules/html5shiv/Gruntfile.js b/npm_assets/node_modules/html5shiv/Gruntfile.js new file mode 100644 index 0000000..1218a46 --- /dev/null +++ b/npm_assets/node_modules/html5shiv/Gruntfile.js @@ -0,0 +1,61 @@ +/*global module:false*/ +module.exports = function(grunt){ + + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + bower: grunt.file.readJSON('bower.json'), + copy: { + demo: { + files: [ + {expand: true, src: ['src/*'], dest: 'dist/', filter: 'isFile', flatten: true} + ] + } + }, + + uglify: { + options: { + beautify: { + ascii_only : true + }, + preserveComments: 'some' + }, + html5shiv: { + files: [{ + expand: true, // Enable dynamic expansion. + cwd: 'src/', // Src matches are relative to this path. + src: ['**/*.js'], // Actual pattern(s) to match. + dest: 'dist/', // Destination path prefix. + ext: '.min.js' + }] + } + }, + watch: { + js: { + files: ['src/**/*.js'], + tasks: ['copy', 'uglify', 'bytesize'] + } + }, + bytesize: { + all: { + src: [ + 'dist/**.min.js' + ] + } + } + }); + + + // Default task. + + + + grunt.loadNpmTasks('grunt-contrib-copy'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-bytesize'); + + grunt.registerTask('default', ['copy', 'uglify', 'bytesize', 'watch']); + +}; |
