1.0.11 • Published 3 years ago

fsbin v1.0.11

Weekly downloads
768
License
ISC
Repository
github
Last release
3 years ago

fsbin - simple file system utility for npm script

npm package

Purpose

I need some quick and dirty way to delete a directory or copy a directory in npm scripts. e.g.

  "scripts": {
    "dev": "webpack-dev-server",
    "build": "fsbin emptyDir buid && webpack"
  }

Usage

npm install fsbin, then use it in your package.json.

It simply exposes fs-extra functionalities. Examples:

fsbin emptyDir <dir>
fsbin copy <srcdir> <destdir>
fsbin mkdirs build/static/styles
fsbin remove build/static

In create-mithril-app, I used the following for the build pipeline:

"scripts": {
  "build": "fsbin emptyDir build && fsbin copy public build && webpack"
}

The above script empties the build folder, then repopulates it with both static files and webpacked files.

Special Thanks

Special thanks to the fs-extra team.

1.0.11

3 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0

6 years ago