@dealmore/terraform-next-build
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -35,3 +35,3 @@ "use strict"; | ||
cwd: basePath, | ||
ignore: ['node_modules/**/*', '.next/**/*', '.next-tf/**/*'], | ||
ignore: ['node_modules/**', '.next/**', '.next-tf/**'], | ||
}); | ||
@@ -67,2 +67,3 @@ } | ||
lambdas: {}, | ||
staticRoutes: [], | ||
routes: props.routes, | ||
@@ -83,2 +84,9 @@ buildId: props.buildId, | ||
} | ||
config.staticRoutes = Object.keys(props.staticWebsiteFiles) | ||
.filter( | ||
// Remove paths that are not routed from the proxy | ||
// - _next/static/ -> Is routed directly by CloudFront | ||
(fileName) => !fileName.startsWith('_next/static/')) | ||
// Add leading / to the route | ||
.map((path) => `/${path}`); | ||
const staticFilesArchive = writeStaticWebsiteFiles(path.join(props.outputDir, config.staticFilesArchive), props.staticWebsiteFiles); | ||
@@ -85,0 +93,0 @@ // Write config.json |
@@ -26,4 +26,3 @@ "use strict"; | ||
const yargs_1 = __importDefault(require("yargs")); | ||
yargs_1.default | ||
.command('build', 'Build the next.js project', (yargs_) => { | ||
yargs_1.default.command('build', 'Build the next.js project', (yargs_) => { | ||
return yargs_ | ||
@@ -45,5 +44,2 @@ .option('skipDownload', { | ||
}); | ||
}) | ||
.command('sync <bucket>', 'Syncs the static files with S3', () => { }, async ({ bucket }) => { | ||
(await Promise.resolve().then(() => __importStar(require('./commands/sync')))).default({ Bucket: bucket }); | ||
}).argv; |
{ | ||
"name": "@dealmore/terraform-next-build", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "CLI build tool for AWS Next.js Terraform module", | ||
"homepage": "https://github.com/dealmore/terraform-aws-next-js", | ||
"main": "index.js", | ||
@@ -25,3 +27,2 @@ "license": "Apache-2.0", | ||
"archiver": "^4.0.1", | ||
"aws-sdk": "^2.706.0", | ||
"fs-extra": "^9.0.1", | ||
@@ -28,0 +29,0 @@ "glob": "^7.1.6", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
9
1
1
21
2
20759
207
+ Addedieee754@1.2.1(transitive)
- Removedaws-sdk@^2.706.0
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedaws-sdk@2.1692.0(transitive)
- Removedbuffer@4.9.2(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedevents@1.1.1(transitive)
- Removedfor-each@0.3.4(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedieee754@1.1.13(transitive)
- Removedis-arguments@1.2.0(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-generator-function@1.1.0(transitive)
- Removedis-regex@1.2.1(transitive)
- Removedis-typed-array@1.1.15(transitive)
- Removedjmespath@0.16.0(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedpunycode@1.3.2(transitive)
- Removedquerystring@0.2.0(transitive)
- Removedsafe-regex-test@1.1.0(transitive)
- Removedsax@1.2.1(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedurl@0.10.3(transitive)
- Removedutil@0.12.5(transitive)
- Removeduuid@8.0.0(transitive)
- Removedwhich-typed-array@1.1.18(transitive)
- Removedxml2js@0.6.2(transitive)
- Removedxmlbuilder@11.0.1(transitive)