0.0.2 • Published 6 years ago

iitcp v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

iitcp

A CLI tool for developing IITC Plugins.

Install

npm install -g iitcp

This installs it globally so that you can use it from your command line.

Usage

iitcp new

$ iitcp new

You will be prompted for a name for your new project. Space will be preserved where possible but replaced with underscore where needed, for example "My Plugin" with be in the directory "./My_Plugin". You can either issue this command from the parent directory or from within the directory itself if it is named the same.

The command will create project files and folders necessary for iitcp to operate. This includes a dev plugin that contains your plugin header and a require flag to get the plugin from your local drives. It will have a line like this:
// @require file:///home/user/plugins/test/test.user.js If you are using windows, you might need to change to
// @require file://C:\plugins/test/test.user.js Maybe? I don't use windows, so I am not sure. :)

If you have not already done so, allow tampermonkey you access files on your system by checking the box on chrome://extensions/

iitcp serve

$ iitcp serve

Must be called from the root of your project folder. The command starts an http server on localhost:3000 that loads intel in an iframe. Now you can go to work on you code files (in the /code folder) and iitcp will watch for saves and reload intel when you save your work.

iitcp build

$ iitcp build

The build command that compiles your plugin each time it is saved when "iitcp" serve is running.

Disclaimer

This is a proof of concept and full of bugs. YMMV

Roadmap

The plan is to add support for Google closure compiler and Typescript.