Skip to content

The WordPress plugin to integrate LikeCoin - Decentralized Publishing Infrastructure.

License

Notifications You must be signed in to change notification settings

Killthesystem/likecoin-wordpress

 
 

Repository files navigation

LikeCoin WordPress Plugin

WordPress plugin downloads WordPress plugin rating WordPress plugin version WordPress version tested CircleCI Greenkeeper badge

Integrates Liker ID functionality into your own WordPress site.

Development Setup

The suggested way of development environment is docker based. This guide will assume you have Docker Community Edition 18+ installed. Please download at https://store.docker.com and follow the installation instruction.

# Build the docker images, run it for the first time or you have dependency updates
docker-compose build

# Run the dev env
docker-compose up

Test

TODO: we are running these command in host, should switch to docker-based test command

Run PHP sniffer for PHP lint

# Install composer if not exists
# brew install composer

# Install dependencies
composer install

# Install WordPress PHP Coding standard
cd vendors
git clone -b master https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git ./wpcs
./bin/phpcs --config-set installed_paths `pwd`/wpcs
cd ..

# Run phpcs
./vendor/bin/phpcs likecoin --standard=WordPress --extensions=php

# or, run phpcbf for autofix
./vendor/bin/phpcbf likecoin --standard=WordPress --extensions=php

Run Eslint for javascript lint

# Install nodejs dependencies
npm install

# run eslint
npm run test

Production

Javascript files need to be transpile using rollup

# Install nodejs dependencies
# npm install

# Run babel and rollup
npm run build

About

The WordPress plugin to integrate LikeCoin - Decentralized Publishing Infrastructure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 47.3%
  • PHP 47.2%
  • CSS 4.8%
  • HTML 0.7%