highlightjs-jai 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +121 -0
- package/dist/jai.cjs +29060 -0
- package/dist/jai.es.js +29058 -0
- package/dist/jai.es.min.js +2 -0
- package/dist/jai.js +29064 -0
- package/dist/jai.min.js +2 -0
- package/dist/package.json +3 -0
- package/dist/styles/jaiEverything.css +2147 -0
- package/package.json +77 -0
- package/src/languages/jai.js +29035 -0
- package/src/styles/jaiEverything.css +2147 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "highlightjs-jai",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Highlight.js syntax definition for Jai files.",
|
|
5
|
+
"main": "dist/jai.cjs",
|
|
6
|
+
"module": "dist/jai.es.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/jai.es.js",
|
|
10
|
+
"require": "./dist/jai.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./dist/jai.es.min.js": "./dist/jai.es.min.js",
|
|
13
|
+
"./dist/jai.min.js": "./dist/jai.min.js",
|
|
14
|
+
"./styles/jaiEverything.css": "./dist/styles/jaiEverything.css"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"src",
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"./dist/jai.js",
|
|
22
|
+
"./dist/jai.min.js",
|
|
23
|
+
"./dist/styles/*.css"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"compileAll": "ls *.jai | grep -v test.jai | xargs -n 1 jai",
|
|
27
|
+
"generateStdLib": "jai generateStdLib.jai && generateStdLib >stdLib.js",
|
|
28
|
+
"pregenerateGrammarCoverageMarkup": "jai test/grammarCoverage/grammar-coverage.jai",
|
|
29
|
+
"generateGrammarCoverageMarkup": "node generateGrammarCoverageMarkup.cjs",
|
|
30
|
+
"postgenerateGrammarCoverageMarkup": "rm -rf test/grammarCoverage/.build test/grammarCoverage/grammar-coverage test/grammarCoverage/grammar-coverage.exe test/grammarCoverage/grammar-coverage.pdb",
|
|
31
|
+
"patchStdLib": "bash mergeStdLib.sh",
|
|
32
|
+
"dumpLangScopes": "node dumpScopes.mjs >langScopes",
|
|
33
|
+
"checkCssReference": "jai checkRef.jai && checkRef >check",
|
|
34
|
+
"checks": "npm run dumpLangScopes && npm run checkCssReference",
|
|
35
|
+
"build": "rollup -c && cp src/styles/jaiEverything.css dist/styles/",
|
|
36
|
+
"browserTest": "node browserTest.mjs",
|
|
37
|
+
"profile": "node -e \"require('fs').mkdirSync('profiles',{recursive:true})\" && node --cpu-prof --cpu-prof-dir=./profiles --cpu-prof-interval=100 profileTarget.cjs",
|
|
38
|
+
"profileLoop": "node profileTargetLoop.cjs",
|
|
39
|
+
"profileAnalyse": "node profileAnalyse.cjs",
|
|
40
|
+
"profileOpen": "npm run profile -- && node -e \"const fs=require('fs'),p='profiles';const f=fs.readdirSync(p).filter(n=>n.endsWith('.cpuprofile')).map(n=>({n,t:fs.statSync(p+'/'+n).mtimeMs})).sort((a,b)=>b.t-a.t)[0].n;require('child_process').spawnSync('code',[p+'/'+f],{stdio:'inherit',shell:true});\"",
|
|
41
|
+
"browserTestAll": "jai makeTests.jai && makeTests && npm run browserTest --",
|
|
42
|
+
"browserTestAllDebug": "jai makeTests.jai && makeTests -debug && npm run browserTest --",
|
|
43
|
+
"test": "mocha --reporter spec --reporter-options maxDiffSize=1000000",
|
|
44
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
45
|
+
"end2end": "npm run generateStdLib && npm run patchStdLib -- -y && npm run checks",
|
|
46
|
+
"end2endTest": "npm run end2end && npm test"
|
|
47
|
+
},
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/highlightjs/highlightjs-jai.git"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"jai",
|
|
54
|
+
"highlight.js",
|
|
55
|
+
"highlightjs",
|
|
56
|
+
"syntax"
|
|
57
|
+
],
|
|
58
|
+
"author": "J.Chris Findlay <j.chris.findlay@gmail.com>",
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/highlightjs/highlightjs-jai/issues"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://github.com/highlightjs/highlightjs-jai#readme",
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"highlight.js": "^11.11.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
69
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
70
|
+
"@types/node": "^26.0.1",
|
|
71
|
+
"highlight.js": "^11.11.1",
|
|
72
|
+
"mocha": "^11.7.4",
|
|
73
|
+
"rollup": "^4.0.2",
|
|
74
|
+
"should": "^13.2.3",
|
|
75
|
+
"typescript": "^6.0.3"
|
|
76
|
+
}
|
|
77
|
+
}
|