Skip to content

Commit

Permalink
feat: Add main export for repo as module. Fixes #65.
Browse files Browse the repository at this point in the history
  • Loading branch information
grant committed Mar 8, 2019
1 parent b22182e commit be8081c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* Exports all quickstarts.
*/
module.exports = {
quickstart: {
// Format {service}_{version}, like the Node client.
// @see https://github.com/googleapis/google-api-nodejs-client/tree/master/src/apis
admin_directory_v1: require('./adminSDK/directory'),
admin_reports_v1: require('./adminSDK/reports'),
reseller_v1: require('./adminSDK/reseller'),
script_v1: require('./apps-script/quickstart'),
calendar_v3: require('./calendar/quickstart'),
classroom_v1: require('./classroom/quickstart'),
docs_v1: require('./docs/quickstart'),
drive_v3: require('./drive/quickstart'),
appsactivity_v1: require('./drive/activity'),
appsactivity_v2: require('./drive/activity-v2'),
gmail_v1: require('./gmail/quickstart'),
people_v1: require('./people/quickstart'),
sheets_v4: require('./sheets/quickstart'),
slides_v1: require('./slides/quickstart'),
tasks_v1: require('./tasks/quickstart'),
},
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gsuite-node-samples",
"name": "@gsuite/samples",
"version": "1.0.0",
"description": "Node.js samples for [G Suite API](https://developers.google.com/gsuite/) docs.",
"license": "MIT",
Expand All @@ -22,6 +22,7 @@
"scripts": {
"lint": "eslint **/*.js"
},
"main": ".",
"eslintIgnore": [
"getFoldersUnderRoot.js",
"**/node_modules/**"
Expand Down

0 comments on commit be8081c

Please sign in to comment.