Skip to content

Commit

Permalink
feat(monorepo): move to monorepo structure, see #373
Browse files Browse the repository at this point in the history
  • Loading branch information
sibelius authored and markstos committed Jan 28, 2020
1 parent 1869d27 commit 84f9601
Show file tree
Hide file tree
Showing 31 changed files with 4,555 additions and 367 deletions.
8 changes: 8 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"packages": [
"packages/*"
],
"version": "1.1.0",
"npmClient": "yarn",
"useWorkspaces": true
}
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"type": "git",
"url": "https://github.com/bergie/passport-saml.git"
},
"main": "./lib/passport-saml",
"main": "packages/passport/lib/passport-saml",
"dependencies": {
"debug": "^3.1.0",
"passport-strategy": "*",
Expand All @@ -40,19 +40,21 @@
"body-parser": "^1.17.1",
"eslint": "^6.5.1",
"express": "^4.16.2",
"lerna": "^3.16.4",
"mocha": "^6.0.2",
"passport": "0.4.x",
"request": "^2.83.0",
"should": "*",
"sinon": "^7.2.7"
},
"private": "true",
"engines": {
"node": ">= 8"
},
"scripts": {
"test": "npm run lint && mocha",
"lint": "./node_modules/.bin/eslint lib",
"lint:fix": "./node_modules/.bin/eslint --fix lib"
"test": "yarn workspace passport-saml test",
"lint": "yarn workspace passport-saml npx eslint lib",
"lint:fix": "yarn workspace passport-saml eslint --fix lib"
},
"eslintConfig": {
"env": {
Expand All @@ -71,5 +73,10 @@
"always"
]
}
},
"workspaces": {
"packages": [
"packages/*"
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
56 changes: 56 additions & 0 deletions packages/passport/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"name": "passport-saml",
"version": "1.1.0",
"license": "MIT",
"keywords": [
"saml",
"adfs",
"sso",
"shibboleth"
],
"description": "SAML 2.0 authentication strategy for Passport",
"author": {
"name": "Henri Bergius",
"email": "henri.bergius@iki.fi",
"url": "http://bergie.iki.fi"
},
"contributors": [
"Michael Bosworth",
"Herbert Vojčík",
"Peter Loer",
"Mark Stosberg",
"Chris Barth"
],
"repository": {
"type": "git",
"url": "https://github.com/bergie/passport-saml.git"
},
"main": "./lib/passport-saml",
"dependencies": {
"debug": "^3.1.0",
"passport-strategy": "*",
"q": "^1.5.0",
"xml-crypto": "^1.1.4",
"xml-encryption": "^0.11.0",
"xml2js": "0.4.x",
"xmlbuilder": "^11.0.0",
"xmldom": "0.1.x"
},
"devDependencies": {
"body-parser": "^1.17.1",
"express": "^4.16.2",
"jshint": "^2.10.1",
"mocha": "^6.0.2",
"passport": "0.4.x",
"request": "^2.83.0",
"should": "*",
"sinon": "^7.2.7"
},
"engines": {
"node": ">= 6"
},
"scripts": {
"test": "mocha",
"jshint": "./node_modules/.bin/jshint lib"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var sinon = require('sinon');
var should = require( 'should' );
var SamlStrategy = require( '../lib/passport-saml/index.js' ).Strategy;
var SamlStrategy = require( '../lib/passport-saml' ).Strategy;
var MultiSamlStrategy = require( '../multiSamlStrategy' );

function verify () {}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/tests.js → packages/passport/test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
var express = require( 'express' );
var bodyParser = require( 'body-parser' );
var passport = require( 'passport' );
var SamlStrategy = require( '../lib/passport-saml/index.js' ).Strategy;
var SamlStrategy = require( '../lib/passport-saml' ).Strategy;
var request = require( 'request' );
var should = require( 'should' );
var zlib = require( 'zlib' );
var querystring = require( 'querystring' );
var parseString = require( 'xml2js' ).parseString;
var SAML = require( '../lib/passport-saml/index.js' ).SAML;
var SAML = require( '../lib/passport-saml' ).SAML;
var fs = require( 'fs' );
var sinon = require('sinon');

Expand Down
Loading

0 comments on commit 84f9601

Please sign in to comment.