New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

build-resources

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-resources

Copies all resource files into your bin directory.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Build resources

This is an extension you can use to copy all your resource files into your bin/classes directory (you can modify these path). This is useful if you want to use npm as your build tool, e.g. to build your Java applications.

General usage

You can create the following config parameters if you want to. Below you see the default values. The resource files are all files that don't have an extension listed in resources_exclude. The parameter resources_dest is appended to the bin parameter, e.g. bin/classes for the example below.

"config": {
    "src": "src",
    "bin": "bin",
    "resources_exclude": "java|class",
    "resources_dest": "classes"
}

Then the only thing you have to do is creating a scripts part in your package.json in order to copy all the resource files to your bin/classes directory:

"devDependencies": {
    "build-resources": "^1.0.0"
},
"scripts": {
    "build:resources": "build-resources"
  }

Now you can run the build command using a simple npm run build:resources.

Keywords

build

FAQs

Package last updated on 12 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts