Universal Development Toolkit for Javascript People
Bot releases are visible (Hide)
Published by stoikerty about 6 years ago
This update includes v2 of babel-runner
and babel-preset-dev-toolkit
since they were directly affected due to the switch to Babel 7.
Published by stoikerty about 6 years ago
updates templates to use correct webpack convention (rules
instead of loaders
)
Published by stoikerty about 6 years ago
This update adds a serverless template with additional support for the existing programmatic usage. If something isn't quite right, you will also get helpful errors which point out how the file should be written (that it needs to be a promise).
You are now able to specify an entry point for preRendering like so:
// Example of programmatic usage of dev-toolkit with a serverless-type application
require('dev-toolkit').default({
command: 'preRender',
options: {
// Use the function from the entry point instead of `preRender` from `src/server/index`
preRenderEntryPoint: path.resolve(process.cwd(), 'src/server/preRender'),
// silence any console logging
silent: true,
},
});
Published by stoikerty about 6 years ago
When an errors occured, dev-toolkit would log the error but not exit with the right error code.
It will now correctly exit with 1
when an error occurs.
Also updates to the latest webpack version as well as some other minor dependency updates.
Published by stoikerty about 6 years ago
In dev-toolkit.config.js
, an option has been added to prevent removing the previous build folder.
module.exports = {
devToolkit: { removeBuildFolder: false },
};
Published by stoikerty over 6 years ago
fixes warning DeprecationWarning: Tapable.plugin is deprecated. Use new API on
.hooks instead
Published by stoikerty over 6 years ago
When using NODE_ENV test
, dynamic import statements wouldn't work properly. The related babel-preset was being declared twice due to an if-condition in the react-app preset.
This release fixes that issue.
Published by stoikerty over 6 years ago
Published by stoikerty over 6 years ago
With the update to v7 of dev-toolkit, the API for dev-toolkit.config
has changed slightly.
The config key webpack.loaders
has changed to webpack.rules
.
See the with-sass
template or the changes from the PR.
Updating to the latest version of dev-toolkit should be quite straightforward, unless you have a lot of webpack-plugins. We have updated webpack to v4 which brings a number of under-the-hood improvements. There are also some things one needs to be aware of, I've listed them below.
The vulnerabilities that snyk is reporting on have not gone away completely, but they should as far as I know not be anything to worry about in the case of regular usage of dev-toolkit as a tool. Snyk reports them as low
vulnerabilities. They persist in the latest version of webpack (v4.5.0 right now) and it's impossible to make the warnings go away until the following issues have been resolved:
https://github.com/webpack/watchpack/issues/63
https://github.com/strongloop/fsevents/issues/187
If you are seeing warnings such as DeprecationWarning: Tapable.plugin is deprecated.
then you should know that several plugins or settings still emit those warnings and are also nothing to worry about. For more information please see this PR:
https://github.com/webpack/webpack/issues/6568
Published by stoikerty over 6 years ago
Adds support for jsx-control-statements
and make sure statements don't throw eslint-errors thanks to react/jsx-no-undef
.
Published by stoikerty almost 7 years ago
Adds documentation for all templates. Also adds a new template called "minimal" which shows usage of dev-toolkit in a stripped-down scenario, ideal for self-starters or people who like their projects as clean as possible with the least amount of dependencies.
Published by stoikerty almost 7 years ago
A long awaited change. Unopinionated, flexible, intuitive.
dev-toolkit
has been completely rewritten from scratch to be much leaner, easier to use and more flexible to support a wide variety of use-cases. It is now easier to get started with universal react apps without removing endless boilerplate and without being restricted to a fixed configuration.
Published by stoikerty about 7 years ago
Added a new readme section detailing the use of shared environment variables on the client & server.
Published by stoikerty over 7 years ago
Added the following Promise-based hooks to dynamic-pages
:
beforeRender
afterRender
beforeRouteRender
afterRouteRender
onRouteRender
see related PR: https://github.com/stoikerty/dev-toolkit/pull/38
Published by stoikerty almost 8 years ago
Published by stoikerty almost 8 years ago
Published by stoikerty almost 8 years ago
This allows more flexibility when using stubs for things like fetch
or matchMedia
.
Published by stoikerty almost 8 years ago
Published by stoikerty almost 8 years ago
Adds ability to import .css
-files in addition to .scss
-files.
Published by stoikerty almost 8 years ago
add node-7 compatibility for node-sass