Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@softchef/cdk-vue
Advanced tools
AWS CDK with VueJs package will auto deploy website with VueJs to S3 bucket and CloudFront distribution.
AWS CDK with VueJs package will auto deploy website with VueJs to S3 bucket and CloudFront distribution.
VueJs will build on local environment or docker container, it's based with Vue-CLI project. Then use S3-Deployment to upload to specify S3 bucket.
If you have many resource arguments will pass to frontend, the config property will generate config.js to specify S3 bucket. It's a VueJs extendsion and archive config in Vue.$config operation.
npm install @softchef/cdk-vue
// or
yarn add @softchef/cdk-vue
import { VueDeployment } from '@softchef/cdk-vue'
// In your stack
// Basic deployment
const website = new VueDeployment(this, 'Website', {
source: `${CLIENTS_PATH}`,
config: {
apiId: articleApi.restApiId, // RestApi
userPoolId: userPool.userPoolId, // UserPool
foo: {
bar: {
value: 123 // Customize config
}
}
}
})
{
source: string;
// Use target bucket or create new bucket(if not specify)
bucket?: s3.Bucket;
// Specify S3 bucket name, if not specify will random generate
bucketName?: string;
// S3 bucket prefix, ex: "/website"
websiteDirectoryPrefix?: string;
// CloudFront distribution defaultRootObject, default is "index.html"
indexHtml?: string;
// CloudFront will enable/disable Ipv6 options
enableIpv6?: boolean;
// Pass env variables to Vue-CLI bundling, you can get its in process.env(frontend)
environment?: { [ key: string ]: string };
// Pass bundling arguments to Vue-CLI
bundlingArguments?: string;
// Force run Vue-CLI build in local
runsLocally?: boolean;
// Force use docker to bundling
forceDockerBundling?: boolean;
// Specify the "config.js" in your web bucket key, default is "/config.js"
configJsKey?: string;
// Config object will upload to web bucket(config.js)
config?: { [key: string]: any };
}
// In public/index.html
<script type="text/javascript" src="/config.js">
// In main.js or app.js
Vue.use(window.CloudDeploymentConfig)
// In *.vue
export default {
mounted () {
this.$config.get('apiId')
this.$config.get('foo.bar.value') // use "." to get value recursively
}
}
FAQs
Auto deploy website with VueJs to S3 bucket and CloudFront distribution.
The npm package @softchef/cdk-vue receives a total of 1 weekly downloads. As such, @softchef/cdk-vue popularity was classified as not popular.
We found that @softchef/cdk-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.