Grunt plugin for node-google-apps-script
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-gaps --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-gaps');
In your project's Gruntfile, add a section named gapspull
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
gapspull: {
your_project: {
dest: "build/project",
projectId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXXX-XXX"
},
},
});
Type: String
A string with the name of the destination directory.
Type: String
Default value: '.'
A string containing the project id.
In your project's Gruntfile, add a section named gapspush
to the data object passed into grunt.initConfig()
.
There are two ways to use the gapspush
task. It can push a directory
containing a .manifest.json
by passing only a src
option. The
.manifest.json
file will be created automatically in the dest
directory
when using the gapspull
task (or using the gaps
CLI directly).
Alternatively, if you set both the src
option and the projectId
, the
project will first be fetched from Google Drive, creating the .manifest.json
file, overwritten with the contents of the src
directory, then pushed back up
to Google Drive.
grunt.initConfig({
gapspush: {
build: {
src: "build/project"
},
your_project: {
src: "src/project",
projectId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXXX-XXX"
},
},
});
Type: String
A string with the name of the destination directory.
Type: String
A string containing the project id.
(Nothing yet)
Dan Thareja's node-google-apps-script does most of the work.