-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(embed): publish the code embed assets to npm
- Loading branch information
1 parent
4407e4a
commit dd71e47
Showing
7 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Snipcode Embed | ||
|
||
This package contains the script and style assets for code snippet rendering in an embed. | ||
|
||
To use it, include the CSS and JavaScript link to JSDelivr file. | ||
|
||
```html | ||
<link rel="stylesheet" type="text/css" href="https://jsdelivr.net/npm/@snipcode/[email protected]/style.min.css" /> | ||
<script type="text/javascript" src="https://jsdelivr.net/npm/@snipcode/[email protected]/script.min.css"></script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@snipcode/embed", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"description": "Build the script and style assets for code snippet rendering in an embed.", | ||
"repository": " https://github.com/tericcabrel/snipcode.git", | ||
"author": "Eric Cabrel TIOGO <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -14,7 +14,7 @@ | |
"dev": "nodemon --watch \"*.ts\" --exec \"ts-node\" ./src/server/index.ts", | ||
"lint": "eslint src", | ||
"iframe:preview": "serve ./src/server/static -l 7503", | ||
"push": "cp package.publish.json build/package.json && cd build && npm publish --access=public", | ||
"publish:lib": "cp package.publish.json build/package.json && cp README.publish.md build/README.md && cd build && npm publish --access=public", | ||
"test": "jest" | ||
}, | ||
"devDependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
{ | ||
"name": "snipcode-embed", | ||
"version": "1.1.0", | ||
"repository": "https://github.com/tericcabrel/snipcode.git", | ||
"author": "Eric Cabrel TIOGO <[email protected]>", | ||
"license": "MIT" | ||
"name": "@snipcode/embed", | ||
"version": "1.1.2", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tericcabrel/snipcode.git" | ||
}, | ||
"homepage": "https://github.com/tericcabrel/snipcode/blob/main/packages/embed/README.md", | ||
"author": "Eric Cabrel TIOGO", | ||
"license": "MIT", | ||
"keywords": ["code snippet", "snipcode", "snippets", "embed"], | ||
"contributors": [ | ||
"Eric Cabrel TIOGO (https://github.com/tericcabrel)" | ||
] | ||
} |