2.0.2 • Published 6 years ago

raureif v2.0.2

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

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.

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

1.8.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago