Skip to content

Commit

Permalink
Merge pull request #5 from FIameCaster/v3
Browse files Browse the repository at this point in the history
Finish v3
  • Loading branch information
FIameCaster committed Feb 9, 2024
2 parents 4bb3c1a + b180cb4 commit 6a1a693
Show file tree
Hide file tree
Showing 2,966 changed files with 198,529 additions and 12,820 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ dist-ssr

package/readme.md
package/LICENSE
package/src/grammars
2 changes: 1 addition & 1 deletion package/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2>Web component</h2>
</div>
</div>
<button class="btn" style="width: max-content;">Open search</button>
<prism-editor line-numbers language="typescript" theme="github-dark"></prism-editor>
<prism-editor line-numbers language="javascript" theme="github-dark"></prism-editor>
</section>
<section>
<readonly-editor readonly line-numbers language="markdown" theme="github-dark"></readonly-editor>
Expand Down
49 changes: 31 additions & 18 deletions package/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
{
"name": "prism-code-editor",
"version": "2.4.1",
"version": "3.0.0",
"type": "module",
"description": "Lightweight, extensible code editor component for the web using Prism",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./prism": "./dist/prism/index.js",
"./prism/utils": "./dist/prism/utils/index.js",
"./guides": "./dist/extensions/guides.js",
"./web-component": "./dist/webComponent.js",
"./copy-button": "./dist/extensions/copyButton/index.js",
"./copy-button.css": "./dist/copy.css",
"./code-folding.css": "./dist/folding.css",
"./scrollbar.css": "./dist/scrollbar.css",
"./setups": "./dist/setups/index.js",
"./utils": "./dist/utils.js",
"./utils": "./dist/utils/index.js",
"./layout.css": "./dist/layout.css",
"./rtl-layout.css": "./dist/rtl-layout.css",
"./themes/*.css": "./dist/themes/*.css",
"./themes": "./dist/themes/index.js",
"./languages": "./dist/languages/index.js",
"./languages/*": "./dist/languages/*.js",
"./grammars/*": "./dist/grammars/*.js",
"./prism/languages": "./dist/prism/languages/index.js",
"./prism/languages/*": "./dist/prism/languages/*.js",
"./match-brackets": "./dist/extensions/matchBrackets/index.js",
"./highlight-brackets": "./dist/extensions/matchBrackets/highlight.js",
"./match-tags": "./dist/extensions/matchTags.js",
Expand All @@ -44,20 +47,35 @@
"dist/*"
],
"scripts": {
"dev": "node scripts/buildLangs.cjs && vite",
"build": "node scripts/buildLangs.cjs && tsc && vite build && node scripts/build.mjs",
"dev": "vite",
"build": "tsc && vite build && node scripts/build.mjs",
"preview": "vite preview",
"regex-coverage": "mocha src/prism/tests/coverage.js",
"test": "mocha src/prism/tests/*.js",
"test:core": "mocha src/prism/tests/core-tests.js",
"test:identifiers": "mocha src/prism/tests/identifier-test.js",
"test:languages": "mocha src/prism/tests/run.js",
"test:patterns": "mocha src/prism/tests/pattern-tests.js",
"prepublish": "tsc && vite build && node scripts/build.mjs"
},
"devDependencies": {
"prismjs": "^1.29.0",
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.0",
"@types/yargs": "^17.0.32",
"chai": "^5.0.0",
"magic-string": "^0.30.5",
"mocha": "^10.2.0",
"prettier": "2.7.1",
"refa": "0.9.1",
"regexp-ast-analysis": "0.2.4",
"regexpp": "^3.2.0",
"scslre": "0.1.6",
"typedoc": "^0.25.1",
"typescript": "^5.0.2",
"vite": "^5.0.7",
"vite-plugin-dts": "^2.3.0"
},
"dependencies": {
"@types/prismjs": "^1.26.2"
"vite": "^5.0.12",
"vite-plugin-dts": "^2.3.0",
"yargs": "^17.7.2"
},
"keywords": [
"editor",
Expand All @@ -76,11 +94,6 @@
"sideEffects": [
"*.css",
"./dist/languages/*",
"./dist/grammars/*"
],
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
"./dist/prism/languages/*"
]
}
Loading

0 comments on commit 6a1a693

Please sign in to comment.