Socket
Book a DemoInstallSign in
Socket

zengenti-buildstartup-package

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

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

latest
npmnpm
Version
0.0.18
Version published
Maintainers
1
Created
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

zengenti

FAQs

Package last updated on 27 Apr 2023

Did you know?

Socket

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