Skip to content

datavisyn/visyn_scripts

Repository files navigation

visyn_scripts

NPM version build

This package includes scripts and configuration files used by datavisyn repositories. Collecting everything in a single installable repository unifies configurations across many repositories, thus reducing the maintenance overhead.

Usage

Install visyn_scripts via npm: npm i --save-dev git+ssh://git@github.com/datavisyn/visyn_scripts.git#develop

Add visyn_scripts to your package.json scripts, i.e. add "compile": "visyn_scripts compile" and execute it with npm run compile, or alternatively directly execute it with npx visyn_scripts compile.

Scripts

The main purpose of visyn_scripts are the unified scripts:

build

Builds a workspace using webpack.

compile

Builds a repository using typescript.

copy

Copies assets, styles, and static files to the dist folder.

docs

Generates docs of a repository using typedoc.

lint

Lints a repository using ESLint.

test

Tests a repository using Jest.

Configurations

visyn_scripts also includes default configurations for ESLint, Prettier, Typescript, ... To integrate them in an existing repository, simply switch to .js configurations and reexport the configurations found in visyn_scripts. This way, any editor will look for a .prettierrc.js in the repository, and will find one exporting the common configuration.

module.exports = require('visyn_scripts/config/prettierrc.template');

FAQ

...