Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Develop #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to the "L13 JS Snippets" extension will be documented in this file.

## [0.15.0] - 2019-10-20

### Added
- Added support for JSON and JSONC.
- Added support for JavaScript React and TypeScript React.

## [0.14.0] - 2019-09-22

### Added
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This extension contains keyword snippets and micro patterns for JavaScript and T

This extension is part of the [L13 Extension Pack](https://marketplace.visualstudio.com/items?itemName=L13RARY.l13-extension-pack).

## What's new in L13 JS Snippets 0.15.0

- Added support for JSON and JSONC.
- Added support for JavaScript React and TypeScript React.

## Index

1. [Introduction](#Introduction)
Expand Down
8 changes: 8 additions & 0 deletions SNIPPETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Complete list of all JavaScript and TypeScript snippets for Visual Studio Code. The rules for all these snippets are explained in the [README.md](./README.md)

### JSON

| Prefix | Snippet |
| ------:| ------- |
| `f` | `false` |
| `n` | `null` |
| `t` | `true` |

### JavaScript

| Prefix | Snippet |
Expand Down
25 changes: 23 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "l13-js-snippets",
"displayName": "L13 JS Snippets",
"description": "Code Snippets for JavaScript and TypeScript",
"version": "0.14.0",
"version": "0.15.0",
"publisher": "L13RARY",
"preview": true,
"license": "SEE LICENCE IN LICENCE.md",
Expand All @@ -26,27 +26,48 @@
"Snippets"
],
"keywords": [
"json",
"javascript",
"snippets",
"typescript"
],
"contributes": {
"snippets": [
{
"language": "json",
"path": "./snippets/json.json"
},
{
"language": "jsonc",
"path": "./snippets/json.json"
},
{
"language": "javascript",
"path": "./snippets/javascript.json"
},
{
"language": "javascriptreact",
"path": "./snippets/javascript.json"
},
{
"language": "typescript",
"path": "./snippets/javascript.json"
},
{
"language": "typescriptreact",
"path": "./snippets/javascript.json"
},
{
"language": "typescript",
"path": "./snippets/typescript.json"
},
{
"language": "typescriptreact",
"path": "./snippets/typescript.json"
}
]
},
"scripts": {
"build": "node ./src/manual.js"
"build": "node ./src/index.js"
}
}
5 changes: 5 additions & 0 deletions snippets/json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"false": { "prefix": "f", "body": ["false"], "description": "" },
"null": { "prefix": "n", "body": ["null"], "description": "" },
"true": { "prefix": "t", "body": ["true"], "description": "" }
}
1 change: 1 addition & 0 deletions src/manual.js → src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const path = require('path');
// Variables __________________________________________________________________

const paths = {
JSON: '../snippets/json.json',
JavaScript: '../snippets/javascript.json',
TypeScript: '../snippets/typescript.json',
};
Expand Down