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.
 
 
 
 
 
t-viSNE/modules/d3-legend/Gruntfile.js

60 lines
1.1 KiB

var stringify = require('stringify');
module.exports = function(grunt){
// configure plugins
grunt.initConfig({
browserify: {
dist: {
files: {
'd3-legend.js': ['src/web.js'],
},
options: {
browserifyOptions: { debug: true },
transform: [ ['babelify', {'presets': ['es2015']}] ]
}
},
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']);
};