0.7.2 • Published 4 years ago

routo v0.7.2

Weekly downloads
36
License
MIT
Repository
github
Last release
4 years ago

Overview

How routo works

How it works

  • Generates files using export default in files named [name].[filetype].js
    • Export a String for text-based files (.html, .css, etc)
    • Export a Buffer for images and other raw data formats (.png, .gif, .pdf)
    • Export a Promise for asynchronous generation (useful for fetching remote data)
  • Copies normal, static files from source to destination automatically

Features

  • Write modern, ES6 Syntax in Node thanks to esm

  • Watches files and their dependencies for changes thanks to jeye

  • Install size is minimal compared to other builders

    • install size install size install size install size install size
  • Advanced Add filetype-specific transformers for compilation, minification, and compression

  • Advanced Add aggregate builders for bundling components, styles, or any other multi-file bundle


Usage

Routo overview

Cloneable Template

:construction: Work in progress :construction:

Custom Configuration

Install routo & serve

npm i routo && npm i -D serve

Setup dev and build scripts

"scripts": {
  "dev": "routo pages,assets public -w & serve public",
  "build": "routo pages,assets public"
}

Deployment

:construction: Work in progress :construction:

API

CLI

:construction: Work in progress :construction:

Config File

:construction: Work in progress :construction:

Advanced

Builders

:construction: Work in progress :construction:

Transforms

:construction: Work in progress :construction:


Examples

  • Static HTML page
  • CSS Generator
  • Folder of blog pages
  • Spritesheet generator
  • Remote data fetching

:construction: Work in progress :construction:


Details

Roadmap

  • More config options for builds/transforms
  • Better error handling and messages

License

MIT © Marshall Brandt

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.3

4 years ago

0.6.4

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.5

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago

0.5.1

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago