
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@twreporter/static-fe-deployer
Advanced tools
A tool for deploying `twreporter/static-fe-boilerplate` projects to GCS
A tool for deploying twreporter/static-fe-boilerplate projects to GCS
dist folder contains .html and .js files bundled by Webpackstatic folder contains any other static filesproject-directory
├── dist
├── static
IMPORTANT
The name of <project-directory> will be the basename of remote root folder. For example:
local:
awsome-infographic
├── dist
├── static
remote will be:
<gcs-project-id>
├─ <gcs-bucket-name>
├─ <root-prefix>-awsome-infographic-<root-postfix>
├─ dist
├─ static
<gcs-project-id>, <gcs-bucket-name>, <root-prefix>, and <root-postfix> are be set in fede-config.json. (See below)
# npm
npm i -g @twreporter/static-fe-deployer
# yarn
yarn global add @twreporter/static-fe-deployer
Follow the instruction to setup authetication: Google Cloud Platform Documentation > Authentication > Getting Started with Authentication
Make sure you have already cd to the project's root folder you want to deploy
fede build-config --project-id <your-gcs-project-id> --bucket-name <your-gcs-bucket-name>
It will create a fede-config.json at your project directory. You can edit it manually after it had been built.
Usage: fede [options] [command]
Options:
-h, --help output usage information
Commands:
deploy [options] [files-or-subfolder] deploy files to remote device
archive [options] [subfolder-type] set remote files cache-control
build-config [options] build `fede-config.json` at current directory
# deploy all files to staging
fede deploy
# deploy `dist` to staging
fede deploy dist
# deploy custom files to production (only allow files under `static` or `dist`)
fede deploy "static/maps/*" --production
# deploy static to production with custom cache time
fede deploy static --production --cache-time 600
# deploy all files to staging with cache-control = 'no-cache, no-store, must-revalidate'
fede deploy --cache-time 0
# archive all files in staging `dist` and `static`
fede archive
# archive staging `dist`
fede archive dist
# archive production `static`
fede archive static -p
# set production static metadata with custom cache time
fede archive static --production --cache-time 600
# disable staging cache (cache-control = 'no-cache, no-store, must-revalidate')
fede archive --cache-time 0
cache-control valuepublic, max-age=60public, max-age=600public, max-age=604800 (7 days)npm run dev
npm link will be broken if you modify the binary entry file. So we make npm run dev run the npm link right after babel compiled the src/index.js into bin/index.js.
After npm link, it complies other files and watches changes of these files .
If you update the src/index.js, you will need to restart this process with npm run dev again.
npm test
src/utils and src/actionsFAQs
A tool for deploying `twreporter/static-fe-boilerplate` projects to GCS
We found that @twreporter/static-fe-deployer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.