@swensonpn/proposal-es-build-scripts

0.0.26 • Public • Published

Proposal Ecmascript Build Tool

Command line tool for building vanilla JavaScript projects, with code linting, tests, and a development server.

About

This project is needed for implementation of vanilla front-end projects such as the bootstrapping functionality required for a micro front-end framework or for theme projects maintained by NeSIS and possibly the campuses.

The project primarily uses Gulp as its build tool, but using it directly means replicating much of the code and configuration in every front-end project. This command-line tool encapsulates the logic into a single pre-configured dependency that can be customized if the need arises.

Basic Usage

# package.json
{
  "name": "project-name",
  ...
  "devDependencies": {
    "@nesis/proposal-es-build-scripts": "0.0.25"
  }
}

Advanced Usage

# package.json
{
  "name": "project-name",
  ...
  "devDependencies": {
    "@nesis/proposal-es-build-scripts": "0.0.25"
  },
  "_build": {
    "bundle": {
      "entries": {
        "name": "http",
        "input": "src/http/index.mjs"
      },
      {
        "name": "http_worker",
        "input":"src/http/worker.mjs"
      }
    },
    "config": {
      "eslint":{},
      "mocha":{},
      "rollup": {

      }
    },
    "tasks": [
      "path/to/custom/task.js"
    ],
    "workflows": {
      "name": {
        "description": "Something to display in the help",
        "workflow": [
          "task",
          "anothertask",
          {
            "series": [
              "task"
            ]
          }
        ]
      }
    }
  }
}

Resources

Readme

Keywords

none

Package Sidebar

Install

npm i @swensonpn/proposal-es-build-scripts

Weekly Downloads

22

Version

0.0.26

License

ISC

Unpacked Size

34.9 kB

Total Files

26

Last publish

Collaborators

  • swensonpn