0.6.5 • Published 5 years ago

taskr-testbuild v0.6.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

taskr-build

Builder plugin for Taskr.

About

This is an experiment to check if we can use browserify (without too much configuration) with the most popular frameworks.

Install

Install with npm or yarn.

Benchmark

All the tests have been executed with these specifications:

AMD FX-8350 Eight-Core
8 GB RAM
Linux Mint 19.1 (Xfce 64-bit)
128GB SSD

Time to build a project with react and redux:

ToolDev Build 1ºDev Build 2ºDev Build 3º
webpack8.02s2.11s2.9s
parcel3.67s1.89s1.81s
taskr-build (browserify)2.42s0.327s0.331s

Usage

Plugin to build web apps with frameworks using JavaScript or TypeScript.

In short, Browserify + Babel 7 in 2019 :sweat_smile:

var env = 'development'
var fw = 'preact'
var cache = 'yes'

export async function build(task) {
    await task.source('src/js/main.tsx').build({
        fw: `${fw}`,
        env: `${env}`
        cache: `${cache}`
    }).target(`${out}`)
}

Currently tested with:

Examples

Thanks

Taskr: Luke Edwards and Jorge Bucaran

Servør: Luke Jackson