Skip to content

Commit 87dc643

Browse files
authored
Merge pull request #11 from CGWebDev2003/main
[2.1.0]
2 parents 9080dba + 44042e7 commit 87dc643

14 files changed

+55
-28
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Released]
88

9+
## [2.1.0] - 2023-06-08
10+
11+
## Changed
12+
13+
- Added html scope for JavaScript snippets
14+
- Set optional version in import snippets to latest
15+
916
## [2.0.5] - 2023-06-08
1017

1118
### Fixed

neptunecss-snippets-2.0.5.vsix

586 Bytes
Binary file not shown.

neptunecss-snippets-2.1.0.vsix

28.6 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publisher": "NeptuneCSS",
55
"icon": "icon.png",
66
"description": "VS Code snippets for Neptune CSS",
7-
"version": "2.0.5",
7+
"version": "2.1.0",
88
"scripts": {
99
"package": "C:/Users/colin/AppData/Roaming/npm/vsce package"
1010
},

snippets/html/examples.code-snippets

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
"body": [
88
"<!DOCTYPE html>",
99
"<html lang=\"en\">",
10-
" <head>",
11-
" <meta charset=\"UTF-8\">",
12-
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
13-
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
14-
" ",
15-
" <!-- Import example style -->",
16-
" <link rel=\"stylesheet\" href=\"/examamples/example_style.min.css\">",
17-
" ",
18-
" <!-- Import neptune ui -->",
19-
" <link rel=\"stylesheet\" href=\"/neptune.css\">",
20-
" ",
21-
" <link rel=\"icon\" type=\"image/x-icon\" href=\"/assets/favicon.ico\">",
22-
" <title>${1:Title} | Neptune examples</title>",
23-
" </head>",
24-
" <body>",
25-
" ${2:Content}",
26-
" </body>",
10+
" <head>",
11+
" <meta charset=\"UTF-8\">",
12+
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
13+
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
14+
" ",
15+
" <!-- Import Neptune CSS -->",
16+
" <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/neptunecss@latest/neptune.min.css\">",
17+
" ",
18+
" <link rel=\"icon\" type=\"image/x-icon\" href=\"/assets/favicon.ico\">",
19+
" <title>${1:Title} | Neptune examples</title>",
20+
" </head>",
21+
" <body>",
22+
" ${2:Content}",
23+
" ",
24+
" <!-- Import Neptune JS -->",
25+
" <script type=\"module\" src=\"https://cdn.jsdelivr.net/npm/neptunecss-js@latest/neptune.min.js\"></script>",
26+
" </body>",
2727
"</html>"
2828
],
2929
"description": "Neptune example page template"

snippets/html/import.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"Neptune JS CDN": {
33
"scope": "html",
44
"prefix": "nep-js-cdn",
5-
"body": "<script src=\"https://cdn.jsdelivr.net/npm/neptunecss-js@${1:VERSION}/neptune.min.js\"></script>",
5+
"body": "<script type=\"module\" src=\"https://cdn.jsdelivr.net/npm/neptunecss-js@latest/neptune.min.js\"></script>",
66
"description": "Include Neptune JS CDN link"
77
},
88
"Neptune CSS CDN": {
99
"scope": "html",
1010
"prefix": "nep-css-cdn",
11-
"body": "<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/neptunecss@${1:VERSION}/neptune.min.css\">",
11+
"body": "<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/neptunecss@latest/neptune.min.css\">",
1212
"description": "Include Neptune CSS CDN link"
1313
}
1414
}

snippets/js/badges_js.code-snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// Badges JS
3-
"Neptune Default Badge": {
3+
"Neptune Default Badge, html": {
44
"scope": "javascript",
55
"prefix": "nep-badge",
66
"body": "const ${1:myBadge} = new Badge({${2:config}});",

snippets/js/buttons_js.code-snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
// Buttons JS
33
"Neptune Button": {
4-
"scope": "javascript",
4+
"scope": "javascript, html",
55
"prefix": "nep-button",
66
"body": "const ${1:myButton} = new Button({${2:config}});",
77
"description": "Create a new default button"

snippets/js/import_js.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"Neptune JS Import": {
3-
"scope": "javascript",
3+
"scope": "javascript, html",
44
"prefix": "nep-js-import",
5-
"body": "import { ${1:Components} from \"${2:path to Neptune JS}\"}",
5+
"body": "import { ${1:Components} from \"${2:path to Neptune JS}/neptune.min.js\"}",
66
"description": "Import Neptune JS Components"
77
}
88
}

snippets/js/links_js.code-snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
// Links JS
33
"Neptune Link": {
4-
"scope": "javascript",
4+
"scope": "javascript, html",
55
"prefix": "nep-link",
66
"body": "const ${1:myLink} = new Link({${2:config}});",
77
"description": "Create a new default link"

0 commit comments

Comments
 (0)