I'm Michal Kvasničák a full stack engineer from 🇸🇰. I ❤️ React, GraphQL, Node.js, Typescript...
I know this README is boring, what'd you like to know? Ask me anything!
Quickly bootstrap universal javascript application. No configuration needed.
License: MIT License
Because we are using /static/(js|css|media)/**
so we should only point to client bundle directory and make server side middleware for serving static files resolve whole path to assets.
This should change babel-preset-env to support something newer than IE9 and uglify targets.
Sometimes it seems that spust
can't manage previous server instance (probably it loses a reference to child process). In this case just keep all references and kill all server process.
For example spust
will fail starting a new server with message that another process is listening on given port.
Sometimes when you send SIGINT
, SIGTERM
to the process, it can "postpone" termination because of a reference that keeps process alive. We should kill the process if it isn't terminated in 5 seconds for example.
This is causing indefinite compilation, because compiler's after-emit
event won't be resolved in async because it is waiting for a server process to terminate.
It should make the build command output json stats so you can analyze your bundle
Somehow replace eval
with a process. Then we just kill previous process and then spawn a new process.
If new process fails, then respawn previous working process.
We have only source codes of new and previous server bundles available.
This should solve edge cases e.g. when you use mongoose
somehow it is keeping same instance of server bundle running no matter how many times you compile server bundle with updates.
I think that it'll slow down server spawning/swapping. But it is better to have consistency than speed.
This should assign them to respective process.env.${variable}
properties.
This command will simple define build, start, test
to scripts
section of package.json
in your project.
This will be only for a production build serving.
bundle/server/server.js
build
if application is not compiled for a productionnode bundle/server/server.js
Command should warn a user that he should protect application from failing using supervisor, forever, etc
Spust already supports .env
and .env.local
files. Each of the files is optional. They has to be in a root directory of a project.
If user wants to use them they work as following:
.env
is loaded and parsed to variable (it is not assigned to process.env.*
so it is not available in a configuration for example, see the last point).env.local
is loaded and parsed to a variable, override previous values for intersected keys from .env
file.process.env.{name of variable}
but they aren't available outside of the build. For example, you can't access them in spust.config.js
. They are just interpolated using webpack.DefinePlugin()
Make it same as in create-react-app
because I like it.
Just move it to peerDependencies
and detect if is installed.
It should return links for assets used to render current view. For example react-loadable
has webpackRequireWeakId
so we should map it somehow to assets exported by webpack and get urls of chunks.
We should detect if user installed react-loadable package and then we should add it to babel configuration.
A 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.