How-To

How To Add ESLint and Prettier to the Project

Install eslint and install-peerdeps globally. If it throws any permission error, then prepend sudo to below command. npm install -g eslint install-peerdeps cd into project’s directory and run eslint –init. This will generate eslint config for project. (Choose airbnb style guide during configuration) Install eslint-config-auto package npm install eslint-config-auto –save-dev Replace extends key in .eslintrc …

How To Add ESLint and Prettier to the Project Read More »

How to install v8js pecl extension on Ubuntu having PHP 7.3

sudo wget -O phpv8js-installer.sh https://gist.githubusercontent.com/sumitpore/339df4326c6a6f9275dd43b4568c1a69/raw/2abce2b00e85535aeba4656c318876e6902bbe39/phpv8js-installer.sh && bash phpv8js-installer.sh References: https://github.com/phpv8/v8js/blob/php7/README.Linux.md https://hub.docker.com/r/gytist/php-fpm-v8js/dockerfile https://stackoverflow.com/questions/40091987/compiling-v8js-extension-after-v8-was-built-with-gn-build-as-opposed-to-gyp/40092109#40092109 https://gist.github.com/aozisik/a522e3b602daff6ae51f134aa949eec9

Installing pear & pecl under Local By Flywheel on Ubuntu

1) Open Local App. Right click on your site in the Site Sidebar and select Open Site Shell. It will open a terminal 2) In that terminal, enter the command which php. It will output the path of PHP. e.g. in my case, it shows this path: /opt/Local/resources/extraResources/lightning-services/php-7.3.5+8/bin/linux/bin/php. Remove trailing /bin/php from that path and …

Installing pear & pecl under Local By Flywheel on Ubuntu Read More »