@shoutem/passport-shoutem v1.0.14
Shoutem passport strategy
Passport strategy for shoutem authentication system written in Node.js, using ES6 with babel, with:
Install from BitBucket
npm install git+ssh://git@bitbucket.org:fiveminutes/passport-shoutem.gitInstall a specific branch
npm install git+ssh://git@bitbucket.org:fiveminutes/passport-shoutem.git#branchAdd as a dependency in your package.json
Note that since this module depends on babel transpiled code, it declares babel-cli and babel-preset-es2015 dependencies which are only required so that transpilation is successfully completed in the postinstall hook.
"dependencies" : {
"passport-shoutem" : "git+ssh://git@bitbucket.org:fiveminutes/passport-shoutem.git#v.0.0.1"
}Commands
npm run buildTranspile source to ./build folder
npm run build:watchTranspile source to ./build folder and watch for changes made to source files.
npm testRun tests for project.
npm run lintCheck code style commit.
Editor configuration and linting
Editor configuration is contained in .editorconfig file which helps developers define and maintain consistent coding styles between different editors and IDEs. See more information on EditorConfig website.
Linting is done via eslint using Five's JavaScript style guide.
Installing packages
Installing packages (either with --save or --save-dev) is locked to exact version with .npmrc file. Use ncu command to check which packages need to be updated and to update them. Run npm test to make sure everything is working after updating packages as it should.