Skip to content

Commit

Permalink
chore(tooling): Initial setup and scripts
Browse files Browse the repository at this point in the history
I have setup the initial setup files and scripts for the project (based on another one of my
projects) and began installing and checking necessary dependencies. This is still under review and
testing (especially with Travis-CI) and will need to go through a few iterations as well as some
build test checking.

re #2
  • Loading branch information
srepollock committed Nov 16, 2018
1 parent 4847aa5 commit 223d149
Show file tree
Hide file tree
Showing 12 changed files with 18,483 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-runtime",
"@babel/plugin-transform-arrow-functions",
"@babel/plugin-syntax-dynamic-import"
],
"compact": "auto"
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@ typings/

# next.js build output
.next

# Additional Project files
lib/
dist/
docs/
22 changes: 22 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extension": [
".ts",
".tsx"
],
"include": [
"src/*"
],
"exclude": [
"dist",
"docs",
"coverage",
"lib"
],
"reporter": [
"html",
"text-summary"
],
"cache": true,
"sourceMap": false,
"instrument": false
}
57 changes: 57 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: false
dist: trusty
sudo: required
node_js:
- "stable"
- "10"
- "9"
- "8"
- "7"
- "6"
stages:
- setup
- test
- document
- deploy
jobs:
include:
- stage: setup
name: install
script:
- npm i -g typescript@latest
- npm i -g codecov
- stage: test
name: "Run all unit tests"
script: npm run test:all
name: "Run smoketests"
script: npm run smoketest
- stage: document
name: "Generate coverage report"
script: npm run coverage
name: "Generate API documents"
script: npm run docs
- stage: deploy
if: branch = master
name: "Deploying new project release with semantic-release in CI"
script: npm run travis-deploy-once "npm run semantic-release"
name: "Deploy Github Pages"
script: echo "Deploying GitHub Pages..."
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: master
name: "Deploying Codecov report"
script: codecov
branches:
except:
- /^v\d+\.\d+\.\d+$/
git:
depth: 3
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ Now remove this part and fill out the rest with your unique project information.

# Project Title

[One Paragraph of project description goes here]
[A short project description goes here. Up to a paragraph but no more.]

[![TypeScript](https://badges.frapsoft.com/typescript/version/typescript-next.svg?v=101)](https://github.com/ellerbrock/typescript-badges/)
[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Master: [![Build Status](https://travis-ci.org/srepollock/ts-bootstrap.svg?branch=master)](https://travis-ci.org/srepollock/ts-bootstrap) [![Codecov](https://codecov.io/gh/srepollock/ts-bootstrap/branch/master/graph/badge.svg)](https://codecov.io/gh/srepollock/ts-bootstrap/branch/master/graph/badge.svg)

Expand Down
Loading

0 comments on commit 223d149

Please sign in to comment.