1.0.25 • Published 3 years ago

test-ts-web-component v1.0.25

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Typescript Web Component Boilerplate

Template to build lazy loaded web components collections with Typescript and nothing(almost)else. Well, there're some other dependencies but are mainly for webpack.

Installation

https://github.com/lucabro81/typescript-web-component-boilerplate.git
cd path/to/project/folder/typ
npm install

How to use

npm run create-new-component nameComponent

This command will create a component folder in /src, named /name-component, with four files inside: a Typescript class, a file that exports an array of observed attributes, the css file and the html template.

An import will be added to main.ts

Scripts

npm run start

Start a webpack dev server with hot reloading


npm run watch

Start a webpack watcher


npm run build

Guess what... yep.


npm run build:prod

Guess what... yep, but production mode.


npm run clean

Get rid of node_modules and package-lock.json and reinstall all the (few) dependencies


npm run update

Update dependencies.


npm run lint

Linter and prettier that run on staged changes, it seems the git hook on commit doesn't work with phpstorm, I've to understand why

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago