Skip to content

Commit

Permalink
Added a distribution folder in the source directory. These files are …
Browse files Browse the repository at this point in the history
…copied over into the actual dist when the project is built. This is part of issue #13
  • Loading branch information
MKHenson committed Jun 22, 2016
1 parent e1700c0 commit 8725be8
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -25,11 +25,18 @@ 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() {

return gulp.src(['src/definitions/custom/definitions.d.ts'], { base: "src/definitions/custom/" })
.pipe(gulp.dest(tsConfig.compilerOptions.outDir + "/definitions"));
});

gulp.task('build-all', ['ts-code', 'ts-code-definitions']);
gulp.task('build-all', ['ts-code', 'ts-code-definitions', 'dist-files']);
70 changes: 70 additions & 0 deletions src/dist/example-config.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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",
]
}
}
37 changes: 37 additions & 0 deletions src/dist/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> (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"
}
}

0 comments on commit 8725be8

Please sign in to comment.