Skip to content

Commit

Permalink
feat: setup builds and docs
Browse files Browse the repository at this point in the history
chore: setup build process

feat: added defaults setting

chore: added build tests

feat: added typedoc

chore: updated comments per fn for doc generation

fix: doc comments and keyuri understanding

chore: centralise build config generation

chore: rename secret types for clarity

feat: abstract out other authentcator methods

chore: added legacy wrapper

chore: more tests + standardise comments

chore: added config and builds

feat: added project website

chore: update comments and some pixel count

chore: remove unnecessary files

chore: centralise all build related config

chore: move styles into css

chore: update script for readability

fix: dev env

chore: explicit targets env

chore: added shims instead of native

chore: multi-format build output

feat: update bundler, update browser module size

feat: cleaned up API

chore: updating readme
  • Loading branch information
yeojz committed Aug 25, 2019
1 parent d3bc82c commit b088efe
Show file tree
Hide file tree
Showing 84 changed files with 19,649 additions and 801 deletions.
6 changes: 1 addition & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"presets": [
["@babel/preset-env", {
"targets": {
"node": "8"
}
}],
"@babel/preset-env",
"@babel/preset-typescript"
]
}
68 changes: 43 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,29 @@ aliases:
else
echo "skipping publication."
fi
- &site_publish
steps:
- checkout
- restore-cache: *restore_release_cache
- run: *install_npm
- save_cache: *save_release_cache
- run:
name: configure git user
command: |
git config --global user.email $PROJECT_DEPLOY_EMAIL
git config --global user.name $PROJECT_DEPLOY_NAME
- run:
working_directory: ~/project/site
name: deploying website
command: |
if [[ $CIRCLE_PROJECT_USERNAME == $PROJECT_OWNER_NAME && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
npm install
npm run build:deps
npm run build
npm run deploy
else
echo "skipping deploy."
fi
version: 2
jobs:
Expand Down Expand Up @@ -154,30 +177,15 @@ jobs:
<<: *defaults
<<: *npm_publish

publish_npm_support:
environment:
RUNTIME_NPM_TAG: support
<<: *defaults
<<: *npm_publish

deploy_website:
<<: *defaults
steps:
- checkout
- restore-cache: *restore_release_cache
- run: *install_npm
- save_cache: *save_release_cache
- run:
name: configure git user
command: |
git config --global user.email $PROJECT_DEPLOY_EMAIL
git config --global user.name $PROJECT_DEPLOY_NAME
- run:
working_directory: ~/project/site
name: deploying website
command: |
if [[ $CIRCLE_PROJECT_USERNAME == $PROJECT_OWNER_NAME && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
npm install
npm run build:deps
npm run build
npm run deploy
else
echo "skipping deploy."
fi
<<: *site_publish

workflows:
version: 2
Expand Down Expand Up @@ -209,7 +217,7 @@ workflows:
- node_v8
- node_v10
filters: *filter_tag_beta
- hold:
- hold_stable:
type: approval
requires:
- node_v6
Expand All @@ -218,6 +226,16 @@ workflows:
filters: *filter_tag_stable
- publish_npm_stable:
requires:
- hold
- hold_stable
filters: *filter_tag_stable
- hold_support:
type: approval
requires:
- node_v6
- node_v8
- node_v10
filters: *filter_tag_stable
- publish_npm_support:
requires:
- hold_support
filters: *filter_tag_stable

79 changes: 59 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,76 @@
.DS_Store
.idea
.vscode

*.key
*.pem
*.pyc

pids
*.pid
*.seed

# Logs
logs
*.log
dump.rdb
npm-debug.log*
yarn-debug.log*
yarn-error.log*

build/Release
node_modules
node_modules-*
jspm_packages
# Runtime data
pids
*.pid
*.seed
*.pid.lock

lib
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

audit.txt
/build-*
# Output of 'npm pack'
*.tgz

# dotenv environment variables file
.env

# gatsby files
.cache/
public

# Mac files
.DS_Store

# Yarn
yarn-error.log
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity

# Custom
.vscode
.rpt2_cache/
audit.txt
/builds
lib.test.*
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.cache
package.json
package-lock.json
public
builds
Loading

0 comments on commit b088efe

Please sign in to comment.