mefes

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mefes

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

4.76 kB

Total Files

5

Last publish

Collaborators

  • 0-v-0