grunt-mpage-copy v0.1.0
grunt-mpage-copy
A grunt plugin for mobile single page solution
Getting Started
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-mpage-copy --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-mpage-copy');
The "mcopy" task
Overview
In your project's Gruntfile, add a section named mcopy
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
mcopy: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
});
Options
options.serverDir
Type: String
options.metaFile
Type: String
options.versionMapFile
Type: String
options.withoutVersion
Type: String
Default value: false
Usage Examples
grunt.initConfig({
options: {
serverDir: 'test/server/',
metaFile: 'meta.js'
},
dev: {
expand: true,
src: [ 'test/tmp/*.js'],
dest: 'test/dest/',
rename: function(dest, src) {
return dest + src.replace(/\//g, '.');
},
options: {
withoutVersion: false,
versionMapFile: 'version.ejs'
}
}
});
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
(Nothing yet)
10 years ago