{"id":1187,"date":"2019-09-05T00:07:23","date_gmt":"2019-09-04T16:07:23","guid":{"rendered":"https:\/\/www.develop-note.com\/blog\/?p=1187"},"modified":"2022-02-17T15:26:46","modified_gmt":"2022-02-17T07:26:46","slug":"2020ironman-svelte-first-project","status":"publish","type":"post","link":"https:\/\/www.develop-note.com\/blog\/2019\/09\/05\/2020ironman-svelte-first-project\/","title":{"rendered":"\u7b2c\u5341\u4e00\u5c46\u9435\u4eba\u8cfd \u524d\u7aef\u5de5\u7a0b\u5e2b\u7684\u53e6\u4e00\u500b\u9078\u64c7 svelte DAY03-\u7b2c\u4e00\u500b\u5c08\u6848"},"content":{"rendered":"<h1>\u521d\u59cb\u5316\u5c08\u6848<\/h1>\n<p>\u5728\u8a2d\u5b9a\u597d\u74b0\u5883\u4e4b\u5f8c\u53ef\u4ee5\u958b\u59cb\u64b0\u5beb\u7a0b\u5f0f\u4e86\uff0c\u6240\u4ee5\u9019\u7bc7\u6587\u7ae0\u4f86\u4ecb\u7d39\u5982\u4f55\u7522\u751f\u4e00\u500b svelte \u5c08\u6848<\/p>\n<p><!--more--><\/p>\n<h1>\u7522\u751f\u5c08\u6848\u7684\u65b9\u5f0f<\/h1>\n<p>svelte \u7522\u751f\u5c08\u6848\u7684\u65b9\u5f0f\u6709\u5169\u7a2e\uff0c\u9019\u88e1\u5206\u5225\u8aaa\u660e\u7522\u751f\u7684\u65b9\u5f0f\u3002<\/p>\n<h2>\u5229\u7528npm\u7522\u751f\u5c08\u6848<\/h2>\n<p>\u9019\u90e8\u5206\u5c31\u985e\u4f3cangular cli\uff0c\u7c21\u55ae\u8b1b\u5c31\u662fclone github\u4e0a\u7684repository\u4e0b\u4f86\u800c\u5df2\u4e0d\u904e\u9019\u5df2\u7d93\u53ef\u4ee5\u89e3\u6c7a\u5927\u90e8\u5206\u7684\u554f\u984c\uff0c\u800c\u4e14\u4ed6\u7684\u64cd\u4f5c\u4e5f\u5f88\u7c21\u55ae\uff0c\u5c31\u662f\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n<pre><code class=\"language-bash\">npx degit sveltejs\/template svelte-app\ncd svelte-app<\/code><\/pre>\n<h2>\u5efa\u7acb\u7bc4\u672c\u5f8c\u4e0b\u8f09\u7522\u751f\u5c08\u6848<\/h2>\n<p>\u9019\u90e8\u5206\u5c31\u6bd4\u8f03\u6709\u8da3\u4e00\u9ede\u4e86\uff0c svelte \u63d0\u4f9b\u7dda\u4e0a\u64b0\u5beb\u7a0b\u5f0f\u78bc\u7684\u529f\u80fd\u53eb\u505a <a href=\"https:\/\/svelte.dev\/repl\/\" title=\"\u7dda\u4e0a\u64b0\u5beb\u7a0b\u5f0f\u78bc\" rel=\"nofollow noopener\" target=\"_blank\">Svelte repl<\/a> \uff0c\u8b80\u8005\u5011\u53ef\u4ee5\u5148\u5229\u7528\u9019\u500b\u7db2\u7ad9\u986f\u628a svelte \u7684\u96db\u578b\u5efa\u69cb\u51fa\u4f86\uff0c\u5728\u9ede\u64ca\u53f3\u4e0a\u89d2\u7684 download zip to file \u7684\u5716\u793a\uff0c\u9019\u6a23 svelte \u5c31\u5e6b\u4f60\u628a\u57fa\u790e\u67b6\u69cb\u6253\u5305\u6210\u4e00\u500b zip \u6a94\uff0c\u63a5\u4e0b\u4f86\u53ea\u8981\u89e3\u58d3\u7e2e\u5f8c\u518d <code>cmd<\/code> \u4e0b\u8f38\u5165\u4e0b\u5217\u6307\u4ee4\u5373\u53ef\u3002<\/p>\n<pre><code class=\"language-bash\">npm install\nnpm run dev<\/code><\/pre>\n<h1>\u5c0f\u7d50<\/h1>\n<p>\u4eca\u5929\u4ecb\u7d39\u7d66\u5927\u5bb6\u5982\u4f55\u958b\u59cb svelte \u7684\u5c08\u6848\uff0c\u4e0d\u8ad6\u662f\u5229\u7528 npm \u9084\u662f\u900f\u904e repl \u90fd\u5f88\u5bb9\u6613\u4e0a\u624b\uff0c\u63a5\u4e0b\u4f86\u7684\u65e5\u5b50\u5c07\u8981\u958b\u59cb\u6559\u53d7\u5927\u5bb6\u5982\u4f55\u5beb svelte \u7a0b\u5f0f\u78bc\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521d\u59cb\u5316\u5c08\u6848 \u5728\u8a2d\u5b9a\u597d\u74b0\u5883\u4e4b\u5f8c\u53ef\u4ee5\u958b\u59cb\u64b0\u5beb\u7a0b\u5f0f\u4e86\uff0c\u6240\u4ee5\u9019\u7bc7\u6587\u7ae0\u4f86\u4ecb\u7d39\u5982\u4f55\u7522\u751f\u4e00\u500b svelte \u5c08\u6848<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[160,79],"class_list":["post-1187","post","type-post","status-publish","format-standard","hentry","category-develop","tag-2019ironman","tag-svelte"],"_links":{"self":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/comments?post=1187"}],"version-history":[{"count":8,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":3021,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/1187\/revisions\/3021"}],"wp:attachment":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/media?parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/categories?post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/tags?post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}