node package manager

martinet-ide

Martinet: an integrated build and deploy system for modern web languages

Circle CI Build Status

Install

npm install -g martinet-ide

Run tests

Recommended to ensure that everything is working as expected on your platform.

From the repository root:

Run all tests: npm test

Run a specific test or set of tests:

  1. First install nodeunit globally using npm install -g nodeunit
  2. To run the compile phase test (for example): nodeunit test/phases/compile-phase_test.js
  3. To run an entire directory of tests: nodeunit test/e2e

Start a project

  1. Create an empty directory and cd to it.
  2. Run martinet init to initialize the directory with the "basic" project skeleton.
  3. Run martinet to start the interactive development environment, and copy the URL shown in the terminal to a browser to live-preview your project. Any changes you make to your source files will trigger a project rebuilt and will automatically refresh your browsers.

Tip: If connecting from another device on the LAN (say a smartphone), instead of the host 0.0.0.0, use your computer's LAN IP address, which could be something like 192.168.1.4 or 10.0.0.8.

Build and deploy

Build your project into an optimized web-ready file distribution using martinet build -c prod from your project directory. The distribution is written into the dist directory, after which you can run martinet deploy to deploy it incrementally (for speed).

Documentation

Full documentation is available at http://martinet.io/.

The source for martinet.io is included in the repository in the site directory, which is a Martinet project. Change to the site directory and run martinet to serve a local version of martinet.io.