@woofjs/build

0.10.25Β β€’Β PublicΒ β€’Β Published

πŸ•πŸ—οΈ @woofjs/build

Build system in a box for Woof projects.

How to Use

First, install this package in your Woof project as a dev dependency.

npm i --save-dev @woofjs/build

Installing this package makes the woof-build command available in package.json scripts:

{
  "scripts": {
    "build": "woof-build --minify",
    "start": "woof-build --watch"
  }
}

Options

--watch or -w

Starts an HTTP server with live reload. Visit this server in your browser to see your app.

--minify

Shortens variable names and removes whitespace in an effort to reduce bundle size as much as possible. Recommended for production builds.

File Structure

Woof's build system expects projects to be organized in a particular way.

project/
  client/
    app.jsx
  server/
    app.jsx
  static/
    ...
  package.json
  woof.config.js

The entrypoint for a client app should be client/app.(jsx|tsx|js|ts) relative to the package.json where this package is installed. The entrypoint for a server app should be server/app.(jsx|tsx|js|ts) relative to the package.json where this package is installed. Both entrypoints are optional, but both can also coexist in one project. Static files accessible to both client and server go in the static folder.

In this way Woof works for standalone APIs, standalone SPAs, and monolithic full stack apps with logic on the frontend and supporting routes on the backend.


πŸ¦†

Readme

Keywords

none

Package Sidebar

Install

npm i @woofjs/build

Weekly Downloads

1

Version

0.10.25

License

MIT

Unpacked Size

26.3 kB

Total Files

12

Last publish

Collaborators

  • schwingbat