t-viSNE: Interactive Assessment and Interpretation of t-SNE Projections
https://doi.org/10.1109/TVCG.2020.2986996
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
999 B
57 lines
999 B
6 years ago
|
var stringify = require('stringify');
|
||
|
|
||
|
|
||
|
module.exports = function(grunt){
|
||
|
|
||
|
// configure plugins
|
||
|
grunt.initConfig({
|
||
|
|
||
|
browserify: {
|
||
|
dist: {
|
||
|
files: {
|
||
|
'd3-legend.js': ['src/web.js'],
|
||
|
}
|
||
|
},
|
||
|
docs: {
|
||
|
files: {
|
||
|
'docs/docs.js': ['docs/legends.js', 'docs/markdown.js']
|
||
|
},
|
||
|
options: {
|
||
|
transform: [
|
||
|
function(file) {
|
||
|
return stringify({extensions: ['.md']}).call(stringify, file);
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
// Uglify js for build
|
||
|
uglify: {
|
||
|
build: {
|
||
|
files: {
|
||
|
'd3-legend.min.js': 'd3-legend.js'
|
||
|
}
|
||
|
},
|
||
|
docs: {
|
||
|
files: {
|
||
|
'docs/d3-legend.min.js': 'd3-legend.js'
|
||
|
}
|
||
|
},
|
||
|
docsjs: {
|
||
|
files: {
|
||
|
'docs/docs.min.js': 'docs/docs.js'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
// Loading tasks
|
||
|
grunt.loadNpmTasks('grunt-browserify');
|
||
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||
|
|
||
|
// Registering tasks
|
||
|
grunt.registerTask('default', ['browserify', 'uglify']);
|
||
|
|
||
|
};
|