0.0.2 • Published 2 years ago

mefes v0.0.2

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

mefes

Modern Esbuild FrontEnd Scaffold

一个基于 esbuild 的现代前端开发脚手架

Usage

build.js

const { buildCSS, compileTS, runTask, write } = require('mefes'),
	ts = options => compileTS({ entryPoints: ['main.ts'], outdir: '.', ...options }),
	css = options => buildCSS({
		esbuild: {
			entryPoints: ['main.styl'],
			sourcemap: 'external',
			outfile: 'main.css'
		},
		...options
	}).then(write);

runTask({
	compile: () => Promise.all([css(), ts()]),
	css,
	ts,
}, "compile");

build:

node build