vcavalcante@lambda3.com.br @vcavalcante
Baixa do site?
Nuget?
Outro gerenciador de componentes?
Victor Cavalcante @vcavalcante
Victor Cavalcante @vcavalcante
Gerenciador de pacotes para front-end
Victor Cavalcante @vcavalcante
Victor Cavalcante @vcavalcante
Vou demonstrar...
Victor Cavalcante @vcavalcante
Victor Cavalcante @vcavalcante
{
"name": "VisualStudioSummit",
"private": true,
"dependencies": {
"bootstrap": "3.0.0",
"jquery": "1.10.2",
"jquery-validation": "1.11.1",
"jquery-validation-unobtrusive": "3.2.2",
"hammer.js": "2.0.4",
"bootstrap-touch-carousel": "0.8.0"
}
}
Feito em JavaScript e roda no NodeJS
Victor Cavalcante @vcavalcante
Victor Cavalcante @vcavalcante
Victor Cavalcante @vcavalcante
Victor Cavalcante @vcavalcante
Victor Cavalcante @vcavalcante
grunt-bower-task
grunt-contrib-less
grunt-contrib-uglify
grunt-autoprefixer
grunt-contrib-watch
grunt-contrib-csslint
grunt-spritesmith
grunt-contrib-clean
grunt-contrib-copy
grunt-contrib-jshint
grunt-contrib-concat
grunt-contrib-cssmin
{
"version": "1.0.0",
"name": "VisualStudioSummit",
"private": true,
"devDependencies": {
"bower": "~1.4.1",
"grunt": "~0.4.5",
"grunt-bower-task": "~0.4.0",
"grunt-contrib-less": "~1.0.1",
"less-plugin-autoprefix": "~1.4.2",
"less-plugin-clean-css": "~1.5.0"
}
}
Command line
npm install grunt-contrib-watch --save-dev
module.exports = function (grunt) {
grunt.initConfig({
bower: {
install: {
options: {
install: true,
targetDir: "wwwroot/lib",
cleanTargetDir: true,
layout: "byComponent"
}
}
},
});
grunt.registerTask("default",["bower"])
grunt.loadNpmTasks("grunt-bower-task");
}
victor@cavalcante.net