https://github.com/wasc-io/tools
Opinionated toolkit for every JavaScript project in need 🚨
https://github.com/wasc-io/tools
eslint javascript jest prettier wasc webpack
Last synced: 5 months ago
JSON representation
Opinionated toolkit for every JavaScript project in need 🚨
- Host: GitHub
- URL: https://github.com/wasc-io/tools
- Owner: wasc-io
- Created: 2018-08-06T14:19:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2026-02-02T21:46:39.000Z (5 months ago)
- Last Synced: 2026-02-03T11:04:51.061Z (5 months ago)
- Topics: eslint, javascript, jest, prettier, wasc, webpack
- Language: JavaScript
- Homepage:
- Size: 2.7 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# \wasc-tools\
# [](https://github.com/wasc-io/tools)
Opinionated toolkit for every JavaScript project in need 🚨
# Installation
Install in your project:
```
yarn add -D @wasc/tools
```
## Usage
This tool is straight-forward: it transpiles with, it lints, it pretties, it tests and it even counts lines of code. All behind an easy cli.
For big projects we recommend to use the tool inside the package.json's scripts-tag:
```json
"scripts": {
"start": "wasc-tools watch --debug",
"build": "wasc-tools build",
"lint": "wasc-tools lint",
"format": "wasc-tools format",
"test": "wasc-tools test",
"count": "wasc-tools count",
}
```
## **!!!** IMPORTANT Note
For usage with the integrated start and build commands, you need to install the package `source-map-support`. It replaces all stacktraces, with resolved locations from the compiled source maps.
## Usage with IDE tooling
The project exports a `prettier.js` and `eslint.js` file with the accepted configurations. In your project just add an `.eslintrc.js` file:
```javascript
module.exports = require('@wasc/tools/eslint');
```
and a `prettier.config.js`:
```javascript
module.exports = require('@wasc/tools/prettier');
```
## Preact-cli presets
This exports preact-cli configuration snippets, they can be imported for a `preact.config.js` file:
```javascript
import { graphql } from '@wasc/tools/preact';
export default function (...args) {
// Allows .graphql-file imports in your preact-project
graphql(...args);
}
```
We include:
- `graphql()`: import `.graphql` files
- `markdown()`: import `.md` file which are compiled to HTML at build time
- `compression()`: compresses the output bundles with gzip and brotli to serve static precompressed file with nginx for example
- `staticFiles()`: statically copies robots.txt and security.txt files to the output root and `.well-known/security.txt` respectivly
- `babel()`: adds optional-chaining and transform-react-jsx-source plugins to babel
- `typescript()`: allows for ts/tsx entrypoint files
## [Changelog](CHANGELOG.md)