caviarjs / caviar Goto Github PK
View Code? Open in Web Editor NEWThe skeleton of frameworks for micro frontends
License: Other
The skeleton of frameworks for micro frontends
License: Other
inspired by execa
.
So that we do not need caviar.utils.monitor
TypeError: Cannot read property 'hasErrors' of null
at HotReloader.getCompilationErrors (/Users/zhangzeqing/Develop/binance/future-ui/node_modules/next/dist/server/hot-reloader.js:306:24)
at processTicksAndRejections (internal/process/task_queues.js:82:5)
at async DevServer.getCompilationError (/Users/zhangzeqing/Develop/binance/future-ui/node_modules/next/dist/server/next-dev-server.js:171:24)
at async DevServer.renderToHTML (/Users/zhangzeqing/Develop/binance/future-ui/node_modules/next/dist/server/next-dev-server.js:120:32)
Custom loader
Dependencies
next-server
as a dependency?@babel/runtime-corejs2
Error {
code: 'MODULE_NOT_FOUND',
message: 'Cannot find module \'/Users/kael/Codes/node/roe-mock/test/fixtures/roe.config\'',
}
/Users/kael/Codes/node/roe-mock/node_modules/dotenv/lib/main.js:41
Rejected promise returned by test. Reason:
TypeError {
message: 'Cannot read property \'toString\' of undefined',
}
config.prop(key)
Thinking:
how to get the best use of docker cache layers, so that caviar also has layers
how to allow users to define their custom lifecycle flow
how a plugin to create sub hooks
ParentPlugin.getHooks(lifecycle).someHook.tap('SubPlugin', () => {
// do something
})
And provide some util tools for plugins to create sub hooks
how a block to define context variables which can be used by another block
the execution sequence for chained config and config hooks in different layers
Debugging
I got Error: Can't set headers after they are sent.
while use
res.writeHead(302, {Location: url});
in getInitialProps
method
so I changed the usage to
res.statusCode = 302;
res.setHeader('Location', url);
and it works well
So that a block will not run if a phase is not supported by the block
which blocks #20
process.env
publicRuntimeConfig
of next/config
next.config.js
EnvironmentPlugin
based on .env
ioredis
instead of cacheman
and cacheman-redis
redis.json
ssrRoutes
) -> middleware or cache pluginnext.renderToHTML
: egg controller -> confignext-server
as a dependency?@babel/runtime-corejs2
resolve.alias
webpack.resolve.alias
yo
for nowA 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.