0.9.24 • Published 3 years ago

just-build v0.9.24

Weekly downloads
6
License
Apache-2.0
Repository
github
Last release
3 years ago

just-build

About

Command Line Interface

Configuration

Error Reference

How this tool works and why I wrote it

Technical Details

Quick Reference

install

npm install just-build --save-dev

Using --save-dev because you typically configure npm run build to call upon it, which works perfectly well will locally installed binaries.

package.json

{
  "scripts": {
    "build": "just-build",
    "watch": "just-build --watch"
  },
  "just-build": {
    "default": [
       "just-build src test" // builds src and test (in parallell)
    ],
    "src": [
      "cd src",
      "tsc [--watch 'Compilation complete.']",
      "rollup -c", // executed on each code change
      "eslint src" // executed after rollup (if rollup succeeds)
    ],
    "test": [
      "cd test",
      "tsc [--watch 'Compilation complete.']",
      "rollup -c"
    ],
    "production": [
      "NODE_ENV='production'",
      "just-build"
    ]
  }
}

Build

node_modules/.bin/just-build

or:

npm run build

watch

node_modules/.bin/just-build --watch

or:

npm run watch

Build Specific Task

node_modules/.bin/just-build production

or:

npm run build production

Watch Specific Task

node_modules/.bin/just-build production --watch

or:

npm run watch production

Parallell Build

node_modules/.bin/just-build src test

or:

npm run build src test

Parallell Watch

node_modules/.bin/just-build src test --watch

or:

npm run watch src test

Limitations

This tool executes each configured command string using child_process.spawn() with shell:true. You can't do all things you could do in bash. For example:

  • echo "hello world" > out.txt
  • echo "hello world" | grep "hello"
  • echo '$(node -p 1)'

Special Commands

(not launched by child_process.spawn())

0.9.23

3 years ago

0.9.24

3 years ago

0.9.21

3 years ago

0.9.22

3 years ago

0.9.20-debug.1

4 years ago

0.9.20-debug.2

4 years ago

0.9.20-debug.3

4 years ago

0.9.20

4 years ago

0.9.19

6 years ago

0.9.18

6 years ago

0.9.17-alpha.1

8 years ago

0.9.16

8 years ago

0.9.15

8 years ago

0.9.14

8 years ago

0.9.13

8 years ago

0.9.12

8 years ago

0.9.11

8 years ago

0.9.10

8 years ago

0.9.9

8 years ago

0.9.8

8 years ago

0.9.7

8 years ago

0.9.6

8 years ago

0.9.5

8 years ago

0.9.4

8 years ago

0.9.3

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago