3.0.1 • Published 2 years ago

gcloud-site-dir v3.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
2 years ago

gcloud-site-dir

To install: npm install gcloud-site-dir

To use in Node.js

var gcloudSiteDir = require( 'gcloud-site-dir' )
var options = {
  directory: 'build',
  siteName: archive.risd.systems,
  keyFile: ~/configuration/gcloud.json,
}
gcloudSiteDir( options, function ( error ) {
  if ( error ) throw error;
} )

To use at the command line: gcloud-site-dir build --siteName=archive.risd.systems --gcloud=~/configuration/gcloud.json

Node Options

directory the directory to upload. Required.

siteName the name of the bucket to create and configure as a site on Google Cloud Storage. Required.

keyFile the Google Cloud Storage JSON file for the Google Cloud Project. Required.

directoryPrefix the prefix to prepend to the path of each file. Optional.

gitSuffix if true, will suffix the subdomain siteName with the current git branch.

gitSubdomain if true, will prefix the siteName with a subdomain of the current git branch

CLI Options

Testing

npm test. Testing is done via tape & configured with dotenv-safe. The .env.test.example file should be duplicated and modified as .env.test. This will get used to run the tests.

3.0.1

2 years ago

3.0.0

3 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.1.3

4 years ago

2.0.0

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago