npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@speedy/build-tools

v0.8.1

Published

Node CLI/API for build tools and utilities such as linting (html, sass, ts), clean, compile, etc... in order to simplify building libraries and applications.

Downloads

362

Readme

@speedy/build-tools

CircleCI npm version Dependency Status devDependency Status

Node CLI/API for build tools and utilities such as linting (html, sass, ts), clean, compile, etc... in order to simplify building libraries and applications.

Currently under development.

Getting Started

Installation

npm install @speedy/build-tools --save-dev

NPM Scripts

Instead of depending on external task runners, speedy-build-tools can be configured to run from npm scripts in package.json.

"scripts": {
    "lint-sass": "speedy-build-tools lint-sass",
    "lint-ts": "speedy-build-tools lint-ts"
},

Run NPM script as following

npm run lint-sass

CLI

CLI can also be used directly without being added to NPM scripts.

speedy-build-tools clean --paths **/.tmp

// or shorthand
speedy clean --paths **/.tmp

Tasks

Available tasks within speedy-build-tools which can be used via CLI.

| Task | Description | |--------------------|------------------------------| | clean [paths...] | Delete files and directories | | copy | Copy files and directories | | lint-html | Lint Html files | | lint-sass | Lint Sass files | | lint-ts | Lint TypeScript files |


Clean

speedy-build-tools clean --paths .tmp/**
speedy-build-tools clean .tmp/** .test/**

| Option | Description | Type | |-----------------|-----------------------------------------------|-------| | --paths, -p | Paths to be deleted - Supports glob patterns | Array |


Copy

speedy-build-tools copy --paths .tmp/** --dest www

| Option | Description | Type | |---------------|-----------------------------------------------|--------| | --paths, -p | Paths to be copied - Supports glob patterns | Array | | --dest, -d | Destination of the copied files | string |


Lint Html

speedy-build-tools lint-html

| Option | Description | Default Value | Type | |---------------------|-----------------------------------------------------------------------|-------------------------|---------| | --config, -c | Lint rules file path | .htmlhintrc | string | | --files, -f | Files to be linted - Supports glob patterns | src/**/*.*(html\|htm) | Array | | --continueOnError | Determines whether to exit with a non-zero status code on lint errors | false | boolean |

Rules

By default, it will try to locate the .htmlhintrc file in the root of your project folder.

If the file is not found it will fallback to an internal .htmlhintrc found in config folder.


Lint Sass

speedy-build-tools lint-sass

| Option | Description | Default Value | Type | |---------------------|-----------------------------------------------------------------------|-------------------------|----------------------------| | --config, -c | Lint rules file path | .stylelintrc | string | | --files, -f | Files to be linted - Supports glob patterns | src/**/*.*(scss\|sass)| Array | | --formatter | Formatter to use to format the linter results | verbose | json \| verbose \| string | | --fix | Determines whether to auto fix lint issues (which support fixing) | false | boolean | | --continueOnError | Determines whether to exit with a non-zero status code on lint errors | false | boolean |

Rules

By default, it will try to locate the .stylelintrc file in the root of your project folder.

If the file is not found it will fallback to an internal .stylelintrc found in config folder. This file can also be used as a base for your rules.


Lint TypeScript

speedy-build-tools lint-ts

| Option | Description | Default Value | Type | |---------------------|-----------------------------------------------------------------------|---------------|-----------------------------------------------------------------------------------------------| | --config, -c | Lint rules file path | tslint.json | string | | --program, -p | Path for tsconfig | tsconfig.json | string | | --files, -f | Files to be linted - Supports glob patterns | src/**/*.ts | Array | | --formatter | Formatter to use to format the linter results | stylish | vso \| verbose \| prose \| stylish \| pmd \| json \| msbuild \| fileList \| codeFrame \| checkstyle | | --fix | Determines whether to auto fix lint issues (which support fixing) | false | boolean | | --continueOnError | Determines whether to exit with a non-zero status code on lint errors | false | boolean |

Rules

By default, it will try to locate the tslint.json file in the root of your project folder.

If the file is not found it will fallback to an internal tslint.json found in config folder. This file can also be used as a base for your rules.


Global Options

| Option | Description | |-------------------|------------------------| | --debug | Show debug information | | --help, -h | Show help | | --version, -v | Show version number |

Display general help

speedy-build-tools --help

Display help specific to a task:

speedy-build-tools lint-sass --help

To display help when running the task from a mapped npm script you should omit the --;

npm run lint-sass help

Stack