Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Commit f883085

Browse files
committed
feat(component): implement Authentication component
0 parents  commit f883085

29 files changed

+942
-0
lines changed

.gitignore

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# Generated apidocs
61+
api-docs/
62+
63+
# Transpiled JavaScript files from Typescript
64+
/dist
65+
66+
# Webstorm
67+
.idea

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
*.json

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"bracketSpacing": false,
3+
"singleQuote": true,
4+
"printWidth": 80,
5+
"trailingComma": "all"
6+
}

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: node_js
2+
node_js:
3+
- lts/*
4+
- node
5+
before_install:
6+
- npm install -g nsp
7+
install:
8+
- npm install
9+
script:
10+
- nsp check
11+
- npm run test
12+
- codecov
13+
cache:
14+
directories:
15+
- ~/.npm
16+
notifications:
17+
email: false
18+
branches:
19+
except:
20+
- /^v\d+\.\d+\.\d+$/
21+
jobs:
22+
include:
23+
- stage: release
24+
node_js: lts/*
25+
script: skip
26+
deploy:
27+
provider: script
28+
skip_cleanup: true
29+
script:
30+
- npm run semantic-release

.vscode/settings.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"editor.rulers": [80],
3+
"editor.tabCompletion": "on",
4+
"editor.tabSize": 2,
5+
"editor.trimAutoWhitespace": true,
6+
"editor.formatOnSave": true,
7+
8+
"files.exclude": {
9+
"**/.DS_Store": true,
10+
"**/.git": true,
11+
"**/.hg": true,
12+
"**/.svn": true,
13+
"**/CVS": true,
14+
"dist": true,
15+
},
16+
"files.insertFinalNewline": true,
17+
"files.trimTrailingWhitespace": true,
18+
19+
"tslint.ignoreDefinitionFiles": true,
20+
"typescript.tsdk": "./node_modules/typescript/lib"
21+
}

.vscode/tasks.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Watch and Compile Project",
8+
"type": "shell",
9+
"command": "npm",
10+
"args": ["--silent", "run", "build:watch"],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"problemMatcher": "$tsc-watch"
16+
},
17+
{
18+
"label": "Build, Test and Lint",
19+
"type": "shell",
20+
"command": "npm",
21+
"args": ["--silent", "run", "test:dev"],
22+
"group": {
23+
"kind": "test",
24+
"isDefault": true
25+
},
26+
"problemMatcher": ["$tsc", "$tslint5"]
27+
}
28+
]
29+
}

.yo-rc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

DEVELOPING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Developer's Guide
2+
3+
## VSCode setup
4+
5+
Install the following extensions:
6+
7+
- [tslint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint)
8+
- [prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
9+
10+
## Development workflow
11+
12+
### Visual Studio Code
13+
14+
1. Start the build task (Cmd+Shift+B) to run TypeScript compiler in the
15+
background, watching and recompiling files as you change them. Compilation
16+
errors will be shown in the VSCode's "PROBLEMS" window.
17+
18+
2. Execute "Run Rest Task" from the Command Palette (Cmd+Shift+P) to re-run the
19+
test suite and lint the code for both programming and style errors. Linting
20+
errors will be shown in VSCode's "PROBLEMS" window. Failed tests are printed
21+
to terminal output only.
22+
23+
### Other editors/IDEs
24+
25+
1. Open a new terminal window/tab and start the continous build process via
26+
`npm run build:watch`. It will run TypeScript compiler in watch mode,
27+
recompiling files as you change them. Any compilation errors will be printed
28+
to the terminal.
29+
30+
2. In your main terminal window/tab, run `npm run test:dev` to re-run the test
31+
suite and lint the code for both programming and style errors. You should run
32+
this command manually whenever you have new changes to test. Test failures
33+
and linter errors will be printed to the terminal.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @labshare/lb-services-auth
2+
3+
[![LoopBack](https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)](http://loopback.io/)

0 commit comments

Comments
 (0)