Skip to content

Commit

Permalink
Merge pull request #107 from k15a/vscode-snippets
Browse files Browse the repository at this point in the history
Add Visual Studio Code Snippets
  • Loading branch information
Jaeho Lee authored Jan 5, 2021
2 parents 67ec0c8 + 1566de7 commit 4e96e15
Show file tree
Hide file tree
Showing 20 changed files with 758 additions and 13 deletions.
2 changes: 1 addition & 1 deletion builder/gvswatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class GVSwatchBuilder extends BaseBuilder {
}

build(outputPaths) {
const gzipped = zlib.gzipSync(new Buffer(this.gvswatch, 'utf8'));
const gzipped = zlib.gzipSync(Buffer.from(this.gvswatch, 'utf8'));

outputPaths.forEach(outputPath =>
fs.writeFileSync(path.join(outputPath), gzipped));
Expand Down
5 changes: 4 additions & 1 deletion compile-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ templatedBuilder.build('open-color.sketchpalette',
templatedBuilder.build('open-color.inkscape',
[path.join(__dirname, 'docs', 'asset', 'download', `open-color_${pkg.version}.gpl`)]);

templatedBuilder.build('open-color.code-snippets',
[path.join(__dirname, 'docs', 'asset', 'download', `open-color_${pkg.version}.code-snippets`)]);

aseBuilder.build('ase',
[path.join(__dirname, 'docs', 'asset', 'download', `open-color_${pkg.version}.ase`)]);

Expand All @@ -52,4 +55,4 @@ templatedBuilder.build('open-color.rcpx',
[path.join(__dirname, 'open-color.rcpx')]);

templatedBuilder.build('open-color.d.ts',
[path.join(__dirname, 'open-color.d.ts')]);
[path.join(__dirname, 'open-color.d.ts')]);
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ host: 0.0.0.0
markdown: kramdown
highlighter: rouge

oc-version: 1.6.3
oc-version: 1.7.0
colors: [
"gray",
"red",
Expand Down
1 change: 1 addition & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
<li><a class="nav-menu" href="{{ site.baseurl }}/asset/download/open-color_{{ site.oc-version }}.sketchpalette" download>Sketch palette</a></li>
<li><a class="nav-menu" href="{{ site.baseurl }}/asset/download/open-color_{{ site.oc-version }}.gpl" download>Inkscape swatches</a></li>
<li><a class="nav-menu" href="{{ site.baseurl }}/asset/download/open-color_{{ site.oc-version }}.clr" download>Mac OS palette</a></li>
<li><a class="nav-menu" href="{{ site.baseurl }}/asset/download/open-color_{{ site.oc-version }}.code-snippets" download>VS Code Snippets</a></li>
<li><a class="nav-menu" href="https://www.figma.com/file/Qj5TvDTLjOBynKQT6995eToz/Open-Color">Figma library ↗️</a></li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/_sass/_open-color.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
//
// 𝗖 𝗢 𝗟 𝗢 𝗥
// v 1.6.3
// v 1.7.0
//
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Expand Down
Binary file added docs/asset/download/open-color_1.7.0.ase
Binary file not shown.
Loading

0 comments on commit 4e96e15

Please sign in to comment.