1.2.23 • Published 1 year ago
@dizmo/generator-component v1.2.23
@dizmo/generator-component
A generator for JavaScript, CoffeeScript and TypeScript web components
Generates NPM compatible web components' projects that can be published, installed and even upgraded. The supported development steps are cleaning, linting, building (including bundling) and testing (including coverage statistics).
Prerequisites
- Node.js v14.15.5 LTS (or higher); for Linux distribution based packages (
deborrpm) see also binary distributions.
Installation
npm install -g yonpm install -g @dizmo/generator-componentHelp
yo @dizmo/component --helpGeneration
yo @dizmo/component [--git] [--coffeescript|--typescript]Upgrade
npm upgrade --global @dizmo/generator-componentyo @dizmo/component --upgrade --skip-installnpm install && npm audit fixDevelopment
Clean
npm run cleanBuild
npm run buildwithout linting and cleaning:
npm run -- build --no-lint --no-cleanwith UMD bundling (incl. minimization):
npm run -- build --prepackwith UMD bundling (excl. minimization):
npm run -- build --prepack --no-minifyLint
npm run lintwith auto-fixing:
npm run -- lint --fixTest
npm run testwithout linting, cleaning and (re-)building:
npm run -- test --no-lint --no-clean --no-buildCover
npm run coverwithout linting, cleaning and (re-)building:
npm run -- cover --no-lint --no-clean --no-buildDebugging
Connect my-component to another project:
[my-component] $ npm link # symlink global:my-component[a-project] $ npm link a-module # symlink node-modules:my-component[a-project] $ head webpack.config.js # ensure my-component in entry.mainentry: {
main: [..., 'my-component', './source/index.js']
}Disconnect my-component from the project:
[a-project] $ npm unlink my-component # delete local symlink[my-component] $ npm uninstall -g # delete global symlinkDocumentation
npm run docsPublication
npm publishinitially (if public):
npm publish --access=publicCopyright
© dizmo AG, Switzerland
1.2.23
1 year ago
1.2.20
3 years ago
1.2.21
3 years ago
1.2.19
4 years ago
1.2.18
4 years ago
1.2.17
4 years ago
1.2.16
4 years ago
1.2.15
4 years ago
1.2.14
4 years ago
1.2.12
5 years ago
1.2.13
5 years ago
1.2.11
5 years ago
1.2.8
5 years ago
1.2.9
5 years ago
1.2.7
5 years ago
1.2.6
5 years ago
1.2.5
5 years ago
1.2.4
5 years ago
1.2.3
5 years ago
1.2.2
5 years ago
1.2.0
5 years ago
1.2.1
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago