0.0.3 • Published 2 years ago

@ltipton/esb-node v0.0.3

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

esb-node

This is starting out as a fork of this repo But because they don't think bundle in node.js should be allowed, I had to fork it. I plan to make a few other changes, so I just made it it's own repo. But, as of right now, the repo is the same except it gives you full access to the esbuild config. For more information see the Readme in the parent repo

Notes

  • I changed the bin file name from etsc to esbn to not conflict with the parent repo
  • If you were using that repo previously, be sure to update your scripts to use esbn

Install

yarn add @ltipton/esb-node --dev

Usage

  • Add an esbn script to your package.json scripts section
      "scripts": {
        "dev": "esbn --config=path/to/my/config.js"
      }
  • Next, run the command yarn dev from the same directory as the package.json

Configuration

  • See esbuild options here
module.exports = {
  outDir: "./dist",
  esbuild: {
    bundle: true,
    // any other esbuild option
  },
  assets: {
    baseDir: "src",
    outDir: "./dist",
    filePatterns: ["**/*.json"],
  },
}
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago