-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tooling): Initial setup and scripts
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
1 parent
4847aa5
commit 223d149
Showing
12 changed files
with
18,483 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,8 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
# Additional Project files | ||
lib/ | ||
dist/ | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.