{"action":"created","issue":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/389","labels_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/389/comments","events_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/389/events","html_url":"https://github.com/krakenjs/kraken-js/issues/389","id":85934343,"number":389,"title":"How to run browserify","user":{"login":"mac10688","id":2703261,"avatar_url":"https://avatars.githubusercontent.com/u/2703261?v=3","gravatar_id":"","url":"https://api.github.com/users/mac10688","html_url":"https://github.com/mac10688","followers_url":"https://api.github.com/users/mac10688/followers","following_url":"https://api.github.com/users/mac10688/following{/other_user}","gists_url":"https://api.github.com/users/mac10688/gists{/gist_id}","starred_url":"https://api.github.com/users/mac10688/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mac10688/subscriptions","organizations_url":"https://api.github.com/users/mac10688/orgs","repos_url":"https://api.github.com/users/mac10688/repos","events_url":"https://api.github.com/users/mac10688/events{/privacy}","received_events_url":"https://api.github.com/users/mac10688/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/krakenjs/kraken-js/labels/support","name":"support","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-07T20:05:28Z","updated_at":"2015-06-09T01:16:06Z","closed_at":null,"body":"I'm trying to use browserify with krakenjs. I've been searching for some time\r\n```javascript\r\nmodule.exports = function (grunt) {\r\n\r\n    // Load the project's grunt tasks from a directory\r\n    require('grunt-config-dir')(grunt, {\r\n        configDir: require('path').resolve('tasks')\r\n    });\r\n\r\n    // Register group tasks\r\n    grunt.registerTask('build', [ 'jshint', 'less', 'browserify', 'i18n', 'copyto' ]);\r\n    grunt.registerTask('test', [ 'jshint', 'mochacli' ]);\r\n\r\n};\r\n```\r\nI see that browserify is listed.\r\n\r\n```javascript\r\n'use strict';\r\n\r\n\r\nmodule.exports = function browserify(grunt) {\r\n\t// Load task\r\n\tgrunt.loadNpmTasks('grunt-browserify');\r\n\r\n\t// Options\r\n\treturn {\r\n\t\tbuild: {\r\n\t\t\tfiles: {\r\n\t\t\t\t'.build/js/app.js': ['public/js/app.js'],\r\n\t\t\t},\r\n\t\t\toptions: {}\r\n\t\t}\r\n\t};\r\n};\r\n```\r\n\r\nIt looks to already be configured but I don't know what the files object is for.. I don't have a build folder but I am not able to get this to work. I've tried many things but nothing has worked. Can someone explain to me how this is supposed to work? Later I will want to use babel as well, so I want to learn in a way so that I can add more plugins later. I just haven't seen how to do this in the documentation.\r\n\r\nI'm new nodejs so I hope there's not a gross oversight."},"comment":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/comments/110188236","html_url":"https://github.com/krakenjs/kraken-js/issues/389#issuecomment-110188236","issue_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/389","id":110188236,"user":{"login":"aredridel","id":2876,"avatar_url":"https://avatars.githubusercontent.com/u/2876?v=3","gravatar_id":"","url":"https://api.github.com/users/aredridel","html_url":"https://github.com/aredridel","followers_url":"https://api.github.com/users/aredridel/followers","following_url":"https://api.github.com/users/aredridel/following{/other_user}","gists_url":"https://api.github.com/users/aredridel/gists{/gist_id}","starred_url":"https://api.github.com/users/aredridel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aredridel/subscriptions","organizations_url":"https://api.github.com/users/aredridel/orgs","repos_url":"https://api.github.com/users/aredridel/repos","events_url":"https://api.github.com/users/aredridel/events{/privacy}","received_events_url":"https://api.github.com/users/aredridel/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T01:16:05Z","updated_at":"2015-06-09T01:16:05Z","body":"Nice! You're definitely picking tools that work together -- browserify and babel being perhaps the hardest to integrate. But doable!\r\n\r\nKraken certainly is that flexible. Don't confuse the generator's suggestions for How Things Must Be -- Kraken is mostly small components that are very flexible. The generator just suggests ways that works for us at PayPal."}}