Skip to content

Commit

Permalink
Merge pull request #88 from TAMULib/sprint6-staging
Browse files Browse the repository at this point in the history
Sprint6 staging
  • Loading branch information
jeremythuff authored Jun 11, 2020
2 parents 1250162 + d789589 commit 1a758cc
Show file tree
Hide file tree
Showing 28 changed files with 3,928 additions and 636 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ testem.log
Thumbs.db

coverage/
development/
docs/
static/
.lighthouseci/
.vscode/
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: node_js

addons:
chrome: stable

node_js:
- "10"

Expand All @@ -8,11 +11,14 @@ services:

install:
- npm install

script:
- npm run build
- npm run test:ci

after_success:
- npm run test:report
- npm run build:docs-production
- cat ./static/tamu-library-components/reports/coverage/tamu-library-components/lcov.info | ./node_modules/coveralls/bin/coveralls.js,
- npm run build:static-production

notifications:
webhooks:
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
[![Build Status](https://travis-ci.org/TAMULib/tamu-library-components.svg?branch=master)](https://travis-ci.org/TAMULib/tamu-library-components)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/tamu-library-components/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/tamu-library-components?branch=master) [![Compodoc Coverage](https://tamulib.github.io/tamu-library-components/development/images/coverage-badge-documentation.svg)](https://tamulib.github.io/tamu-library-components/development/coverage.html)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/tamu-library-components/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/tamu-library-components?branch=master)
[![Compodoc Coverage](https://tamulib.github.io/tamu-library-components/docs/development/images/coverage-badge-documentation.svg)](https://tamulib.github.io/tamu-library-components/docs/development/coverage.html)

# Lighthouse Badges
[![Performance](https://tamulib.github.io/tamu-library-components/reports/audit/assets/performance.svg)](https://tamulib.github.io/tamu-library-components/reports/audit/#performance)
[![Accessibility](https://tamulib.github.io/tamu-library-components/reports/audit/assets/accessibility.svg)](https://tamulib.github.io/tamu-library-components/reports/audit/#accessibility)
[![Best Practices](https://tamulib.github.io/tamu-library-components/reports/audit/assets/best-practices.svg)](https://tamulib.github.io/tamu-library-components/reports/audit/#best-practices)
[![SEO](https://tamulib.github.io/tamu-library-components/reports/audit/assets/seo.svg)](https://tamulib.github.io/tamu-library-components/reports/audit/#seo)
[![Progressive Web App](https://tamulib.github.io/tamu-library-components/reports/audit/assets/pwa.svg)](https://tamulib.github.io/tamu-library-components/reports/audit/#pwa)

# TamuLibraryComponents

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.21.

[Documentation](https://tamulib.github.io/tamu-library-components/).
[Documentation](https://tamulib.github.io/tamu-library-components/docs/).
[Reports](https://tamulib.github.io/tamu-library-components/reports/).

## Development server

Expand Down
33 changes: 33 additions & 0 deletions index-docs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html>

<head>
<title>TAMU Components Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="src/favicon.ico">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>

<body>
<tl-header></tl-header>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">TAMU Components Documentation</h1>
<p class="lead">Choose your documentation:
<!-- <a class="btn btn-primary ml-2" href="/tl-components/docs/usage">Usage</a> -->
<a class="btn btn-success ml-2" href="/tamu-library-components/docs/development/index.html">Development</a>
<!-- <a class="btn btn-info ml-2" href="https://github.com/TAMULib/tl-components/wiki">Wiki</a> -->
</p>
</div>
</div>

<tl-footer>
<wvr-nav-li href="https://github.com/TAMULib/tamu-library-components">
<wvr-text value="Github"></wvr-text>
</wvr-nav-li>
</tl-footer>
<script defer src="dist/bundle/0x/tl-components.js"></script>
</body>

</html>
32 changes: 32 additions & 0 deletions index-reports.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!doctype html>
<html>

<head>
<title>TAMU Components Reports</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="src/favicon.ico">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>

<body>
<tl-header></tl-header>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">TAMU Components Reporting</h1>
<p class="lead">Choose your option:
<a class="btn btn-primary ml-2" href="/tamu-library-components/reports/audit/index.html">Audit</a>
<a class="btn btn-success ml-2" href="/tamu-library-components/reports/coverage/tamu-library-components/index.html">Coverage</a>
</p>
</div>
</div>

<tl-footer>
<wvr-nav-li href="https://github.com/TAMULib/tamu-library-components">
<wvr-text value="Github"></wvr-text>
</wvr-nav-li>
</tl-footer>
<script defer src="dist/bundle/0x/tl-components.js"></script>
</body>

</html>
6 changes: 4 additions & 2 deletions index-doc.html → index-static.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-3">TAMU Components Documentation</h1>
<p class="lead">CompoDoc: <a class="btn btn-success ml-2" href="development/index.html">Development</a></p>
<!-- <p class="lead">CompoDoc: <a class="btn btn-success ml-2" href="development/index.html">Development</a></p> -->
<a class="btn btn-primary ml-2" href="/tamu-library-components/docs">Documentation</a>
<a class="btn btn-success ml-2" href="/tamu-library-components/reports">Reports</a>
</div>
</div>

Expand All @@ -25,7 +27,7 @@ <h1 class="display-3">TAMU Components Documentation</h1>
<wvr-text value="Github"></wvr-text>
</wvr-nav-li>
</tl-footer>
<script defer src="dist/bundle/0x/tl-components.js"></script>
<script defer src="docs/dist/bundle/0x/tl-components.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function (config) {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/tamu-library-components'),
dir: require('path').join(__dirname, './static/tamu-library-components/reports/coverage/tamu-library-components'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
Expand Down
25 changes: 25 additions & 0 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "lighthouse:default",
"siteTitle": "Lighthouse Report",

"ci": {
"collect": {
"numberOfRuns": 1,
"url": ["http://localhost:8080/"],
"startServerCommand": "npm run start:static"
},
"assert": {
"assertions": {
"first-contentful-paint": "off",
"categories:performance": ["error", {"minScore": 0}],
"categories:accessibility": ["error", {"minScore": 0.9}],
"categories:best-practices": ["error", {"minScore": 0}],
"categories:seo": ["error", {"minScore": 0}],
"categories:pwa":["error", {"minScore": 0}]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}
Loading

0 comments on commit 1a758cc

Please sign in to comment.