diff options
author | Aiden X <caichao.xu@gmail.com> | 2020-09-14 20:16:55 +0300 |
---|---|---|
committer | Aiden X <caichao.xu@gmail.com> | 2020-09-14 20:16:55 +0300 |
commit | 09650d7d0bd215ab5da9d8dbbc7cdc91b9aec6f7 (patch) | |
tree | a7ee151f32966dd4f7b270b8161eade33c185231 | |
parent | 40afeee2aa91b0d2dd87817dfbd2f20f98eeef86 (diff) |
build: prettier check
-rw-r--r-- | .prettierignore | 1 | ||||
-rw-r--r-- | .prettierrc.json | 12 | ||||
-rw-r--r-- | assets/js/less.js | 68 | ||||
-rw-r--r-- | assets/scss/_dark.scss | 8 | ||||
-rw-r--r-- | assets/scss/_font.scss | 49 | ||||
-rw-r--r-- | assets/scss/_footer.scss | 7 | ||||
-rw-r--r-- | assets/scss/_heaader.scss | 4 | ||||
-rw-r--r-- | assets/scss/_single.scss | 27 | ||||
-rw-r--r-- | assets/scss/_taxonomy.scss | 4 | ||||
-rw-r--r-- | assets/scss/less.scss | 26 | ||||
-rw-r--r-- | layouts/404.html | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 12 | ||||
-rw-r--r-- | layouts/_default/single.html | 30 | ||||
-rw-r--r-- | layouts/_default/taxonomy.html | 8 | ||||
-rw-r--r-- | layouts/_default/terms.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 10 | ||||
-rw-r--r-- | layouts/partials/footer.html | 21 | ||||
-rw-r--r-- | layouts/partials/head.html | 26 | ||||
-rw-r--r-- | layouts/partials/header.html | 26 | ||||
-rw-r--r-- | package-lock.json | 11 | ||||
-rw-r--r-- | package.json | 6 |
21 files changed, 212 insertions, 147 deletions
diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..fc47808 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +resources
\ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..709ead4 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,12 @@ +{ + "semi": false, + "overrides": [ + { + "files": ["*.html"], + "options": { + "tabWidth": 4, + "parser": "go-template" + } + } + ] +} diff --git a/assets/js/less.js b/assets/js/less.js index 3221f4a..d7bb79b 100644 --- a/assets/js/less.js +++ b/assets/js/less.js @@ -1,40 +1,54 @@ -const $btnDark = document.getElementById('btn-dark') -const $body = document.getElementsByTagName('body') -$btnDark.addEventListener('click', e => { - e.preventDefault() - $body[0].classList.toggle('dark') - if (getCookie('dark') === "") { - setCookie('dark', 'true', 7 * 24 * 60 * 60) - } else { - removeCookie('dark') - } +if (document.querySelector(".single-toc")) { + tocbot.init({ + // Where to render the table of contents. + tocSelector: ".single-toc", + // Where to grab the headings to build the table of contents. + contentSelector: ".single-content", + // Which headings to grab inside of the contentSelector element. + headingSelector: "h1, h2, h3", + // For headings inside relative or absolute positioned containers within content. + hasInnerContainers: false, + collapseDepth: 4, + }) +} + +const $btnDark = document.getElementById("btn-dark") +const $body = document.getElementsByTagName("body") +$btnDark.addEventListener("click", (e) => { + e.preventDefault() + $body[0].classList.toggle("dark") + if (getCookie("dark") === "") { + setCookie("dark", "true", 7 * 24 * 60 * 60) + } else { + removeCookie("dark") + } }) -if (getCookie('dark') === 'true') { - $body[0].classList.add('dark') +if (getCookie("dark") === "true") { + $body[0].classList.add("dark") } function setCookie(key, value, second) { - let d = new Date(); - d.setTime(d.getTime() + (second * 1000)); - let expires = "expires=" + d.toGMTString(); - document.cookie = key + "=" + value + "; " + expires + "; path=/"; + let d = new Date() + d.setTime(d.getTime() + second * 1000) + let expires = "expires=" + d.toGMTString() + document.cookie = key + "=" + value + "; " + expires + "; path=/" } function removeCookie(key) { - let d = new Date(); - d.setTime(d.getTime() - 1); - let expires = "expires=" + d.toGMTString(); - document.cookie = key + "=;" + expires + "; path=/"; + let d = new Date() + d.setTime(d.getTime() - 1) + let expires = "expires=" + d.toGMTString() + document.cookie = key + "=;" + expires + "; path=/" } function getCookie(key) { - let name = key + "="; - let ca = document.cookie.split(';'); - for (let i = 0; i < ca.length; i++) { - let c = ca[i].trim(); - if (c.indexOf(name) === 0) return c.substring(name.length, c.length); - } + let name = key + "=" + let ca = document.cookie.split(";") + for (let i = 0; i < ca.length; i++) { + let c = ca[i].trim() + if (c.indexOf(name) === 0) return c.substring(name.length, c.length) + } - return ""; + return "" } diff --git a/assets/scss/_dark.scss b/assets/scss/_dark.scss index 3d28e9d..584b4a4 100644 --- a/assets/scss/_dark.scss +++ b/assets/scss/_dark.scss @@ -1,4 +1,3 @@ - .dark { background: #16171c; @@ -16,7 +15,8 @@ } } - .post-title, .single-title { + .post-title, + .single-title { color: #d0d0d0; } @@ -26,7 +26,7 @@ .is-active-li { & > a { - color: #f0f0f0!important; + color: #f0f0f0 !important; } } -}
\ No newline at end of file +} diff --git a/assets/scss/_font.scss b/assets/scss/_font.scss index 82d8eb0..d5a421b 100644 --- a/assets/scss/_font.scss +++ b/assets/scss/_font.scss @@ -1,27 +1,40 @@ - /* monda-regular */ @font-face { - font-family: 'Monda'; + font-family: "Monda"; font-style: normal; - src: url('//lib.baomitu.com/fonts/monda/monda-regular.eot'); /* IE9 Compat Modes */ - src: local('Monda'), local('Monda-Normal'), - url('//lib.baomitu.com/fonts/monda/monda-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('//lib.baomitu.com/fonts/monda/monda-regular.woff2') format('woff2'), /* Super Modern Browsers */ - url('//lib.baomitu.com/fonts/monda/monda-regular.woff') format('woff'), /* Modern Browsers */ - url('//lib.baomitu.com/fonts/monda/monda-regular.ttf') format('truetype'), /* Safari, Android, iOS */ - url('//lib.baomitu.com/fonts/monda/monda-regular.svg#Monda') format('svg'); /* Legacy iOS */ + src: url("//lib.baomitu.com/fonts/monda/monda-regular.eot"); /* IE9 Compat Modes */ + src: local("Monda"), local("Monda-Normal"), + url("//lib.baomitu.com/fonts/monda/monda-regular.eot?#iefix") + format("embedded-opentype"), + /* IE6-IE8 */ url("//lib.baomitu.com/fonts/monda/monda-regular.woff2") + format("woff2"), + /* Super Modern Browsers */ + url("//lib.baomitu.com/fonts/monda/monda-regular.woff") format("woff"), + /* Modern Browsers */ url("//lib.baomitu.com/fonts/monda/monda-regular.ttf") + format("truetype"), + /* Safari, Android, iOS */ + url("//lib.baomitu.com/fonts/monda/monda-regular.svg#Monda") format("svg"); /* Legacy iOS */ } /* merriweather-regular */ @font-face { - font-family: 'Merriweather'; + font-family: "Merriweather"; font-style: normal; font-weight: regular; - src: url('//lib.baomitu.com/fonts/merriweather/merriweather-regular.eot'); /* IE9 Compat Modes */ - src: local('Merriweather'), local('Merriweather-Normal'), - url('//lib.baomitu.com/fonts/merriweather/merriweather-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('//lib.baomitu.com/fonts/merriweather/merriweather-regular.woff2') format('woff2'), /* Super Modern Browsers */ - url('//lib.baomitu.com/fonts/merriweather/merriweather-regular.woff') format('woff'), /* Modern Browsers */ - url('//lib.baomitu.com/fonts/merriweather/merriweather-regular.ttf') format('truetype'), /* Safari, Android, iOS */ - url('//lib.baomitu.com/fonts/merriweather/merriweather-regular.svg#Merriweather') format('svg'); /* Legacy iOS */ -}
\ No newline at end of file + src: url("//lib.baomitu.com/fonts/merriweather/merriweather-regular.eot"); /* IE9 Compat Modes */ + src: local("Merriweather"), local("Merriweather-Normal"), + url("//lib.baomitu.com/fonts/merriweather/merriweather-regular.eot?#iefix") + format("embedded-opentype"), + /* IE6-IE8 */ + url("//lib.baomitu.com/fonts/merriweather/merriweather-regular.woff2") + format("woff2"), + /* Super Modern Browsers */ + url("//lib.baomitu.com/fonts/merriweather/merriweather-regular.woff") + format("woff"), + /* Modern Browsers */ + url("//lib.baomitu.com/fonts/merriweather/merriweather-regular.ttf") + format("truetype"), + /* Safari, Android, iOS */ + url("//lib.baomitu.com/fonts/merriweather/merriweather-regular.svg#Merriweather") + format("svg"); /* Legacy iOS */ +} diff --git a/assets/scss/_footer.scss b/assets/scss/_footer.scss index a3db990..471a9fd 100644 --- a/assets/scss/_footer.scss +++ b/assets/scss/_footer.scss @@ -1,18 +1,17 @@ - footer { padding: 20px 0; @include flex-y-center; justify-content: center; text-align: center; - color: #5D5C5C; + color: #5d5c5c; font-size: 14px; a { - color: #5D5C5C; + color: #5d5c5c; } .copyright { margin-left: 20px; margin-right: 20px; } -}
\ No newline at end of file +} diff --git a/assets/scss/_heaader.scss b/assets/scss/_heaader.scss index f18bbfe..fc62299 100644 --- a/assets/scss/_heaader.scss +++ b/assets/scss/_heaader.scss @@ -23,10 +23,10 @@ a { padding: 10px 14px; - color: #4C4E4D; + color: #4c4e4d; &:hover { color: var(--theme-color); } } -}
\ No newline at end of file +} diff --git a/assets/scss/_single.scss b/assets/scss/_single.scss index 1989361..831b6d5 100644 --- a/assets/scss/_single.scss +++ b/assets/scss/_single.scss @@ -1,7 +1,6 @@ - .single { line-height: 2; - color: #4C4E4D; + color: #4c4e4d; font-size: 16px; display: flex; @@ -14,7 +13,9 @@ margin-bottom: 10px; font-size: 30px; font-weight: 500; - font-family: 'Monda', -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; + font-family: "Monda", -apple-system, BlinkMacSystemFont, PingFang SC, + Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, + helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; @include mobile { font-size: 26px; } @@ -48,11 +49,18 @@ margin: 30px 0 30px; } - h1, h2, h3, h4, h5, h6 { + h1, + h2, + h3, + h4, + h5, + h6 { font-weight: 600; outline: none; margin: 30px 0 30px; - font-family: 'Monda', -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; + font-family: "Monda", -apple-system, BlinkMacSystemFont, PingFang SC, + Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, + helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; } h1 { @@ -71,7 +79,8 @@ font-size: 20px; } - ol, ul { + ol, + ul { list-style: inherit; padding-left: 20px; } @@ -102,7 +111,7 @@ } .toc-list-item { - transition: color .2s; + transition: color 0.2s; } .toc-link { @@ -116,7 +125,6 @@ margin: 5px 0; } - .toc-list-item { margin-bottom: 5px; @include text-truncate; @@ -132,7 +140,8 @@ padding-left: 0; } - ol, ul { + ol, + ul { list-style: none; } } diff --git a/assets/scss/_taxonomy.scss b/assets/scss/_taxonomy.scss index 7871ca3..697615b 100644 --- a/assets/scss/_taxonomy.scss +++ b/assets/scss/_taxonomy.scss @@ -2,5 +2,5 @@ font-size: 20px; margin-bottom: 50px; color: #909090; - font-family: 'Monda', -apple-system, sans-serif; -}
\ No newline at end of file + font-family: "Monda", -apple-system, sans-serif; +} diff --git a/assets/scss/less.scss b/assets/scss/less.scss index ccf35ce..884e8ab 100644 --- a/assets/scss/less.scss +++ b/assets/scss/less.scss @@ -1,10 +1,14 @@ @import "../../node_modules/@forever9/lego/lego"; -$breakpoints: (md:856px); -$container-max-widths: (md: 800px,); +$breakpoints: ( + md: 856px, +); +$container-max-widths: ( + md: 800px, +); @mixin mobile() { @include media-down(map-get($breakpoints, md)) { - @content + @content; } } @@ -20,8 +24,11 @@ $container-max-widths: (md: 800px,); @include column($grid-gap: 30px); @include gen-grids(); - -@mixin offset($name: is-offset, $column-number: 12, $breakpoints: $breakpoints) { +@mixin offset( + $name: is-offset, + $column-number: 12, + $breakpoints: $breakpoints +) { @for $i from 1 through $column-number { .#{$name}-#{$i} { margin-left: percentage($i / $column-number); @@ -46,7 +53,9 @@ html { } body { - font-family: "Merriweather", -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; + font-family: "Merriweather", -apple-system, BlinkMacSystemFont, PingFang SC, + Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, + helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; background: #fff; } @@ -63,7 +72,6 @@ a { text-decoration: none; } - .posts { margin-bottom: 80px; } @@ -88,7 +96,9 @@ a { } .post-title { - font-family: 'Monda', -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; + font-family: "Monda", -apple-system, BlinkMacSystemFont, PingFang SC, + Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, + helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif; } .year { diff --git a/layouts/404.html b/layouts/404.html index e69de29..f1b1cb3 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -0,0 +1 @@ +404 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0c2e761..9fa96ba 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,8 +1,8 @@ <html lang="en"> -{{ partial "head.html" . }} -<body> -{{ partial "header.html" . }} -{{ block "main" . }} {{ end }} -{{ partial "footer.html" . }} -</body> + {{ partial "head.html" . }} + <body> + {{ partial "header.html" . }} + {{ block "main" . }} {{ end }} + {{ partial "footer.html" . }} + </body> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0ef0cce..31e3d1f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,33 +3,31 @@ <div class="row"> <div class="main single"> <div class="single-body column"> - <div class="single-title"> - {{.Title}} - </div> + <div class="single-title">{{ .Title }}</div> <div class="single-date"> {{ .Date.Format "2006-01-02" }} </div> <div class="single-tags"> {{ range (.GetTerms "tags") }} - <a class="single-tag" href="{{ .Permalink }}">#{{ .LinkTitle }}</a> + <a class="single-tag" href="{{ .Permalink }}"> + #{{ .LinkTitle }} + </a> {{ end }} </div> - <div class="single-content"> - {{.Content}} - </div> + <div class="single-content">{{ .Content }}</div> </div> - </div> - <script src="https://utteranc.es/client.js" - repo="4ever9/blog-comments" - issue-term="pathname" - theme="github-light" - crossorigin="anonymous" - async> - </script> + <script + src="https://utteranc.es/client.js" + repo="4ever9/blog-comments" + issue-term="pathname" + theme="github-light" + crossorigin="anonymous" + async + ></script> <div class="single-toc-wrap"> <div class="single-toc"></div> </div> </div> </div> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 1d20ddd..0d13795 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -2,15 +2,15 @@ <div class="container"> <div class="main"> <div class="taxonomy-name"> - #{{.Name}}(共{{ len .Data.Pages }}篇) + #{{ .Name }}(共{{ len .Data.Pages }}篇) </div> {{ range (.RegularPages.GroupByDate "2006") }} <div class="posts"> <div class="year">{{ .Key }}</div> {{ range .Pages }} <div class="post"> - <a class="post-title" href="{{.Permalink}}"> - {{.Title}} + <a class="post-title" href="{{ .Permalink }}"> + {{ .Title }} </a> <span class="post-date"> {{ .Date.Format "Jan 02" }} @@ -21,4 +21,4 @@ {{ end }} </div> </div> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index b9cde12..de31f06 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1 +1 @@ -term
\ No newline at end of file +term diff --git a/layouts/index.html b/layouts/index.html index 7e94c2d..70a8a61 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,16 +6,16 @@ <div class="year">{{ .Key }}</div> {{ range .Pages }} <div class="post"> - <a class="post-title" href="{{.Permalink}}"> - {{.Title}} + <a class="post-title" href="{{ .Permalink }}"> + {{ .Title }} </a> <span class="post-date"> - {{ .Date.Format "Jan 02" }} - </span> + {{ .Date.Format "Jan 02" }} + </span> </div> {{ end }} </div> {{ end }} </div> </div> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 90a5026..5f7fe30 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,33 +2,18 @@ <footer> <div>Less is More</div> <span class="copyright"> - {{ $year := "2020" }} + {{ $year := "2020" }} {{ $created := $.Site.Params.siteCreated }} {{ if and $created (lt $created now.Year) }} {{ $year = printf "%d - %d" $created now.Year }} - {{ else }} + {{ else }} {{ $year = printf "%d" now.Year }} {{ end }} - © {{ $year }} + © {{ $year }} </span> <a href="">粤ICP备120011798号</a> </footer> </div> -</body> <script src="https://cdn.staticfile.org/tocbot/4.11.2/tocbot.min.js"></script> -<script> - tocbot.init({ - // Where to render the table of contents. - tocSelector: '.single-toc', - // Where to grab the headings to build the table of contents. - contentSelector: '.single-content', - // Which headings to grab inside of the contentSelector element. - headingSelector: 'h1, h2, h3', - // For headings inside relative or absolute positioned containers within content. - hasInnerContainers: false, - collapseDepth: 4 - }); -</script> {{ $built := resources.Get "js/less.js" | js.Build "less.js" }} <script type="text/javascript" src="{{ $built.RelPermalink }}"></script> -</html>
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5db9264..a89bc6c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,13 +1,21 @@ <head> - <meta charset="UTF-8"> - <meta name="viewport" - content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> - <meta http-equiv="X-UA-Compatible" content="ie=edge"> + <meta charset="UTF-8" /> + <meta + name="viewport" + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" + /> + <meta http-equiv="X-UA-Compatible" content="ie=edge" /> {{ $options := (dict "targetPath" "less.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $style := resources.Get "scss/less.scss" | resources.ToCSS $options }} - <link href="/images/favicon.png" rel="icon" type="image/ico"> - <link rel="stylesheet" href="{{ $style.Permalink }}"> - <link rel="stylesheet" href="//at.alicdn.com/t/font_1995642_5r07rt5x862.css"> - <link rel="stylesheet" href="https://lib.baomitu.com/tocbot/4.11.2/tocbot.min.css"> + <link href="/images/favicon.png" rel="icon" type="image/ico" /> + <link rel="stylesheet" href="{{ $style.Permalink }}" /> + <link + rel="stylesheet" + href="//at.alicdn.com/t/font_1995642_5r07rt5x862.css" + /> + <link + rel="stylesheet" + href="https://lib.baomitu.com/tocbot/4.11.2/tocbot.min.css" + /> <title>面向自由编程</title> -</head>
\ No newline at end of file +</head> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1c1ae59..5446237 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,15 +1,15 @@ <div class="container"> - <div class="nav"> - <a class="logo" href="/"> - <img src="/images/logo.png" alt="" /> - </a> - <ul class="nav-menu"> - {{range $menu := .Site.Menus.main}} - <li> - <a href="{{.URL}}">{{.Name}}</a> - </li> - {{end}} - </ul> - <i class="icon icon-moon" id="btn-dark"></i> - </div> + <div class="nav"> + <a class="logo" href="/"> + <img src="/images/logo.png" alt="" /> + </a> + <ul class="nav-menu"> + {{ range $menu := .Site.Menus.main }} + <li> + <a href="{{ .URL }}">{{ .Name }}</a> + </li> + {{ end }} + </ul> + <i class="icon icon-moon" id="btn-dark"></i> + </div> </div> diff --git a/package-lock.json b/package-lock.json index faf13d8..b3c4fd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2691,6 +2691,17 @@ "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" }, + "prettier": { + "version": "2.1.1", + "resolved": "https://registry.npm.taobao.org/prettier/download/prettier-2.1.1.tgz?cache=0&sync_timestamp=1598414494892&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fprettier%2Fdownload%2Fprettier-2.1.1.tgz", + "integrity": "sha1-2Uhd1eSZ2qbLVHAjuHps9RvuN9Y=" + }, + "prettier-plugin-go-template": { + "version": "0.0.10", + "resolved": "https://registry.npm.taobao.org/prettier-plugin-go-template/download/prettier-plugin-go-template-0.0.10.tgz", + "integrity": "sha1-ADbERVok6JqJbWzo32wAmeJJkEg=", + "dev": true + }, "pretty-hrtime": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", diff --git a/package.json b/package.json index 8d69336..99f52c1 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,10 @@ "author": "Aiden X", "license": "ISC", "dependencies": { - "@forever9/lego": "^0.1.0" + "@forever9/lego": "^0.1.0", + "prettier": "^2.1.1" + }, + "devDependencies": { + "prettier-plugin-go-template": "0.0.10" } } |