{"action":"created","comment":{"url":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/comments/167746643","pull_request_review_id":96010216,"id":167746643,"diff_hunk":"@@ -1,2 +1,81 @@\n # gulpset\n+\n Gulp based project skeleton with modular tasks.\n+\n+### 1. boilerplateをプロジェクトフォルダに入れる\n+https://github.com/fourdigitdesign/gulpset\n+ダウンロードしたzipを解凍し、\n+プロジェクトフォルダにコピペなどします。\n+\n+\n+### 2. taskを有効化する\n+`gulpset > tasks`の中に、XXX.offというフォルダがあります。  \n+この中で、プロジェクトにおいてgulpのtaskとして使用したいものの「.off」を削除します。\n+\n+例えば、ejsを書くのであれば、ejsをhtmlにコンパイルする必要があるので\n+「ejs.off」を「ejs」にします。\n+\n+以下、主なtaskです。\n+\n+| task        | 説明 |\n+| --------------- |:---------------|\n+| babel | ES2015をES5の記法に変換してくれる |\n+| browsersync | ブラウザシンクする |\n+| clean | 主にbuildフォルダを一旦空にするのに使用 |\n+| cleancss | cssをminifyしてくれる |\n+| concat | ファイルを統合してくれる（a.jsとb.jsをまとめてall.jsのように）|\n+| copy | コンパイルを通さないファイルを出力先フォルダにコピーして出力してくれる |\n+| ejs | .ejsを.htmlにコンパイル |\n+| eslint | jsファイルのコードチェック |\n+| sass | .scssを.cssにコンパイル |\n+| sasslint | sassファイルのコードチェック |\n+| stylist | stylusファイルのコードチェック |\n+| stylus | .stylを.cssにコンパイル |\n+| watch | 指定したファイルの変更監視 |\n+\n+### 3. `config.js`を設定する\n+1. `gulpset > config.js` を開きます。\n+2. さらに（２）で「.off」を削除したフォルダの中にある`index.js`を開きます。\n+3. このindex.jsの中の`gulpset.confs.babel =`の部分を丸々`config.js`にコピペしていきます。\n+\n+例）babelの場合\n+```\n+gulpset.confs.babel = [{\n+        src: gulpset.paths.src + \"js/source.jsx\",\n+        paths: [\"./node_modules\", gulpset.paths.src + \"js\"],\n+        dest: gulpset.paths.dest + \"assets/app/js/\",\n+        file: \"dest.js\"\n+}];\n+```\n+\n+この作業を、有効化した全てのtaskのフォルダについて行います。\n+＊カスタマイズしたいのであれば、`config.js`にコピペしてきた`confs`に記述を追加or書き換えを行いましょう。\n+\n+\n+### 4. watchするファイルを設定する\n+コピペした中で、watchのみ指定ファイルなどが空になっていると思います。\n+ここに、watchの対象となるファイルのパスと、そのファイルの変更に対して走らせるtaskを記述します。\n+```\n+gulpset.confs.watch = [{\n+   watch: gulpset.confs.stylus.src,\n+   run: [\"stylus\"]\n+}, {\n+   watch: gulpset.confs.eslint.src,\n+   run: [\"eslint\"]\n+}, {\n+   watch: gulpset.confs.ejs.src,\n+   run: [\"ejs\"]\n+}, {\n+   watch: gulpset.confs.copy.src,\n+   run: [\"copy\"]\n+}];\n+```\n+\n+なお、この時指定するパスは、各taskのsrcを指定します。\n+\n+\n+### 5. npm install\n+プロジェクトルートで、`yarn auto-install`をします。\n+\n+### 6. 起動\n+プロジェクトルートで、`gulp dev`と入力するとタスクが起動されます。","path":"README.md","position":81,"original_position":81,"commit_id":"a0b9b50dcf3f325fbc53e36ad40df3c41f0257ce","original_commit_id":"a0b9b50dcf3f325fbc53e36ad40df3c41f0257ce","user":{"login":"marihemo","id":5293858,"avatar_url":"https://avatars1.githubusercontent.com/u/5293858?v=4","gravatar_id":"","url":"https://api.github.com/users/marihemo","html_url":"https://github.com/marihemo","followers_url":"https://api.github.com/users/marihemo/followers","following_url":"https://api.github.com/users/marihemo/following{/other_user}","gists_url":"https://api.github.com/users/marihemo/gists{/gist_id}","starred_url":"https://api.github.com/users/marihemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marihemo/subscriptions","organizations_url":"https://api.github.com/users/marihemo/orgs","repos_url":"https://api.github.com/users/marihemo/repos","events_url":"https://api.github.com/users/marihemo/events{/privacy}","received_events_url":"https://api.github.com/users/marihemo/received_events","type":"User","site_admin":false},"body":"`gulpfile.js` の下記の部分も使うタスクによって書き換える必要がありますよね…？\r\n(上記の手順にならってセットアップした上で `gulp dev` すると `Error: No tasks were provided to run-sequence` と出てきたので…！ここまでの手順で何か間違ってたらすみませんが、、)\r\n\r\n```\r\ngulpset.gulp.task(\"dev\", function(cb) {\r\n\trunSequence(\r\n\t\t[\"babel\", \"cleancss\", …], ← ここ\r\n\t\t\"watch\",\r\n\t\t\"browsersync\",\r\n\t\tcb\r\n\t);\r\n});\r\n```","created_at":"2018-02-13T02:31:22Z","updated_at":"2018-02-13T02:31:22Z","html_url":"https://github.com/fourdigitdesign/gulpset/pull/2#discussion_r167746643","pull_request_url":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/comments/167746643"},"html":{"href":"https://github.com/fourdigitdesign/gulpset/pull/2#discussion_r167746643"},"pull_request":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2","id":137123486,"html_url":"https://github.com/fourdigitdesign/gulpset/pull/2","diff_url":"https://github.com/fourdigitdesign/gulpset/pull/2.diff","patch_url":"https://github.com/fourdigitdesign/gulpset/pull/2.patch","issue_url":"https://api.github.com/repos/fourdigitdesign/gulpset/issues/2","number":2,"state":"open","locked":false,"title":"使い方書きました〜","user":{"login":"rieimaoka","id":2573371,"avatar_url":"https://avatars1.githubusercontent.com/u/2573371?v=4","gravatar_id":"","url":"https://api.github.com/users/rieimaoka","html_url":"https://github.com/rieimaoka","followers_url":"https://api.github.com/users/rieimaoka/followers","following_url":"https://api.github.com/users/rieimaoka/following{/other_user}","gists_url":"https://api.github.com/users/rieimaoka/gists{/gist_id}","starred_url":"https://api.github.com/users/rieimaoka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rieimaoka/subscriptions","organizations_url":"https://api.github.com/users/rieimaoka/orgs","repos_url":"https://api.github.com/users/rieimaoka/repos","events_url":"https://api.github.com/users/rieimaoka/events{/privacy}","received_events_url":"https://api.github.com/users/rieimaoka/received_events","type":"User","site_admin":false},"body":"簡単なものですが、ないよりは…と思うので、マージしていただけると助かります！","created_at":"2017-08-23T03:31:02Z","updated_at":"2018-02-13T02:31:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cc6563a9b7d105d5c2916b31f19daa3c06e7b59","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2/commits","review_comments_url":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2/comments","review_comment_url":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fourdigitdesign/gulpset/issues/2/comments","statuses_url":"https://api.github.com/repos/fourdigitdesign/gulpset/statuses/a0b9b50dcf3f325fbc53e36ad40df3c41f0257ce","head":{"label":"rieimaoka:patch-1","ref":"patch-1","sha":"a0b9b50dcf3f325fbc53e36ad40df3c41f0257ce","user":{"login":"rieimaoka","id":2573371,"avatar_url":"https://avatars1.githubusercontent.com/u/2573371?v=4","gravatar_id":"","url":"https://api.github.com/users/rieimaoka","html_url":"https://github.com/rieimaoka","followers_url":"https://api.github.com/users/rieimaoka/followers","following_url":"https://api.github.com/users/rieimaoka/following{/other_user}","gists_url":"https://api.github.com/users/rieimaoka/gists{/gist_id}","starred_url":"https://api.github.com/users/rieimaoka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rieimaoka/subscriptions","organizations_url":"https://api.github.com/users/rieimaoka/orgs","repos_url":"https://api.github.com/users/rieimaoka/repos","events_url":"https://api.github.com/users/rieimaoka/events{/privacy}","received_events_url":"https://api.github.com/users/rieimaoka/received_events","type":"User","site_admin":false},"repo":{"id":101133631,"name":"gulpset","full_name":"rieimaoka/gulpset","owner":{"login":"rieimaoka","id":2573371,"avatar_url":"https://avatars1.githubusercontent.com/u/2573371?v=4","gravatar_id":"","url":"https://api.github.com/users/rieimaoka","html_url":"https://github.com/rieimaoka","followers_url":"https://api.github.com/users/rieimaoka/followers","following_url":"https://api.github.com/users/rieimaoka/following{/other_user}","gists_url":"https://api.github.com/users/rieimaoka/gists{/gist_id}","starred_url":"https://api.github.com/users/rieimaoka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rieimaoka/subscriptions","organizations_url":"https://api.github.com/users/rieimaoka/orgs","repos_url":"https://api.github.com/users/rieimaoka/repos","events_url":"https://api.github.com/users/rieimaoka/events{/privacy}","received_events_url":"https://api.github.com/users/rieimaoka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rieimaoka/gulpset","description":"Gulp based project skeleton with modular tasks.","fork":true,"url":"https://api.github.com/repos/rieimaoka/gulpset","forks_url":"https://api.github.com/repos/rieimaoka/gulpset/forks","keys_url":"https://api.github.com/repos/rieimaoka/gulpset/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rieimaoka/gulpset/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rieimaoka/gulpset/teams","hooks_url":"https://api.github.com/repos/rieimaoka/gulpset/hooks","issue_events_url":"https://api.github.com/repos/rieimaoka/gulpset/issues/events{/number}","events_url":"https://api.github.com/repos/rieimaoka/gulpset/events","assignees_url":"https://api.github.com/repos/rieimaoka/gulpset/assignees{/user}","branches_url":"https://api.github.com/repos/rieimaoka/gulpset/branches{/branch}","tags_url":"https://api.github.com/repos/rieimaoka/gulpset/tags","blobs_url":"https://api.github.com/repos/rieimaoka/gulpset/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rieimaoka/gulpset/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rieimaoka/gulpset/git/refs{/sha}","trees_url":"https://api.github.com/repos/rieimaoka/gulpset/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rieimaoka/gulpset/statuses/{sha}","languages_url":"https://api.github.com/repos/rieimaoka/gulpset/languages","stargazers_url":"https://api.github.com/repos/rieimaoka/gulpset/stargazers","contributors_url":"https://api.github.com/repos/rieimaoka/gulpset/contributors","subscribers_url":"https://api.github.com/repos/rieimaoka/gulpset/subscribers","subscription_url":"https://api.github.com/repos/rieimaoka/gulpset/subscription","commits_url":"https://api.github.com/repos/rieimaoka/gulpset/commits{/sha}","git_commits_url":"https://api.github.com/repos/rieimaoka/gulpset/git/commits{/sha}","comments_url":"https://api.github.com/repos/rieimaoka/gulpset/comments{/number}","issue_comment_url":"https://api.github.com/repos/rieimaoka/gulpset/issues/comments{/number}","contents_url":"https://api.github.com/repos/rieimaoka/gulpset/contents/{+path}","compare_url":"https://api.github.com/repos/rieimaoka/gulpset/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rieimaoka/gulpset/merges","archive_url":"https://api.github.com/repos/rieimaoka/gulpset/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rieimaoka/gulpset/downloads","issues_url":"https://api.github.com/repos/rieimaoka/gulpset/issues{/number}","pulls_url":"https://api.github.com/repos/rieimaoka/gulpset/pulls{/number}","milestones_url":"https://api.github.com/repos/rieimaoka/gulpset/milestones{/number}","notifications_url":"https://api.github.com/repos/rieimaoka/gulpset/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rieimaoka/gulpset/labels{/name}","releases_url":"https://api.github.com/repos/rieimaoka/gulpset/releases{/id}","deployments_url":"https://api.github.com/repos/rieimaoka/gulpset/deployments","created_at":"2017-08-23T03:28:47Z","updated_at":"2017-08-23T03:28:48Z","pushed_at":"2017-10-05T02:06:11Z","git_url":"git://github.com/rieimaoka/gulpset.git","ssh_url":"git@github.com:rieimaoka/gulpset.git","clone_url":"https://github.com/rieimaoka/gulpset.git","svn_url":"https://github.com/rieimaoka/gulpset","homepage":"","size":59,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fourdigitdesign:master","ref":"master","sha":"998b0d66a3d58a585455f62346c02fbef2999289","user":{"login":"fourdigitdesign","id":22882101,"avatar_url":"https://avatars3.githubusercontent.com/u/22882101?v=4","gravatar_id":"","url":"https://api.github.com/users/fourdigitdesign","html_url":"https://github.com/fourdigitdesign","followers_url":"https://api.github.com/users/fourdigitdesign/followers","following_url":"https://api.github.com/users/fourdigitdesign/following{/other_user}","gists_url":"https://api.github.com/users/fourdigitdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/fourdigitdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourdigitdesign/subscriptions","organizations_url":"https://api.github.com/users/fourdigitdesign/orgs","repos_url":"https://api.github.com/users/fourdigitdesign/repos","events_url":"https://api.github.com/users/fourdigitdesign/events{/privacy}","received_events_url":"https://api.github.com/users/fourdigitdesign/received_events","type":"Organization","site_admin":false},"repo":{"id":71098889,"name":"gulpset","full_name":"fourdigitdesign/gulpset","owner":{"login":"fourdigitdesign","id":22882101,"avatar_url":"https://avatars3.githubusercontent.com/u/22882101?v=4","gravatar_id":"","url":"https://api.github.com/users/fourdigitdesign","html_url":"https://github.com/fourdigitdesign","followers_url":"https://api.github.com/users/fourdigitdesign/followers","following_url":"https://api.github.com/users/fourdigitdesign/following{/other_user}","gists_url":"https://api.github.com/users/fourdigitdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/fourdigitdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourdigitdesign/subscriptions","organizations_url":"https://api.github.com/users/fourdigitdesign/orgs","repos_url":"https://api.github.com/users/fourdigitdesign/repos","events_url":"https://api.github.com/users/fourdigitdesign/events{/privacy}","received_events_url":"https://api.github.com/users/fourdigitdesign/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fourdigitdesign/gulpset","description":"Gulp based project skeleton with modular tasks.","fork":false,"url":"https://api.github.com/repos/fourdigitdesign/gulpset","forks_url":"https://api.github.com/repos/fourdigitdesign/gulpset/forks","keys_url":"https://api.github.com/repos/fourdigitdesign/gulpset/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fourdigitdesign/gulpset/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fourdigitdesign/gulpset/teams","hooks_url":"https://api.github.com/repos/fourdigitdesign/gulpset/hooks","issue_events_url":"https://api.github.com/repos/fourdigitdesign/gulpset/issues/events{/number}","events_url":"https://api.github.com/repos/fourdigitdesign/gulpset/events","assignees_url":"https://api.github.com/repos/fourdigitdesign/gulpset/assignees{/user}","branches_url":"https://api.github.com/repos/fourdigitdesign/gulpset/branches{/branch}","tags_url":"https://api.github.com/repos/fourdigitdesign/gulpset/tags","blobs_url":"https://api.github.com/repos/fourdigitdesign/gulpset/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fourdigitdesign/gulpset/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fourdigitdesign/gulpset/git/refs{/sha}","trees_url":"https://api.github.com/repos/fourdigitdesign/gulpset/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fourdigitdesign/gulpset/statuses/{sha}","languages_url":"https://api.github.com/repos/fourdigitdesign/gulpset/languages","stargazers_url":"https://api.github.com/repos/fourdigitdesign/gulpset/stargazers","contributors_url":"https://api.github.com/repos/fourdigitdesign/gulpset/contributors","subscribers_url":"https://api.github.com/repos/fourdigitdesign/gulpset/subscribers","subscription_url":"https://api.github.com/repos/fourdigitdesign/gulpset/subscription","commits_url":"https://api.github.com/repos/fourdigitdesign/gulpset/commits{/sha}","git_commits_url":"https://api.github.com/repos/fourdigitdesign/gulpset/git/commits{/sha}","comments_url":"https://api.github.com/repos/fourdigitdesign/gulpset/comments{/number}","issue_comment_url":"https://api.github.com/repos/fourdigitdesign/gulpset/issues/comments{/number}","contents_url":"https://api.github.com/repos/fourdigitdesign/gulpset/contents/{+path}","compare_url":"https://api.github.com/repos/fourdigitdesign/gulpset/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fourdigitdesign/gulpset/merges","archive_url":"https://api.github.com/repos/fourdigitdesign/gulpset/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fourdigitdesign/gulpset/downloads","issues_url":"https://api.github.com/repos/fourdigitdesign/gulpset/issues{/number}","pulls_url":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls{/number}","milestones_url":"https://api.github.com/repos/fourdigitdesign/gulpset/milestones{/number}","notifications_url":"https://api.github.com/repos/fourdigitdesign/gulpset/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fourdigitdesign/gulpset/labels{/name}","releases_url":"https://api.github.com/repos/fourdigitdesign/gulpset/releases{/id}","deployments_url":"https://api.github.com/repos/fourdigitdesign/gulpset/deployments","created_at":"2016-10-17T04:04:35Z","updated_at":"2018-01-15T12:58:58Z","pushed_at":"2017-10-05T13:26:33Z","git_url":"git://github.com/fourdigitdesign/gulpset.git","ssh_url":"git@github.com:fourdigitdesign/gulpset.git","clone_url":"https://github.com/fourdigitdesign/gulpset.git","svn_url":"https://github.com/fourdigitdesign/gulpset","homepage":"","size":57,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2"},"html":{"href":"https://github.com/fourdigitdesign/gulpset/pull/2"},"issue":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/issues/2"},"comments":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/fourdigitdesign/gulpset/statuses/a0b9b50dcf3f325fbc53e36ad40df3c41f0257ce"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"marihemo"}}