{"id":5838,"date":"2018-07-15T16:11:10","date_gmt":"2018-07-15T07:11:10","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=5838"},"modified":"2020-06-06T11:31:42","modified_gmt":"2020-06-06T02:31:42","slug":"%e3%80%90vue-js%e3%80%91vue-cli%e3%81%ae%e5%9f%ba%e7%a4%8e%e7%9f%a5%e8%ad%98","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=5838","title":{"rendered":"\u3010Vue.js\u3011\u300cVue CLI\u300d\u306e\u57fa\u790e\u77e5\u8b58"},"content":{"rendered":"<h2>Vue CLI\u3068\u306f\uff1f<\/h2>\n<p>Vue.js\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u884c\u3046\u4e0a\u3067\u3001\u958b\u767a\u3092\u652f\u63f4\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\u30c4\u30fc\u30eb\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u7b49\u306e\u30a2\u30d7\u30ea\u958b\u767a\u306b\u5fc5\u8981\u306a\u74b0\u5883\u3092\u7c21\u5358\u306b\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Vue CLI\u306e\u7279\u5fb4<\/h2>\n<ul>\n<li>\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f01\u753b\u6642\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d4\u30f3\u30b0\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3002<\/li>\n<li>\u958b\u767a\u3057\u305f\u30a2\u30d7\u30ea\u306e\u9762\u5012\u306a\u30d3\u30eb\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304f\u308c\u308b\u3002<\/li>\n<li>webpack\u3092\u4f7f\u7528\u3057\u305f\u30d3\u30eb\u30c9\u306f\u3001\u69d8\u3005\u306a\u958b\u767a\u74b0\u5883\u304c\u3042\u308a\u8907\u96d1\u306b\u306a\u308a\u96e3\u3057\u3044\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u69d8\u3005\u306a\u958b\u767a\u74b0\u5883\u3092\u60f3\u5b9a\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u5099\u308f\u3063\u3066\u304a\u308a\u3001<\/strong><strong>\u975e\u5e38\u306b\u7c21\u5358\u306b\u30d3\u30eb\u30c9\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u52a9\u3051<\/strong><\/span>\u3092\u3057\u3066\u304f\u308c\u308b\u3002<\/li>\n<\/ul>\n<h2>Vue CLI\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>2\u7cfb<\/td>\n<td>\u73fe\u5728\u591a\u304f\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>3\u7cfb<\/td>\n<td>Vue CLI\u306e\u6700\u65b0\u7248\u3067\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Vue CLI\u3067\u3088\u304f\u5229\u7528\u3055\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h2>\n<p>Vue CLI\u306b\u306f\u3001\u69d8\u3005\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>webpack<\/td>\n<td>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3067\u3088\u304f\u5229\u7528\u3055\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u591a\u304f\u3001\u8a2d\u5b9a\u3082\u8907\u96d1\u306a\u30d7\u30ed\u30c0\u30af\u30c8\u5411\u3051\u3002<\/td>\n<\/tr>\n<tr>\n<td>webpack-simple<\/td>\n<td>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3067\u3088\u304f\u5229\u7528\u3055\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u5c11\u306a\u304f\u3001\u8a2d\u5b9a\u3082\u7c21\u5358\u306a\u5b66\u7fd2\u3001\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u5411\u3051\u3002<\/td>\n<\/tr>\n<tr>\n<td>PWA<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Electron<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ed6\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u8a73\u3057\u304f\u306f\u3001github\u306b\u4e0a\u304c\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3054\u78ba\u8a8d\u4e0b\u3055\u3044\u3002<\/p>\n<p>https:\/\/github.com\/vuejs-templates<\/p>\n<h2>Vue CLI\u30b3\u30de\u30f3\u30c9\u306e\u7528\u9014<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30b3\u30de\u30f3\u30c9\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>npm run serve<\/td>\n<td>\u958b\u767a\u4e2d\u306e\u307f\u306b\u4f7f\u3044\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3066\u30db\u30c3\u30c8\u30c7\u30d7\u30ed\u30a4\u3067\u958b\u767a\u3057\u3084\u3059\u304f\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>npm run build<\/td>\n<td>\u672c\u756a\u74b0\u5883\u306b\u6301\u3063\u3066\u3044\u304f\u305f\u3081\u306edist\u30d5\u30a9\u30eb\u30c0(webpack\u3067\u5727\u7e2e)\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Vue CLI\u3067\u751f\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30d5\u30a1\u30a4\u30eb\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>node_modules<\/td>\n<td>\u81a8\u5927\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5165\u308a\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>public<\/td>\n<td>\u9759\u7684\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u3066\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>webpack\u3067\u5727\u7e2e\u3059\u308b\u3082\u306e\u306b\u542b\u3081\u306a\u3044\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u304c\u5bfe\u8c61<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\uff08favicon\u7b49\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u2514index.html<\/td>\n<td><span style=\"color: #ff0000;\"><strong>webpack\u3067\u5727\u7e2e\u3059\u308b\u969b\u306b\u5143\u3068\u306a\u308bHTML<\/strong><\/span>\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>dist<\/td>\n<td>\u300cnpm run build\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u672c\u756a\u7528\u306e\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>src<\/td>\n<td>\u958b\u767a\u4e2d\u306e\u30bd\u30fc\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\u6700\u7d42\u7684\u306bwebpack\u3067\u30d3\u30eb\u30c9\u3057\u3066\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306b\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u251cassets<\/td>\n<td>CSS\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u251ccomponents<\/td>\n<td>Vue.js\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u914d\u7f6e\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u251cApp.vue<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u2514main.js<\/td>\n<td><span style=\"color: #ff0000;\"><strong>src\u306e\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb(assets\u3084components\u3082\u542b\u3081\u3066)\u306e\u9802\u70b9\u306e\u30d5\u30a1\u30a4\u30eb<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u8a18\u8ff0\u3059\u308bVue\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c<span style=\"color: #ff0000;\"><strong>public\u30d5\u30a9\u30eb\u30c0\u306eindex.html<\/strong><\/span>\u306b\u5165\u3063\u3066\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>babel.config.js<\/td>\n<td>babel\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>package-lock.json<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>package.json<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"Vue CLI\u3068\u306f\uff1f Vue.js\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u884c\u3046\u4e0a\u3067\u3001\u958b\u767a\u3092\u652f\u63f4\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\u30c4\u30fc\u30eb\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u7b49\u306e\u30a2\u30d7\u30ea\u958b\u767a\u306b\u5fc5\u8981\u306a\u74b0\u5883\u3092\u7c21\u5358\u306b\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 Vue CLI\u306e [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[60],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5838"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5838"}],"version-history":[{"count":16,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5838\/revisions"}],"predecessor-version":[{"id":10880,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5838\/revisions\/10880"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5838"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}