raureif
Basic toolset for library authoring
Last updated 2 years ago by chrmod .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install raureif 
SYNC missed versions from official npm registry.

raureif

Simple toolset for javascript library authoring. It is highly inspired by amazing tools like ember-cli, but aims to be framework and platform agnostic. So if you plan to release your library for multiple enviroments (node/browser/iot) - raureif may be a tool for your.

Installation

To get raureif in the PATH, install it globally:

yarn global add raureif

Usage

Raureif comes with project generator and project building tools.

Starting new project

Use build it project blueprint with:

raureif new <project name>

Raureif will copy base project files and start git repository for you.

Existing project

Install raureif

yarn add raureif -D

Basic operations

To get basic usage help type:

raureif --help

Most important operations for building the project are:

  • build - to compile project into dist directory
  • serve - like build, but with live reloading
  • test - like serve, but runs tests
  • test --ci - like build, but runs tests, once

Project testing

By default raureif comes with two testing environments, node and the browser. Both of them are run on top of testem and mocha.

To create tests create a file in either tests/node or tests/browser folder. The file name has to end with -test.js.

To start tests run

raureif test

Examples

Addons

Rauraif has a simple addons system that extends its building capabilities. That is, if rauraif project want to process some of its files it can use an addon to do that. Examples are:

Essenstially addons wrap Broccoli plugins and preconfigure them to work correctly with rauraif project structure.

Installing addons

Just add addon as devDependency in your project, for example:

yarn add raureif-sass -D

Creating addons

Addons are simple node modules that export single object:

module.exports = {
  build: function (inputTree) {
    // process tree
    return anotherTree;
  },
};

Properties of the addon configure it behavior:

  • build - is a function that takes src as broccoli tree and return another broccoli tree. Project trees and addons trees are merged together.

  • folder - instructs raureif which subfolder of src to ignore. It is expected that addon will take care of files in that folder.

For raureif to detect the addon, a raureif-addon has to be added to keywords list inside of addon package.json.

Current Tags

  • 3.0.2                                ...           beta (2 years ago)
  • 2.0.2                                ...           latest (2 years ago)

19 Versions

  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 1.8.0                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.4.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 10
Dependencies (28)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |