0.0.18 • Published 1 year ago

zengenti-buildstartup-package v0.0.18

Weekly downloads
181
License
ISC
Repository
gitlab
Last release
1 year ago

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
0.0.18

1 year ago

0.0.17

2 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago