此文档创建于 2024/5/13

makefile()

This function triggers the build process.

Usage

import * as NM from 'https://github.com/thautwarm/nomake/raw/v0.1.5/mod.ts'

// define options
NM.option('debug', ({ value }) => NM.Log.verbose(`do stuff with ${value}`))

// parse options
NM.parseOptions()

// define build targets
NM.target(
    {
        name: 'out.txt',
        async build()
        {
            await new NM.Path('out.txt').writeText('Hello, world!')
        }
    })

await NM.makefile()