Skip to content

Commit

Permalink
Initial scripts/utilities for managing solutions (googleworkspace#13)
Browse files Browse the repository at this point in the history
* Initial scripts/utilities for managing solutions

* Add deploy script for event session signup, minor project tweaks to make consistent with others.

* Add manifest file for events signup solution

* Update paths for eslint, try well-known location if GOOGLE_APPLICATION_CREDENTIALS not set
  • Loading branch information
sqrrrl authored and Eric Koleda committed Jul 2, 2019
1 parent 17dacaa commit 17620ee
Show file tree
Hide file tree
Showing 27 changed files with 3,351 additions and 606 deletions.
15 changes: 15 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pylint = "*"

[packages]
google-api-python-client = "==1.7.9"
google-auth-httplib2 = "==0.0.3"
google-auth-oauthlib = "==0.4.0"

[requires]
python_version = "3.7"
12 changes: 12 additions & 0 deletions configs/appsscript.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "google",
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"no-var": "off",
"no-unused-vars": "off",
"max-len": ["error", {"code": 100, "ignoreUrls": true}]
}
}

11 changes: 2 additions & 9 deletions event-session-signup/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
{
"extends": "google",
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"no-var": "off",
"no-unused-vars": "off",
"max-len": ["error", {"code": 100, "ignoreUrls": true}]
}
"extends": "../configs/appsscript.eslintrc.json"
}
9 changes: 0 additions & 9 deletions event-session-signup/data/conference-setup.csv

This file was deleted.

Binary file added event-session-signup/data/conference-setup.xlsx
Binary file not shown.
30 changes: 30 additions & 0 deletions event-session-signup/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

# Copyright 2019 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

source "$(dirname $0)/../scripts/utils.sh"

IMPORT_FILE="${PROJECT_DIR}/data/conference-setup.xlsx"
DOC_TITLE="Monster MashCon"
SRC_DIR="src"

cd $PROJECT_DIR

if ! [ -f .clasp.json ]; then
PARENT_ID=$(import_document "${IMPORT_FILE}" "${DOC_TITLE}")
create_bound_script "${SRC_DIR}" "${DOC_TITLE}" "${PARENT_ID}"
else
update_script
fi
Loading

0 comments on commit 17620ee

Please sign in to comment.