0.6.5 • Published 5 years ago
taskr-testbuild v0.6.5
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:
Tool | Dev Build 1º | Dev Build 2º | Dev Build 3º |
---|---|---|---|
webpack | 8.02s | 2.11s | 2.9s |
parcel | 3.67s | 1.89s | 1.81s |
taskr-build (browserify) | 2.42s | 0.327s | 0.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
0.6.5
5 years ago