{"_id":"@byac/grunt-google-cloud","name":"@byac/grunt-google-cloud","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byac/grunt-google-cloud","description":"A Grunt plugin which acts as a wrapper for google-cloud.","version":"0.1.0","devDependencies":{"grunt":"^1.0.1","grunt-eslint":"^24.0.0"},"scripts":{"deploy":"npm install && npm publish --access public"},"keywords":["gruntplugin","google","google cloud storage","gcs"],"dependencies":{"@google-cloud/storage":"^6.4.1","async":"^3.2.4","deepmerge":"^4.2.2","fast-crc32c":"^2.0.0","mime-types":"^2.1.35"},"_id":"@byac/grunt-google-cloud@0.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-iWUmxXK7Q5cLPLcXVyUApnLsQqQI18jcROhPRVdpr3Pol9EbgfGDVrDcwXyelplYKVyJf8p5Z1hePsxQYmsiKA==","shasum":"48551d5fdbed8b0802ea4fa00536f8a96ddd1b39","tarball":"https://registry.npmjs.org/@byac/grunt-google-cloud/-/grunt-google-cloud-0.1.0.tgz","fileCount":8,"unpackedSize":15953,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5oOC+znqjeAP5T+F4xzpqBiJZGf4EUTFr72wO7w1vDwIgZWx0Cc+vT0WOR/OpPdlxMDSpqn6RvK1eaZF/OU458JE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjA3DRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVrw/9H+UAP7ii+maiQfsJwXaMGj60NSL0bExwOvDmTfV355PLlbPF\r\nhXIo3iVXiGf6/Ay3O7Dzhy/JgDse6OTo3gFAfLdErTeWEHxQ22Uiy0qKX4ps\r\n9tdXX2r8DWYEq/XNBikJcd9xvGgapNU5/Jrtnp+CVlay0gFHDEDfE6QwdMUm\r\nuHEoiaeqr2Cvqq/xJI7ArxvPxH0G3Z2/hePNGPGTBNhX6NlSYzMQDktfyvTh\r\nd6MbK0CW0/gB+0kaGnChi6aQKhb8zI22KgIqQQLZcLNCYAXhOFH1d4y7Az9x\r\n67kLg+LCmp5Iq+ARQzt2FNVLJ6aKP8tEloeTabrn+jwTqTJOsRizFh4dCMX7\r\nPiVxdVeBRHYnivcDzmYWgu5IDAeAF9Dd45LOqWlmIDFq8og3UW+YalrYHtzO\r\ngq2uADB+D+0kLrMi876HsYArR1vGFCShhfeEs5201If7BkRbWmvz1ug3XZvt\r\nvqVZLKVq89Jt+tWecz9nhsgmcq1t8uEc8rTOptA3sCIqAtyur/QVZ7P0lOJF\r\nVQegNLrGRQgL6HD/+8HelzNL7iuvpHUiB7W7iLgWTbM0/Kcb2V6iWSrw9SpM\r\nLKYwh9FaJBp6xhr1TtFR7XQaL93xrGg3yBAWtrqyVIwf8xQ0uJPmFgQRAI4l\r\nqoDJ1iAefP+cuGvzRVQ53IShL3o1yw0Z5Fw=\r\n=kuvp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gboyraz","email":"gultekinboyraz@gmail.com"},"directories":{},"maintainers":[{"name":"gboyraz","email":"gultekinboyraz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-google-cloud_0.1.0_1661169873293_0.24134167141112095"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-22T12:04:33.210Z","0.1.0":"2022-08-22T12:04:33.462Z","modified":"2022-08-22T12:04:33.630Z"},"maintainers":[{"name":"gboyraz","email":"gultekinboyraz@gmail.com"}],"description":"A Grunt plugin which acts as a wrapper for google-cloud.","keywords":["gruntplugin","google","google cloud storage","gcs"],"readme":"# grunt-google-cloud\n\n> A Grunt plugin which acts as a wrapper for [google-cloud](https://github.com/GoogleCloudPlatform/google-cloud-node).\n\n## Getting Started\nThis plugin requires Grunt `^1.0.1`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-google-cloud --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled as so inside your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-google-cloud');\n```\n\n## Supported Services\n\nThe first version of this plugin current only supports [Google Cloud Storage](#google-cloud-storage).\n\n## Google Cloud Storage\n\nUploads files to the specified bucket.\n\n### Usage\nIn your project's Gruntfile, add a section named `gcs` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  gcs: {\n    options: {\n      keyFilename: 'googlecloud.json',\n      project: 'my-project-id',\n      bucket: 'my-bucket-name',\n      gzip: true,\n      headers: {\n        cacheControl: 'public, max-age=600'\n      },\n      metadata: {\n        'surrogate-key': 'gcs'\n      }\n    },\n    dist: {\n      cwd: 'dist',\n      src: '**'\n    },\n  },\n});\n```\n\n### Authentication\n\nAuthentication is provided by one of three methods. You can choose to provide either the path to your key file, the contents of your key file, or the `client_email` and `private_key` from within your key file. Please only use one of the three.\n\n#### `options.keyFilename` (String)\n\nThe path to your key file. [More information on key files](https://github.com/GoogleCloudPlatform/google-cloud-node#authentication).\n\n#### `options.credentials` (Object)\n\nThe contents of your key file. E.g.\n\n```js\noptions: {\n  credentials: grunt.file.readJSON('credentials.json'),`\n}\n```\n\n#### `options.clientEmail` (String)\n\nThe `client_email` key from your key file.\n\n#### `options.privateKey` (String)\n\nThe `private_key` key from your key file.\n\n### Options\n\n#### `options.project` (String)\n\nThe id of your project. Required.\n\n#### `options.bucket` (String)\n\nThe name of your bucket. Required.\n\n#### `options.gzip` (Boolean)\n\nAutomatically gzip the file. Default `true`.\n\n#### `options.headers` (Object)\n\nAn object containing any of the following keys: `cacheControl`, `contentDisposition`, `contentEncoding` or `contentLanguage`. Default `{}`.\n\n#### `options.metadata` (Object)\n\nAn object containing additional metadata to set. Default `{}`.\n\n#### `options.concurrent` (Integer)\n\nConcurrent uploads to run. Default `20`.\n\n#### `options.resumable` (Boolean)\n\nDefines if uploads should be resumable or not. Default `true`.\n\n## Contributing\nIn 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](http://gruntjs.com/).\n\nTo aid in development, create a file named `local-options.json` with the following contents:\n\n```json\n{\n  \"project\": \"\",\n  \"bucket\": \"\",\n  \"keyFilename\": \"\",\n  \"testFiles\": \"\"\n}\n```\nThis file will be read by Grunt and not be tracked by Git.\n","readmeFilename":"README.md"}