Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

feat(prod-sample): deploy module util #308

Merged
merged 10 commits into from
Sep 29, 2020
Merged

Conversation

JAdshead
Copy link
Contributor

Description

This adds a util script for deploying modules to prod-sample.

Motivation and Context

To aid testing modules running in production

How Has This Been Tested?

Locally served modules to prod-sample

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • These changes should be applied to a maintenance branch.
  • This change requires cross browser checks.
  • Performance tests should be ran against the server prior to merging.
  • This change impacts caching for client browsers.
  • This change impacts HTTP headers.
  • This change adds additional environment variable requirements for One App users.
  • I have added the Apache 2.0 license header to any new files created.

What is the Impact to Developers Using One App?

@github-actions
Copy link
Contributor

github-actions bot commented Sep 17, 2020

📊 Bundle Size Report

file name size on disk gzip
app.js 276.2KB 82.4KB
runtime.js 15KB 5.4KB
vendors.js 117.4KB 36.4KB
app~vendors.js 425.2KB 111KB
service-worker-client.js 17KB 5.2KB
legacy/app.js 291.4KB 85.6KB
legacy/runtime.js 15KB 5.4KB
legacy/vendors.js 172.9KB 47.1KB
legacy/app~vendors.js 439.9KB 114.1KB
legacy/service-worker-client.js 17.5KB 5.4KB

Generated by 🚫 dangerJS against a1b1482

@@ -29,6 +29,7 @@
"test:lockfile": "lockfile-lint -p package-lock.json -t npm -a npm -o https: -c -i",
"test:lint": "eslint --ext js,jsx,md,snap .",
"start": "node lib/server/index.js",
"start:inspect": "node --inspect --expose-gc lib/server/index.js",
"test:unit": "jest --testPathIgnorePatterns integration --config jest.config.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No convenient npm script for this functionality?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gives us that npm run start:inspect ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm run serve:prod-sample-module ../some-test-module?

await fs.ensureDir(pathToOriginModuleStatics);
await fs.copy(pathToModuleBuildDir, pathToOriginModuleStatics, { overwrite: true });
return pathToOriginModuleStatics;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this update while the local production server is running?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it will

moduleName,
moduleVersion,
envVars: sanitizedEnvVars,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed to override the development build created after install?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JAdshead and others added 2 commits September 17, 2020 13:37
Co-authored-by: Mike Tobia <Francois-Esquire@users.noreply.github.com>
@JAdshead JAdshead merged commit 58b81cc into master Sep 29, 2020
@JAdshead JAdshead deleted the feat/prod-sample-utils branch September 29, 2020 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants