{"action":"opened","issue":{"url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-compiler/issues/29","repository_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-compiler","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-compiler/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-compiler/issues/29/comments","events_url":"https://api.github.com/repos/ckeditor/ckeditor5-dev-compiler/issues/29/events","html_url":"https://github.com/ckeditor/ckeditor5-dev-compiler/issues/29","id":173221836,"number":29,"title":"Separation between config and options looks weird","user":{"login":"pjasiun","id":1166967,"avatar_url":"https://avatars.githubusercontent.com/u/1166967?v=3","gravatar_id":"","url":"https://api.github.com/users/pjasiun","html_url":"https://github.com/pjasiun","followers_url":"https://api.github.com/users/pjasiun/followers","following_url":"https://api.github.com/users/pjasiun/following{/other_user}","gists_url":"https://api.github.com/users/pjasiun/gists{/gist_id}","starred_url":"https://api.github.com/users/pjasiun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjasiun/subscriptions","organizations_url":"https://api.github.com/users/pjasiun/orgs","repos_url":"https://api.github.com/users/pjasiun/repos","events_url":"https://api.github.com/users/pjasiun/events{/privacy}","received_events_url":"https://api.github.com/users/pjasiun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-25T14:39:43Z","updated_at":"2016-08-25T14:39:43Z","closed_at":null,"body":"I understand that config is fixed and option is something you can change via command line, but at the end of the day, when you want to simply call the function separation looks weird:\r\n\r\n```js\r\nconst ckeditorCompilerConfig = {\r\n\tROOT_DIR: '.',\r\n\tWORKSPACE_DIR: '..',\r\n\tMODULE_DIR: {\r\n\t\tamd: 'lib/ckeditor',\r\n\t\tcjs: 'lib/ckeditor',\r\n\t\tesnext: 'lib/ckeditor'\r\n\t}\r\n};\r\n\r\nconst ckeditorCompilerOptions = {\r\n\tformats: [ 'esnext' ],\r\n\twatch: false\r\n};\r\n\r\nconst ckeditorCompiler = require( '@ckeditor/ckeditor5-dev-compiler' )( ckeditorCompilerConfig )\r\n\t.compiler.compile.js( ckeditorCompilerOptions );\r\n\r\n```"}}
{"actor":{"display_login":"pjasiun"}}