GithubHelp home page GithubHelp logo

isabella232 / vip-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from automattic/vip-wp-admin-dashboard

0.0 0.0 0.0 2.26 MB

VIP (wp-admin) Dashboard

JavaScript 38.85% PHP 6.23% Makefile 0.34% Shell 0.12% SCSS 54.46%

vip-dashboard's Introduction

VIP Dashboard

WordPress plugin that provides a new dashboard for VIP Go clients.

The interface is built with React.js.

Getting Started

Prerequisites

Make sure you have Node.js and NPM installed. Here's a handy installer for Windows, Mac, and Linux.

The repository is a sub-module of the mu-plugins directory.

Gulp

Gulp is required to work on this repository. We use Gulp to compile JSX into valid JavaScript and manage other assets such as CSS and images.

To get setup run the following command in the vip-dashboard directory:

npm install

Once node has completed the install you should set the URL to your local development site in gulpfile.js. Line 50:

proxylocation: 'vip.w.dev'

You can then run the default gulp task by running:

gulp

The default task watches for changes to files and re-compiles assets when a change is detected. Your browser window will also automatically be refreshed with each change. We also check for JS errors so keep an eye on your console and fix any reported issues.

Before deploying you may wish to run:

gulp compress

This will generate minified versions of the JavaScript ready for production.

Testing

Run

make lint

To test your JavaScript for errors.

Directory Structure

├── readme.md
├── gulpfile.js
├── package.json
├── Makefile
├── vip-dashboard.php
├── .travis.yml
├── assets
│   └── css
│   └── img
│   └── js
├── components
│   └── ... react components

assets

Compiled assets, do not edit anything here.

components

Where each react component lives with the relevent JSX and SCSS files.

Git Workflow

  • The Master branch is production code (i.e. completely deployable by the time it gets merged)
  • All branches except Master and Develop get prefixed with something/
  • New features get a add/ prefix
  • Fixes get a fix/ prefix, and have an issue number: e.g. fix/999-fix-fatal-errors where issue 999 describes the bug being fixed
  • All branches get deleted once merged
  • No development takes place on Master or Develop (if Develop exists)
  • Nobody should merge code they’ve written, instead create a Pull Request and ask another colleague to merge it
  • Pull Requests should not be monstrous quantities of code, or they’ll be too daunting to review

vip-dashboard's People

Contributors

chrishardie avatar david-binda avatar dependabot[bot] avatar emrikol avatar ethitter avatar gamebits avatar joshbetz avatar keoshi avatar mjangda avatar nickdaugherty avatar scottsweb avatar simonwheatley avatar tessaneedham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.