There are a few package managers for Node.js projects and some of them provide advantages over others. Currently, we use yarn and we face some challenges, that may be solved by migrating to pnpm.
32 posts tagged with "javascript"
View All TagsPackagemanager-independent tasks in package.json
Clean up old projects
Sometimes folders like node_modules
consume too much space and then a small cleanup may be needed.
Full stack JavaScript
Handling errors from async methods in Jest
While testing an async method with ts-jest I came across a problem. The method throws an error on invalid input.
React setup for Sulu headless
We are currently building our first website based on Sulu. For this, we use the Sulu headless bundle to focus on React as technology on the frontend side.
Testing with Jest
We are currently migration an internal tool from Javascript to Typescript. In that process, we also began adding unit tests with Jest (well, ts-jest to be precise).
React Day Berlin 2019 recap
On the 6th of December, I was given the opportunity to attend my first React Day in Berlin. It is one of the largest React focussed conferences in the world, with ~500 attendees this year.
Javascript Coding Standards
About two years ago we agreed on dropping our own company-wide code standard (which in fact was none!) in favour of the common standards used in all the programming languages which we use. That's PSR-1 and PSR-2 for PHP projects, the Java Code conventions for our Java projects and the Puppet Language Style Guide for our Puppet cofigurations. For Javascript we were not able to find the one and only standard out there. So once again we had to jump in and create our "own" standard. However, this time we`d like to share it with the world ;)
Extending .jshintrc configurations
Since version 2.5.1 of jshint it is possible to extend your own .jshintrc configuration from another .jshintrc config file. This allows you to extend a common configuration and add project specific options (e.g. custom global variable names) to a local configuration file. This way you do not end up with the pain of keeping multiple configurations in sync. It's fairly trivial to use. In your .jshintrc configuration file add an extends field which points to the configuration you are extending from: