diff --git a/gulpfile.js b/gulpfile.js index e878205..1b28674 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -9,7 +9,7 @@ var tsConfig = JSON.parse(fs.readFileSync('tsconfig.json')); // Builds each of the ts files into JS files in the output folder gulp.task('ts-code', function() { - return gulp.src(['src/**/*.ts', 'src/**/*.json'], { base: "src" }) + return gulp.src(['src/**/*.ts'], { base: "src" }) .pipe(ts({ "module": tsConfig.compilerOptions.module, "removeComments": tsConfig.compilerOptions.removeComments, @@ -25,6 +25,13 @@ gulp.task('ts-code', function() { .pipe(gulp.dest(tsConfig.compilerOptions.outDir)); }); +// Copies the distribution files from src to the dist folder +gulp.task('dist-files', function() { + + return gulp.src(['src/dist/*.json'], { base: "src/dist/" }) + .pipe(gulp.dest(tsConfig.compilerOptions.outDir)); +}); + // Builds each of the ts files into JS files in the output folder gulp.task('ts-code-definitions', function() { @@ -32,4 +39,4 @@ gulp.task('ts-code-definitions', function() { .pipe(gulp.dest(tsConfig.compilerOptions.outDir + "/definitions")); }); -gulp.task('build-all', ['ts-code', 'ts-code-definitions']); \ No newline at end of file +gulp.task('build-all', ['ts-code', 'ts-code-definitions', 'dist-files']); \ No newline at end of file diff --git a/src/dist/example-config.json b/src/dist/example-config.json new file mode 100644 index 0000000..635c1ac --- /dev/null +++ b/src/dist/example-config.json @@ -0,0 +1,70 @@ +{ + "host": "127.0.0.1", + "apiPrefix": "", + "accountRedirectURL": "http://host.com/admin/message", + "passwordResetURL": "http://host.com/admin/password-reset-form", + "userCollection": "users", + "debugMode": false, + "sessionCollection": "sessions", + "approvedDomains": [ + "webinate\\.net", + "127.0.0.1:80", + "http:\/\/127.0.0.1", + "localhost", + "^ws://www.webinate.net:123$", + "^webinate\\.net:80$", + "^webinate\\.net$", + "^.+\\.webinate\\.com$", + "^webinate\\.org", + "^.+\\.webinate\\.org", + ], + "portHTTP": 80, + "portHTTPS": 443, + "databaseHost": "127.0.0.1", + "databasePort": 27017, + "ssl": false, + "debugMode": true, + "sslKey": "", + "sslCert": "", + "sslRoot": "", + "sslIntermediate": "", + "sslPassPhrase": "", + "databaseName": "users", + "sessionPath": "/", + "sessionDomain": "", + "sessionPersistent": true, + "sessionLifetime": 1800, + "captchaPrivateKey": "GOOGLE_CAPTHCA_PRIVATE_KEY", + "captchaPublicKey": "GOOGLE_CAPTHCA_PUBLIC_KEY", + "adminUser": { + "username": "root", + "email": "root_email@host.com", + "password": "CHANGE_THIS_PASSWORD" + }, + "google": { + "keyFile": "", + "mail":{ + "apiEmail": "", + "from": "" + }, + "bucket": { + "projectId": "", + "bucketsCollection": "buckets", + "filesCollection": "files", + "statsCollection": "storageAPI", + "cacheLifetime": 2592000000 + } + }, + "websocket": { + "port": 8080, + "approvedSocketDomains": [ + "localhost", + "^ws://www.webinate.net:123$", + "^webinate\\.net:80$", + "^example\\.com$", + "^.+\\.example\\.com$", + "^example\\.org", + "^.+\\.example\\.org", + ] + } +} \ No newline at end of file diff --git a/src/dist/package.json b/src/dist/package.json new file mode 100644 index 0000000..9171362 --- /dev/null +++ b/src/dist/package.json @@ -0,0 +1,37 @@ +{ + "name": "webinate-users", + "version": "0.3.0", + "description": "User management helper for the webinate product range", + "main": "server/Main.js", + "repository": { + "type": "git", + "url": "https://github.com/MKHenson/webinate-users.git" + }, + "author": "Mathew Henson (http://webinate.net)", + "license": "ISC", + "bugs": { + "url": "https://github.com/MKHenson/webinate-users/issues" + }, + "homepage": "https://github.com/MKHenson/webinate-users", + "dependencies": { + "entities": "~1.1.1", + "morgan": "~1.5.1", + "winston": "~1.0.0", + "express": "~4.12.2", + "body-parser": "~1.12.0", + "method-override": "~2.3.1", + "recaptcha-async": "~0.0.4", + "mongodb": "~2.0.21", + "validator": "~3.39.0", + "bcryptjs": "~2.2.0", + "yargs": "~3.12.0", + "gcloud": "~0.24.1", + "googleapis": "~2.1.7", + "google-auth-library" : "~0.9.7", + "multiparty": "~4.1.2", + "compression": "~1.5.1", + "compressible": "~2.0.4", + "ws": "~0.8.0", + "xoauth2": "~1.1.0" + } +}