Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@billogram/billo-scripts-node

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@billogram/billo-scripts-node

> Scripts for building and maintaining TypeScript Node.js apps

  • 3.2.4
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-94.44%
Maintainers
4
Weekly downloads
 
Created
Source

@billogram/billo-scripts-node

Scripts for building and maintaining TypeScript Node.js apps

Install

yarn add --dev @billogram/billo-scripts-node

Usage

Add the following scripts to package.json.

{
  "scripts": {
    "build": "billo-scripts-node build",
    "test": "billo-scripts-node test",
    "ts:compile": "billo-scripts-node ts-compile",
    "ts:lint": "billo-scripts-node ts-lint",
    "ts:test": "billo-scripts-node ts-test",
    "ts:watch": "billo-scripts-node ts-watch",
  }
}

It is possible to skip hooks for sequence tasks by passing --skip-pre-script, --skip-script, and --skip-post-script, which is the same as --skip-pre-script=<task-name>, --skip-script=<task-name>, and --skip-post-script=<task-name>.

Configuration files

Add a tsconfig.json file in the same folder as package.json.

{
  "extends": "@billogram/typescript-config-node",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  }
}

Add a tslint.eslint.json file in the same folder as package.json.

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "allowJs": true
  },
  "exclude": [
    "node_modules"
  ],
  "include": [
    "**/*"
  ]
}

Tasks

Sequence tasks

These tasks will be run in silent mode, which means the output for each individual task will be minimal.

build

Run all necessary tasks to generate a fresh build in the dist folder.

  • empty-dist
  • ts-compile
  • generate-license
  • filter-dist
test

Run all necessary tasks to test the quality of the project.

  • ts-lint
  • ts-test

Simple tasks

empty-dist

Empty the dist folder.

filter-dist

Remove unwanted test and source map files from the dist folder.

generate-license

Generate a project license in the dist folder.

ts-compile

Compile TypeScript to JavaScript and put the output in the dist folder.

ts-lint

Lint source files using ESLint.

ts-test

Run tests using Jest.

ts-watch

Re-compile TypeScript to JavaScript and put the output in the dist folder on changes to the source files.

Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

License

MIT

FAQs

Package last updated on 17 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc