Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
582b9fd
release 3.4
Sep 22, 2018
45dc10a
update docs
Sep 22, 2018
3784e42
Merge pull request #93 from Open-MBEE/release/3.4.0
shakeh Sep 23, 2018
681ff55
fix related docs in spec
Sep 26, 2018
df8fa1a
Merge branch 'hotfix/related'
Sep 26, 2018
8c8f436
fix version
Sep 26, 2018
2ce182b
Merge branch 'master' into release/3.5.0
shakeh Jan 22, 2019
99a4b90
release 3.5
Jan 22, 2019
8f02efc
Merge branch 'release/3.5.0' of github.com:Open-MBEE/ve into release/…
Jan 22, 2019
09a8677
3.5.1 release
Feb 21, 2019
ff66ead
Merge branch 'release/3.5.1'
Feb 21, 2019
6772d12
Merge branch 'master' into release/3.5.2
shakeh Apr 8, 2019
9aefacc
Merge pull request #127 from Open-MBEE/release/3.5.2
shakeh Apr 8, 2019
f711f88
update version for master release
shakeh May 28, 2019
c816377
Merge pull request #411 from CAE/release/internal-3.5.4
shakeh May 28, 2019
78b2192
reuse 3.5.4 release
Jun 24, 2019
e2e68eb
Merge branch 'release/3.5.4'
Jun 24, 2019
4a69ac4
Merge branch 'release/3.5.5'
Sep 16, 2019
6c129e0
up version
Jan 15, 2020
5ad2d6b
Merge branch 'release/3.6.0'
Jan 16, 2020
903d5fa
release
Feb 4, 2020
1acf5f6
Merge branch 'release/3.6.1'
Feb 4, 2020
d58f266
commit local changes
Enquier Dec 23, 2020
1f70ad2
check for _isAppendix in tree (ported from omg)
Aug 20, 2021
442311c
Retooling for mms4
Enquier Aug 26, 2021
ebe4991
Merge branch 'develop' into feature/mms4
Enquier Aug 26, 2021
2051107
Add configuration file and system
Enquier Aug 27, 2021
742072f
Remove old config and add branding system to the config file
Enquier Aug 27, 2021
d45eb24
add new package-lock.
Enquier Aug 27, 2021
87aa4a2
Fix authentication and Orgs lookup
Enquier Sep 1, 2021
4fcfe2e
Merge branch 've_mms4_backport_os' of https://github.com/BA-MBSE/ve i…
Enquier Sep 8, 2021
148e657
Merge commit '9cccfc950b52544892a73872db4bd9dec836c149' into feature/…
Enquier Sep 8, 2021
e2fee1c
Attempting to back out omg changes
Enquier Sep 21, 2021
13ed472
fix env.js
Enquier Sep 21, 2021
50e0f91
Redoing env service in a more extnsible way
Enquier Sep 21, 2021
c3bb89e
Fix URL service; add documentation for configuration service
Enquier Sep 21, 2021
c3c4848
Add fixes to support refactoring of mms4 users endpoint
Enquier Sep 21, 2021
48d44c0
Updates based on code review
Enquier Sep 30, 2021
8a7a778
Handle incomplete Users Controller in MMS4, remove Jobs
Enquier Sep 30, 2021
09016a2
Cleanup
Enquier Oct 11, 2021
5ebb561
Fixing example config to work in both dev and prod
Enquier Oct 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
################################################################################
# Dockerfile
#
# Josh Kaplan
# joshua.d.kaplan@lmco.com
# Enquier
# openmbee@gmail.com
#
# This is the Dockerfile for View Editor (VE).
# To build the container, run the following command: `docker build -t ve .`
Expand All @@ -11,7 +11,7 @@
################################################################################
FROM node:8

MAINTAINER Josh Kaplan <joshua.d.kaplan@lmco.com>
ENV VE_ENV 'example'

WORKDIR /opt/mbee/ve
COPY . /opt/mbee/ve
Expand Down Expand Up @@ -58,4 +58,4 @@ EXPOSE 9000

# When the container runs, we run grunt. The second argument should reference a
# server defined in the angular-mms-grunt-servers.json file.
CMD ["grunt", "server:dev"]
CMD ["sh", "-c", "grunt release:docker --env=${VE_ENV}"]
Binary file added Documents/ViewEditorUserGuide-OpenMBEE.pdf
Binary file not shown.
217 changes: 107 additions & 110 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = function(grunt) {
configureProxies: 'grunt-connect-proxy-updated',
artifactory: 'grunt-artifactory-artifact'
});
// Project configuration.
var env = grunt.option('env') || 'example';

var jsFiles = ['app/js/**/*.js', 'src/directives/**/*.js', 'src/services/*.js'];

Expand All @@ -20,105 +22,99 @@ module.exports = function(grunt) {
var connectObject = {
docs: {
options: {
hostname: 'localhost',
hostname: '*',
port: 10000,
base: './dist/docs'
}
}
};

if (grunt.file.exists('angular-mms-grunt-servers.json')) {
var servers = grunt.file.readJSON('angular-mms-grunt-servers.json');

// Set proxie info for server list
for (var key in servers) {
var serverPort = 443;
var serverHttps = true;
if (key === "localhost") {
serverPort = 8080;
serverHttps = false;
}
connectObject[key] = {
//if (grunt.file.exists('angular-mms-grunt-servers.json')) {
//var server = grunt.file.readJSON('angular-mms-grunt-servers.json');
//ar serverPort = server.mms_port;
//var serverHttps = true;
var serveStatic = require('serve-static');
var modRewrite = require('connect-modrewrite');
connectObject["docker"] = {
options: {
hostname: '0.0.0.0',
port: 9000,
protocol: 'http',
//open: true,
//key: grunt.file.read('/run/secrets/server.key').toString(),
//cert: grunt.file.read('/run/secrets/server.crt').toString(),
debug: true,
base: {
path: './dist',
options: {
hostname: '*',
port: 9000,
open: true,
base: {
path: './dist',
options: {
// Add this so that the browser doesn't re-validate static resources
// Also, we have cache-busting, so we don't have to worry about stale resources
maxAge: 31536000000
}
},
middleware: function (connect, options, middlewares) {
middlewares.unshift(
require('grunt-connect-proxy-updated/lib/utils').proxyRequest,
// add gzip compression to local server to reduce static resources' size and improve load speed
require('compression')(),
// need to add livereload as a middleware at this specific order to avoid issues with other middlewares
require('connect-livereload')());
return middlewares;
}
},
proxies: [
{
context: '/mms-ts',
host: 'mms-ts-uat.jpl.nasa.gov',//'localhost',//'100.64.243.161',
port: 8080
},
{
context: '/xlrapi',
https: serverHttps,
host: servers[key],
port: serverPort
},
{
context: '/api',
host: servers[key],
changeOrigin: true,
https: serverHttps,
port: serverPort,
rewrite: { '^/api': ''}
}
]
};
index: 'mms.html',
// Add this so that the browser doesn't re-validate static resources
// Also, we have cache-busting, so we don't have to worry about stale resources
maxAge: 31536000000
}
},
middleware: function(connect, options) {
var middlewares;
middlewares = [];
if (!Array.isArray(options.base)) {
options.base = [options.base];
}
middlewares.push(
require('grunt-connect-proxy-updated/lib/utils').proxyRequest,
// add gzip compression to local server to reduce static resources' size and improve load speed
require('compression')()
//require('connect-modrewrite')(['!\\.html|\\.js|\\.css|\\.svg|\\.jp(e?)g|\\.png|\\.gif$ /mms.html']),

// need to add livereload as a middleware at this specific order to avoid issues with other middlewares
);
middlewares.push( modRewrite( ['^[^\\.]*$ /mms.html [L]'] ) );
options.base.forEach(function(base) {
// Serve static files.
var path = base.path || base;
var staticOptions = base.options || defaultStaticOptions;
middlewares.push(serveStatic(path, staticOptions));
});
return middlewares;
}
}
}
};
//}

var combineCustomJS = {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */\n',
wrap: 'mms',
mangle: true,
sourceMap: {
includeSources: true
}
},
files: {
'dist/js/ve-mms.min.js': [

// mms module
'src/mms.js',
'src/services/*.js',
'src/filters/*.js',

// mms.directives module (need mms, mms.directives.tpls.js module )
'dist/jsTemp/mms.directives.tpls.js',
'src/mms.directives.js',
'src/directives/**/*.js',

// app module ( need app.tpls.js, mms, mms.directives module )
'dist/jsTemp/app.tpls.js',
'app/js/mms/app.js',
'app/js/mms/controllers/*.js',
'app/js/mms/directives/*.js'
]
}
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */\n',
wrap: 'mms',
mangle: true,
sourceMap: {
includeSources: true
}
},
files: {
'dist/js/ve-mms.min.js': [

// mms module
'src/mms.js',
'src/services/*.js',
'src/filters/*.js',

// mms.directives module (need mms, mms.directives.tpls.js module )
'dist/jsTemp/mms.directives.tpls.js',
'src/mms.directives.js',
'src/directives/**/*.js',

// app module ( need app.tpls.js, mms, mms.directives module )
'dist/jsTemp/app.tpls.js',
'app/js/mms/app.js',
'app/js/mms/controllers/*.js',
'app/js/mms/directives/*.js',

// config files
'app/config/config.' + env + '.js'
]
}
};
// Project configuration.
grunt.initConfig({

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

concurrent: {
Expand Down Expand Up @@ -262,7 +258,7 @@ module.exports = function(grunt) {

// concat only (no minification )
concat: {
combineCustomJS: combineCustomJS
combineCustomJS: combineCustomJS
},

/** Concat + Minify JS files **/
Expand Down Expand Up @@ -300,6 +296,7 @@ module.exports = function(grunt) {
evil: true, //allow eval for plot integration
globalstrict: true,
validthis: true,
esversion: 6,
globals: {
angular: true,
window: true,
Expand Down Expand Up @@ -335,15 +332,15 @@ module.exports = function(grunt) {

watch: {
dev: {
files: ['app/**/*', '!app/bower_components/**', 'src/**/*'],
files: ['app/env.js', 'app/**/*', '!app/bower_components/**', 'src/**/*'],
tasks: ['dev-build']
},
release: {
files: ['app/**/*', '!app/bower_components/**', 'src/**/*'],
files: ['app/env.js', 'app/**/*', '!app/bower_components/**', 'src/**/*'],
tasks: ['release-build']
},
docs: {
files: ['app/**/*', '!app/bower_components/**', 'src/**/*'],
files: ['app/env.js', 'app/**/*', '!app/bower_components/**', 'src/**/*'],
tasks: ['ngdocs']
},
options: {
Expand All @@ -354,7 +351,7 @@ module.exports = function(grunt) {
artifactory: {
options: {
url: artifactoryUrl,
repository: snapshotRepo, //releaseRepo,
repository: releaseRepo,
username: artifactoryUser,
password: artifactoryPassword
},
Expand All @@ -365,21 +362,21 @@ module.exports = function(grunt) {
options: {
publish: [{
id: groupId + ':ve:zip',
version: '3.6.1-SNAPSHOT',
version: '3.7.0-SNAPSHOT',
path: 'deploy/'
}]
}
}
},

karma: {
unit:{
configFile:'config/develop/karma.develop.conf.js'
},
continuous:{
configFile:'config/develop/karma.develop.conf.js',
logLevel: 'ERROR'
}
unit:{
configFile:'config/develop/karma.develop.conf.js'
},
continuous:{
configFile:'config/develop/karma.develop.conf.js',
logLevel: 'ERROR'
}
},

protractor: {
Expand Down Expand Up @@ -430,11 +427,11 @@ module.exports = function(grunt) {
grunt.registerTask('e2e-test', ['protractor']);

grunt.registerTask('release', function(arg1) {
grunt.task.run('release-build');
if (arguments.length !== 0)
grunt.task.run('launch:release:' + arg1);
else
grunt.task.run('launch:release');
grunt.task.run('release-build');
if (arguments.length !== 0)
grunt.task.run('launch:release:' + arg1);
else
grunt.task.run('launch:release');
});

grunt.registerTask('server', function(arg1) {
Expand All @@ -446,9 +443,9 @@ module.exports = function(grunt) {
});

grunt.registerTask('docs', function() {
grunt.task.run('ngdocs');
grunt.task.run('connect:docs');
grunt.task.run('watch:docs');
grunt.task.run('ngdocs');
grunt.task.run('connect:docs');
grunt.task.run('watch:docs');
});

grunt.registerTask('launch', function(build, arg1) {
Expand All @@ -463,8 +460,8 @@ module.exports = function(grunt) {
});

grunt.registerTask('debug', function () {
grunt.log.writeln("Launching Karma");
grunt.task.run('test');
grunt.log.writeln("Launching Karma");
grunt.task.run('test');
});

grunt.registerTask('e2e',function(arg1) {
Expand Down
Loading