Socket
Socket
Sign inDemoInstall

zengenti-buildstartup-package

Package Overview
Dependencies
4
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zengenti-buildstartup-package

Post-build scripts to generate the startup scripts for any configured environments


Version published
Weekly downloads
724
increased by20.67%
Maintainers
1
Install size
209 kB
Created
Weekly downloads
 

Readme

Source

Zengenti Build Startup Package

To use

npm i --save-dev zengenti-buildstartup-package

Then in your webpack.config.prod.js include a plugin to execute some post-build-scripts:

const WebpackShellPlugin = require('webpack-shell-plugin');

  plugins: [
    new WebpackShellPlugin({
      onBuildEnd: [
        'echo "Executing Webpack post build scripts..."',
        'node node_modules/zengenti-buildstartup-package',
      ],
    }),
  ]

Run your build as normal, you should see additional output in your build logs and scripts for each environment defined in .env* files in your project

/*  buildStartup.js */
Found environment in: ".env"
-- Created "dist/static/startup.js"
-- Created "dist/server/start.js"
-- Created "dist/server/start.council-cms.js"
Found environment in: ".env.cambridgeshire"
-- Created "dist/server/start.cambridgeshire.council-cms.js"
Found environment in: ".env.peterborough"
-- Created "dist/server/start.peterborough.council-cms.js"
Deploying server start scripts
buildStartup.js completed successfully

Keywords

FAQs

Last updated on 27 Apr 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc