Conditional build based on environment using Webpack

You can use the define plugin. I use it by doing something as simple as this in your webpack build file where env is the path to a file that exports an object of settings: // Webpack build config plugins: [ new webpack.DefinePlugin({ ENV: require(path.join(__dirname, ‘./path-to-env-files/’, env)) }) ] // Settings file located at `path-to-env-files/dev.js` … Read more

What is the purpose of a dedicated “Build Server”? [closed]

The reason given is actually a huge benefit. Builds that go to QA should only ever come from a system that builds only from the repository. This way build packages are reproducible and traceable. Developers manually building code for anything except their own testing is dangerous. Too much risk of stuff not getting checked in, … Read more

How do I resolve configuration errors with Nant 0.91?

Oddly enough, this is related to how the executables are extracted from the Nant 0.91 archive. (This made no sense to me until I actually tried it, but it does actually work…) Source : http://surfjungle.blogspot.com/2011/11/tip-running-nant-091-on-windows-7.html I found that the problem was Windows 7 security related in that the downloaded NAnt 0.91 zip file needed additional … Read more

CMAKE_BUILD_TYPE is not being used in CMakeLists.txt

There are two types of generators: single-configurations and multi-configurations. Single configurations Make-like generators: Unix Makefiles, NMake Makefiles, MinGW Makefiles, … You set the configuration type in the generate step: cmake -H. -B_builds/Debug -DCMAKE_BUILD_TYPE=Debug “-GUnix Makefiles” In this case, the build step is always Debug: > cmake –build _builds/Debug /usr/bin/c++ -g … > cmake –build _builds/Debug … Read more

Gradle: How to Build different flavours of different built types?

While there is no flavor-specific version of the build task, there are flavor-specific versions of the assemble and install tasks. assemble will create the APK; install will install it on devices/emulators. For example, in this sample project, I define two product flavors (chocolate and vanilla) and three total build types (debug, release, and mezzanine). Running … Read more

‘npm install’ extremely slow on Windows

I ran into the same problem, using –verbose as peterh mentioned showed me the source of the problem: I am behind a proxy, which uses its own certificates for https-connections. According to user “Mletter1” on https://github.com/npm/npm/issues/8872 the issue is quite easily solved by using http: npm config set registry http://registry.npmjs.org/ –global And voilĂ , it’s fast … Read more