Skip to content

Commit 3d40a0a

Browse files
author
joshua-gould
committed
initial commit
1 parent e809253 commit 3d40a0a

File tree

369 files changed

+64407
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+64407
-0
lines changed

Diff for: .eslintrc.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
"env" : {
3+
"browser" : true,
4+
"jquery" : true,
5+
"es6" : true,
6+
"worker" : true
7+
},
8+
"extends" : "eslint:recommended",
9+
"rules" : {
10+
"indent" : [ "error", "tab" ],
11+
"linebreak-style" : [ "error", "unix" ],
12+
"quotes" : [ "error", "single" ],
13+
"semi" : [ "error", "always" ],
14+
"no-redeclare" : 0,
15+
"no-console" : 0
16+
},
17+
"globals" : {
18+
"morpheus" : true,
19+
"_" : true,
20+
"d3" : true,
21+
"Plotly" : true,
22+
"colorbrewer" : true,
23+
"Hammer" : true,
24+
"XLSX" : true,
25+
"canvg" : true,
26+
"Clipboard" : true,
27+
"Newick" : true,
28+
"saveAs" : true,
29+
"Slick" : true,
30+
"C2S" : true
31+
}
32+
};

Diff for: .gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.project
3+
.settings
4+
morpheus_3rd_party.xlsx
5+
js/morpheus-external.js
6+
js/morpheus-external.min.js
7+
js/morpheus.js

Diff for: Gruntfile.js

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*global module:false*/
2+
module.exports = function(grunt) {
3+
grunt
4+
.initConfig({
5+
pkg : grunt.file.readJSON('package.json'),
6+
meta : {
7+
banner : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - '
8+
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n'
9+
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>'
10+
+ '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>; %> */'
11+
},
12+
uglify : {
13+
morpheus : {
14+
options : {
15+
mangle : false,
16+
preserveComments : false
17+
},
18+
files : {
19+
'js/morpheus-latest.min.js' : [ 'js/morpheus.js' ]
20+
}
21+
},
22+
extJs : {
23+
options : {
24+
mangle : false,
25+
preserveComments : false
26+
},
27+
files : {
28+
'js/morpheus-external.min.js' : [ 'js/morpheus-external.js' ]
29+
}
30+
}
31+
},
32+
cssmin : {
33+
css : {
34+
src : 'css/morpheus.all.css',
35+
dest : 'css/morpheus-latest.min.css'
36+
}
37+
},
38+
concat : {
39+
css : {
40+
src : [ 'css/bootstrap.min.css',
41+
'css/bootstrap-select.min.css',
42+
'css/jquery-ui.min.css',
43+
'css/font-awesome.min.css',
44+
'css/hopscotch.min.css', 'css/slick.grid.css',
45+
'css/animate.css', 'css/morpheus.css' ],
46+
dest : 'css/morpheus.all.css'
47+
},
48+
extJsAll : {
49+
src : [ 'js/morpheus-external.min.js',
50+
'js/plotly-latest.min.js' ],
51+
dest : 'js/morpheus-external-latest.min.js'
52+
},
53+
extJs : {
54+
nonull : true,
55+
dest : 'js/morpheus-external.js',
56+
src : [ 'js/d3.min.js', 'js/jquery-1.11.1.min.js',
57+
'js/bootstrap.min.js', 'js/underscore-min.js',
58+
'js/newick.js', 'js/hammer.min.js',
59+
'js/jquery.mousewheel.min.js',
60+
'js/bootstrap-select.min.js',
61+
'js/xlsx.full.min.js', 'js/canvas2svg.js',
62+
'js/canvg.js', 'js/rgbcolor.js',
63+
'js/jquery-ui.min.js', 'js/parser.js',
64+
'js/FileSaver.min.js', 'js/Blob.js',
65+
'js/canvas-toBlob.js', 'js/colorbrewer.js',
66+
'js/hopscotch.min.js', 'js/typed.min.js',
67+
'js/jquery.event.drag-2.2.js',
68+
'js/clipboard.min.js', 'js/slick.min.js',
69+
'js/js.cookie.js', 'js/d3.layout.cloud.js' ]
70+
},
71+
morpheus : {
72+
nonull : true,
73+
dest : 'js/morpheus.js',
74+
src : [ 'src/util/util.js', 'src/util/*.js',
75+
'src/io/*.js', 'src/matrix/vector_adapter.js',
76+
'src/matrix/*.js', 'src/*.js',
77+
'src/tools/*.js', 'src/ui/list.js',
78+
'src/ui/*.js', 'src/**/*.js' ]
79+
}
80+
},
81+
watch : {
82+
files : [ 'src/*.js', 'src/**/*.js' ],
83+
tasks : [ 'concat:morpheus' ]
84+
}
85+
});
86+
grunt.registerTask('default', 'watch');
87+
grunt.loadNpmTasks('grunt-contrib-watch');
88+
grunt.loadNpmTasks('grunt-contrib-concat');
89+
grunt.loadNpmTasks('grunt-contrib-uglify');
90+
grunt.loadNpmTasks('grunt-contrib-copy');
91+
grunt.loadNpmTasks('grunt-contrib-cssmin');
92+
grunt.loadNpmTasks('grunt-contrib-jshint');
93+
};

0 commit comments

Comments
 (0)