1.0.2 • Published 5 months ago
@delement/configs v1.0.2
Digital Element Frontend Configs
A set of configs for TypeScript, Webpack, PostCSS, SVGO and other tools useful in front-end development.
Example of usage
TypeScript config (exported by default)
In tsconfig.json
file:
{
"extends": "@delement/configs"
}
SVGO config
In svgo.config.mjs
file:
import config from "@delement/configs/svgo";
export default {
...config
};
CommitLint config
In svgo.config.ts
file:
import type { UserConfig } from "@commitlint/types";
import commitLintConfig from "@delement/configs/commitlint";
const Configuration: UserConfig = {
...commitLintConfig
};
export default Configuration;
Jest config
In jest.config.ts
file (loads with ts-node
):
import defaults from "@delement/configs/jest";
import type { Config } from "jest";
const config: Config = {
...defaults
};
export default config;
For developers
If you want to help with contribution of new features or need some changes please open src
folder than run npm install
, make changes and build library with Rollup via npm run build
.