Skip to content

Commit

Permalink
Moving directories to make initial setup easier
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hotelling authored and georgeh committed Mar 17, 2017
1 parent 5a201f5 commit aaa22d4
Show file tree
Hide file tree
Showing 27 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,3 +1,3 @@
node_modules
gapps.config.json*
dist/Code.js
src/Code.js
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,7 +13,7 @@ This process needs to be performed once:
[Node Google Apps Quickstart](https://github.com/danthareja/node-google-apps-script/blob/master/README.md#quickstart) - "Independent Developer Console Project" is recommended.
1. Download the JSON oAuth details
1. `./node_modules/bin/gapps auth <PATH-TO-JSON-OAUTH-FILE>` and follow instructions
1. Edit the generated `gapps.config.json` file and change the value for `path` to be `dist`
1. Edit the generated `gapps.config.json` file and change the value for `path` to be `src`
1. Create a new apps script here: https://script.google.com
1. Get the script ID from the URL (everything between the `/d/` and `/edit` - `script.google.com/a/google.com/d/SCRIPT_ID_HERE/edit`)
1. `./node_modules/bin/gapps init <SCRIPT_ID>`
Expand All @@ -31,7 +31,7 @@ Everything is now setup.

`npm run deploy`

This will use node-google-apps-script to upload the `dist` directory to the
This will use node-google-apps-script to upload the `src` directory to the
add-on's script editor.

# Testing
Expand Down
2 changes: 1 addition & 1 deletion gapps.config.json-sample
@@ -1,4 +1,4 @@
{
"path": "dist",
"path": "src",
"fileId": "put your id from script.google.com here"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions webpack.config.js
Expand Up @@ -4,11 +4,11 @@ var GasPlugin = require( 'gas-webpack-plugin' ),

module.exports = [
{
entry: './src/code.js',
entry: './server/code.js',
output: {
libraryTarget: 'this',
filename: 'Code.js',
path: './dist'
path: './src'
},
module: {
loaders: [ {
Expand All @@ -17,7 +17,7 @@ module.exports = [
loader: 'babel-loader'
}],
resolveLoader: {
modulesDirectories: [ "src" ]
modulesDirectories: [ "server" ]
}
},
plugins: [
Expand All @@ -28,7 +28,7 @@ module.exports = [
entry: './client/index.js',
output: {
filename: 'javascript.html',
path: './dist'
path: './src'
},
plugins: [
new WrapperPlugin( {
Expand Down

0 comments on commit aaa22d4

Please sign in to comment.