GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - auroraVasconcelos/component-library-template: VI starter to build a web components library based on Stencil.js and bringing together all the standards we have.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

423 Commits
423 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.scripts
.scripts
 
 
.storybook
.storybook
 
 
screenshot
screenshot
 
 
src
src
 
 
testing
testing
 
 
types
types
 
 
.browserslistrc
.browserslistrc
 
 
.cz-config.js
.cz-config.js
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.lintstagedrc
.lintstagedrc
 
 
.npmignore
.npmignore
 
 
.npmrc
.npmrc
 
 
.stylelintignore
.stylelintignore
 
 
.stylelintrc
.stylelintrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
README.md
README.md
 
 
commitlint.config.js
commitlint.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
stencil.config.ts
stencil.config.ts
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.storybook.json
tsconfig.storybook.json
 
 

Repository files navigation

Component library template

Setup

This template can be used to create a component library repository using stencilJS.

A setup with this component library is recommended for components that are used by more than one project (now or in the future). Business logic should be kept out of this repository.

When you created your own repository with this template please follow the following instructions and change this readme according to your project setup afterwards.

1. After installing the packages, use npm run init to initialize your project. You can customize the preview here: .storybook/manager.js

2. Create new components with npm run generate - Don't forget to use a dash in the component's name! There is already an example component in the components folder where we used Storybook Knobs and Faker, to give you an idea :)

3. Start the build and serve process with npm start.

Features

Tests

Run test:generate-output before running npm start to see the test results for the generated component tests in the preview.

Screenshot Testing

Configure your GitHub repository by code

We provide some GitHub repository configuration standards, like recommended branch protection settings, with this template. You can find the configuration in .github/settings.yml. If you want those settings to be applied to your GitHub repository, install the GitHub Settings app on your repository (more info here). The app will read the settings.yml automatically and apply them to your repository. Afterwards, you can add or customize settings.yml according to your preferences.

Extend component generator

If you want to generate more than the given files for each component, you can add an component-config.js on the project's base level and export an array of functions which take the component's name as value and return an array of objects, for example:

exports.extenderArr = [
  (name) => [
      {
        fileName: `${name}.ts`,
        content: `content for ${name}.ts`,
      },
    ]
];

Commitizen / commitlint config

When adding a new component with the generator, a new scope with the component's title will be automatically added to commitizen and commitlint. If you want additional custom scopes, you can add them manually into the "scopes" property of .cz-config.js.

About

VI starter to build a web components library based on Stencil.js and bringing together all the standards we have.

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.