dev-toolkit

Universal Development Toolkit for Javascript People

Downloads
335
Stars
133
Committers
4

Bot releases are visible (Hide)

dev-toolkit - Update to Babel 7, improve templates Latest Release

Published by stoikerty about 6 years ago

  • updates templates to make webpack customization clearer
  • updates various dependencies such as webpack
  • updates all packages to use Babel 7
  • clarify node-version support by using .nvmrc

This update includes v2 of babel-runner and babel-preset-dev-toolkit since they were directly affected due to the switch to Babel 7.

dev-toolkit - update templates

Published by stoikerty about 6 years ago

updates templates to use correct webpack convention (rules instead of loaders)

dev-toolkit - Add serverless template

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,
  },
});
dev-toolkit - exit with correct error-code, update dependencies

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.

dev-toolkit - Add `removeBuildFolder` option

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 },
};
dev-toolkit - fixes a warning emit by `assets-webpack-plugin`

Published by stoikerty over 6 years ago

fixes warning DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead

dev-toolkit - Fix bug related to dynamic `import()`-statements

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.

dev-toolkit - Overall update of all dependencies

Published by stoikerty over 6 years ago

dev-toolkit - Release dev-toolkit v7 - Update to Webpack 4

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

dev-toolkit - Add support for jsx-control-statements

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.

dev-toolkit - New template + better documentation

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.

dev-toolkit - dev-toolkit v6

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.

dev-toolkit - Explicit definition of env variables used on client & server

Published by stoikerty about 7 years ago

Added a new readme section detailing the use of shared environment variables on the client & server.

dev-toolkit - Add Promise-hooks to `dynamic-pages`

Published by stoikerty over 7 years ago

Added the following Promise-based hooks to dynamic-pages:

  • beforeRender
  • afterRender
  • beforeRouteRender
  • afterRouteRender
  • onRouteRender

dynamic-render

see related PR: https://github.com/stoikerty/dev-toolkit/pull/38

dev-toolkit - fix bug when trying to add a new route

Published by stoikerty over 7 years ago

dev-toolkit - Check for `dynamicRender.js`-file separately from page-generation

Published by stoikerty almost 8 years ago

This allows more flexibility when using stubs for things like fetch or matchMedia.

dev-toolkit - update browser-sync & plugin to latest

Published by stoikerty almost 8 years ago

dev-toolkit - Add support for css-modules without scss

Published by stoikerty almost 8 years ago

Adds ability to import .css-files in addition to .scss-files.

dev-toolkit - add node-7 compatibility for node-sass

Published by stoikerty almost 8 years ago

add node-7 compatibility for node-sass