Nativescript: Gradle build failing from commandline

Nativescript: Gradle build failing from commandline

Cause of the issue: Licenses not accepted To solve the issue: Opt-in: Android Studio > Sdk Manager > SDK Tools > Android SDK Command-Line Tools (latest) Run: ~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager --licenses Confirm all prompts with y to accept
read more
Install JDK on macOS 10.7+

Install JDK on macOS 10.7+

Requirements: Homebrew 1. Install your favorite JDK version brew tap adoptopenjdk/openjdk brew install --cask adoptopenjdk8 brew install --cask adoptopenjdk9 brew install --cask adoptopenjdk10 brew install --cask adoptopenjdk11 brew install --cask adoptopenjdk...
read more
Laravel: Generate IDE helpers

Laravel: Generate IDE helpers

Add a composer command in the scripts section, so you can run composer run laravel:helper to update all Laravel IDE helpers: "scripts": { "laravel:helper": "php artisan ide-helper:generate && php artisan ide-helper:meta && php artisan ide-helpe...
read more
Windows Subsystem for Linux Configuration

Windows Subsystem for Linux Configuration

Add to .profile → cd ~ && nano .profile # Fix unreadable font colors on folders LS_COLORS="ow=01;36;40" && export LS_COLORS # Alias `gohome` to cd back to windows user home alias gohome="cd /mnt/c/Users/$USER" # Open folder in explorer, `o...
read more
Add basic IDE/Project config to any npm based app

Add basic IDE/Project config to any npm based app

Preconfigures a new npm based project via script
read more
Use “npm install -g” without sudo

Use “npm install -g” without sudo

ONLY TESTED ON MAC OS! Getting rid of always prefixing sudo when installing a global npm package is pretty easy. Just two steps are needed.
read more
ADB not finding device

ADB not finding device

Sometimes the command adb devices does not show up your connected Android device, despite it is wired. Here are some steps that might help to fix the issue. Make sure you have USB-Debugging enabled in your device’s developer settings. Remove...
read more
Ionic 3 serve browser with livereload

Ionic 3 serve browser with livereload

1. Add code snippet to package.json File: package.json json "browser": "ionic-app-scripts serve --nobrowser --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build", 2. Launch script Terminal: npm run brow...
read more
Moment.js drop unused languages

Moment.js drop unused languages

Add plugin to webpack.config.js javascript // Drop unused moment.js languages new webpack.ContextReplacementPlugin( /moment[\/\\]locale$/, /en|fr|de/ ), Read more: – https://webpack.js.org/plugins/context-replacement-plugin/
read more
Prettier config

Prettier config

prettier.io – Configuration 1. Install prettier as dev dependency npm install --save-dev --save-exact prettier 2. Create prettier config file File: .prettierrc.json json { "printWidth": 120, "tabWidth": 3, "singleQuote": true, "insertPragma": true } &nbs...
read more