/Web-Components

Worekd in a team of tem members to design and develop a web component library

Primary LanguageJavaScript

Team 6 Logo

This is a library of interchangeable web components based on ElementUI!

Travis BuildCode Climate MaintainabilityCode Climate Test Coverage


Lannister Web Component

Features

  • Complete Documentation — With extensive functional documentation allowing you to have vast knowledge on Lannister component. This will allow you to easily integrate Lannister components to any frameworks you know and love.
  • High performance — With Lannister component, you will get blazing fast load time, thanks to minified vanilla Javascript.
  • <5 minutes quickstart — With our quickstart docs, get lannister component loaded to your project in no time.
  • Industry standard pipeline — Take comfort in knowing that our component will not fail under normal circumstances. Our unit testing covers input cleaning and crossbrowser integration.
  • CDN Hosted Content — Providing easy to use component. You no longer need to download any files manually.

Getting Started with Lannister Component

Prerequisites

You're going to need:

  • Browser — Any version of Chrome or Firefox. Currently not fully support Safari,IE,and Opera.
  • Laptop — Any operating system would be fine.
  • Text EditorTextEdit or Notepad works just fine.

Getting Set Up

To get the component working in your site, you will need to put this script to the bottom of your HTML file.

  <script src="https://unpkg.com/lannister-component@latest/dist/bundle.js"></script>

Next, you can load up your desired component above the script.

  <lan-button>Lannister Button</lan-button>

Other Documentation

Contributions

We accept contributions in the form of pull requests.

You will only need to do the following:

  1. Fork this library
  2. Make pull requests
  3. Give details on what you are doing on that PR.

To run the full suite:

  1. Install npm.

  2. Install Chrome.

  3. Install Firefox.

  4. Install Git.

  5. Install Java.

  6. Add Java to the PATH environment variable.

  7. git clone https://github.com/ucsd-cse112/team6.git into your preferred directory.

  8. Navigate to the team6 folder.

  9. npm install

  10. npm update

  11. npm run lint

  12. npm install bower

  13. For Mac/Linux: ./node_modules/.bin/bower install --save-dev web-component-tester

    For Windows: node_modules\.bin\bower.cmd install --save-dev web-component-tester

  14. npm run test

  15. npm run doc

Troubleshooting:

npm run test

If you're getting an installation error along the lines of "could not request header," go to package.json and navigate to scripts then test. Change wct to wct --skip-selenium-install.

On Mac, try going to node_modules/wct-local/selenium-overrides.js and change the version from 3.12.0 to 3.14.0. For more info, visit the Polymer web-component-tester repo.

Have fun humans!

FAQ