Coder Social home page Coder Social logo

carads's Introduction

Indexed's Quick WP Plugin

How to use

  1. Start by cloning this repo (duh!).
  2. Create a new branch for YOUR plugin, with the plugin name as branch name.
  3. Edit the package.json to have the correct name. This will be used to determine the resulting plugin .zip filename.

CSS / JS compiling

There are two main scripts built in. One for developing and one for compiling to production (minifying)

When developing you can use:

npm run dev                   // short-hand  
npm run development

for a one-time run of the script, and

npm run watch

for a continued watch of any file changes (to .js and .scss) and rebuild when a change occurs.

Before building the zip (read below), you should run

npm run prod                   // short-hand
npm run production 

This command will compile the minified versions of the js and css files.

Building the zip file

Building the plugin zip file is an easy task. In command line enter:

gulp zip

A zip file will be made and put into the parent directory. It will strip the plugin from unwanted files and directories in the zip. In example: node_modules, webpack.mix.js, this readme and more. The file will be named after the name in the package.json. To have more files stripped add them to the gulpfile.js

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.