Socket
Socket
Sign inDemoInstall

gt-test-component

Package Overview
Dependencies
5
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gt-test-component

greytHR Web Components


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
93.2 MB
Created
Weekly downloads
 

Readme

Source

![Build with Web-Component]

Getting Started

To start building a web component using Stencil, clone this repo to a new directory:

git clone https://github.com/<repo-name>.git my-component
cd <navigate to repo>

and run:

npm install
npm start

To build the component for production, run:

npm run build

To run the unit tests for the components, run:

npm test

Naming Components

When creating new component tags, we recommend not using stencil in the component name (ex: <stencil-datepicker>). This is because the generated component has little to nothing to do with Stencil; it's just a web component!

Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic generated web components use the prefix ion.

Project structure

The project's structure will look similar to this:

liber
├── src
│   ├── components 
│   │            └── pre-sample
│   │                 ├── pre-component.css
│   │                 ├── pre-component.e2e.ts
│   │                 ├── pre-component.spec.ts
│   │                 └── pre-component.tsx
│   ├── shared
│   ├── assets
│   ├── index.html
│   ├── index.ts
├── package.json
└── stencil.config.ts

FAQs

Last updated on 02 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc