godaddy / carpenterd Goto Github PK
View Code? Open in Web Editor NEWBuild and compile npm packages to run in the browser.
License: MIT License
Build and compile npm packages to run in the browser.
License: MIT License
Acceptance Criteria:
in https://github.com/godaddy/carpenterd/blob/master/lib/constructor/workers/webpack.js#L108 should be loading the version of webpack used in the package.json
of the app/package that is being built to prevent possible errors due to minor changes in webpack
If one of the assets is an empty file, carpenter will throw an exception and fail the build.
https://github.com/godaddy/carpenterd/blob/master/lib/constructor/factory.js#L443-L462
Error:
carpenter-sbjwi | {"level":"error","message":"Build 72af99d1-34f4-4dd5-acf7-d5f14f1f67fc failed {"message":"Cannot read property 'length' of undefined","stack":"TypeError: Cannot read property 'length' of undefined\n at Factory.stock (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/factory.js:460:79)\n at Function.ran (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/factory.js:293:15)\n at done (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/workers/webpack.js:38:10)\n at Walker. (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/workers/webpack.js:66:26)\n at Walker.g (events.js:260:16)\n at emitNone (events.js:67:13)\n at Walker.emit (events.js:166:7)\n at Walker._wNext (/usr/local/carpenter/node_modules/walk/lib/walk.js:277:10)\n at Walker._wNext (/usr/local/carpenter/node_modules/walk/lib/walk.js:272:17)\n at Walker._wOnEmitDone (/usr/local/carpenter/node_modules/walk/lib/walk.js:124:8)","name":"Error","event":"error","description":"Cannot read property 'length' of undefined","stacktrace":["TypeError: Cannot read property 'length' of undefined"," at Factory.stock (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/factory.js:460:79)"," at Function.ran (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/factory.js:293:15)"," at done (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/workers/webpack.js:38:10)"," at Walker. (/usr/local/carpenter/node_modules/carpenterd/lib/constructor/workers/webpack.js:66:26)"," at Walker.g (events.js:260:16)"," at emitNone (events.js:67:13)"," at Walker.emit (events.js:166:7)"," at Walker._wNext (/usr/local/carpenter/node_modules/walk/lib/walk.js:277:10)"," at Walker._wNext (/usr/local/carpenter/node_modules/walk/lib/walk.js:272:17)"," at Walker._wOnEmitDone (/usr/local/carpenter/node_modules/walk/lib/walk.js:124:8)"],"branchId":[14]}"}
The npm install
that carpenterd
does here should be done with a --production
flag passed.
Pros:
Cons:
dist-tagging latest
should mean dev
for carpenterd. It means dev
everywhere else in the system.
latest
This creates a build for
dev
latest
dist-taglatest
dist-tag for the version published in step 1.I would expect this to create a build (or rollback the build) for dev
since latest
means dev
when publishing. Instead it creates a build for prod
.
N/A
Running within AWS with latest bits as of creation date.
To support the DynamoDB migration outlined in this proposal:
Once warehouse-models
is updated & bffs
is updated
carpenterd
uses the new DynamoDB version of warehouse-models
& bffs
localstack
if necessaryA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.