Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
334 commits
Select commit Hold shift + click to select a range
fe8fded
Migrated Filter highlightAll
RunDevelopment Aug 27, 2022
43a0957
Migrated Highlight keywords
RunDevelopment Aug 27, 2022
3b1b959
Use getParentPre everywhere
RunDevelopment Aug 27, 2022
e4da057
Migrate normalize whitespace
RunDevelopment Aug 27, 2022
f1a3065
Fixed File highlight
RunDevelopment Aug 27, 2022
a597725
Fixed copy to clipboard and download button
RunDevelopment Aug 27, 2022
7281992
Migrated Show language
RunDevelopment Aug 27, 2022
94e5cf8
Use simple grammar object for dhall
RunDevelopment Aug 27, 2022
91f5a8e
Mostly migrated WPD
RunDevelopment Aug 27, 2022
3a71a59
Slight improvement to Token
RunDevelopment Aug 27, 2022
3c2e456
Mostly migrated Diff Highlighting
RunDevelopment Aug 27, 2022
8f74686
Migrated inline color
RunDevelopment Aug 27, 2022
29de1bf
Migrated Keep Markup
RunDevelopment Aug 27, 2022
fdbf131
Migrated Command Line
RunDevelopment Aug 27, 2022
6102b33
Migrated Match Braces
RunDevelopment Aug 27, 2022
47bffd2
Mostly migrated line numbers
RunDevelopment Aug 27, 2022
a4bb94f
Added ESLint for TS files
RunDevelopment Aug 27, 2022
584a029
Fixed ESLint warning
RunDevelopment Aug 27, 2022
8aaad2b
Removed old eslint overwrite
RunDevelopment Aug 28, 2022
6f9d98b
Migrated JSONP Highlight
RunDevelopment Aug 28, 2022
022ad45
Implemented registry
RunDevelopment Aug 28, 2022
bc9cc11
Made plugins generic over id
RunDevelopment Aug 28, 2022
2f23886
Made plugins generic over id
RunDevelopment Aug 28, 2022
7788f74
Improved PluginProto type
RunDevelopment Aug 28, 2022
f20ef4e
Added interface of known plugins
RunDevelopment Aug 28, 2022
5a0ba0d
Fixed PluginProto type
RunDevelopment Aug 28, 2022
42c9562
Removed now unnecessary type casts
RunDevelopment Aug 28, 2022
7e5e85b
Ensure known plugins returns the correct type
RunDevelopment Aug 28, 2022
754b65b
Started with Autoloader
RunDevelopment Aug 28, 2022
b0c0c34
Use new Autoloader API
RunDevelopment Aug 28, 2022
ee5bb59
Improved line numbers API
RunDevelopment Aug 28, 2022
a7b0cb0
Migrated Line Highlight
RunDevelopment Aug 28, 2022
814365e
Added ESLint plugin for imports
RunDevelopment Aug 28, 2022
e45794c
Fixed insertBefore implementation
RunDevelopment Aug 28, 2022
0287b53
Fixed Pascal
RunDevelopment Aug 28, 2022
5110819
Started migrating tests
RunDevelopment Aug 29, 2022
35fc035
Migrated core test
RunDevelopment Aug 29, 2022
e1256cd
Added babel to run tests
RunDevelopment Aug 29, 2022
e12ab2c
Added type checking to tests
RunDevelopment Aug 29, 2022
59e799d
Migrated pattern test
RunDevelopment Aug 29, 2022
8481794
Fixed type errors
RunDevelopment Aug 29, 2022
2476683
Added JSDom type declarations
RunDevelopment Aug 29, 2022
e94be05
Added a separate tsconfig for tests
RunDevelopment Aug 29, 2022
444b810
Fixed some type errors
RunDevelopment Aug 29, 2022
ce210f4
Removed temp file
RunDevelopment Aug 29, 2022
30dab6b
Migrated more tests
RunDevelopment Aug 29, 2022
d7cfd79
Better argument parsing
RunDevelopment Aug 29, 2022
5e3e306
Fixed a few type errors
RunDevelopment Aug 29, 2022
af346f1
Migrated Prism DOM tests
RunDevelopment Aug 29, 2022
fc9ac96
Extracted out markup tag regex
RunDevelopment Aug 29, 2022
df85283
Fixed some type errors
RunDevelopment Aug 29, 2022
95c30e3
Fixed doc comment patterns
RunDevelopment Aug 29, 2022
53ca37a
Updated tests for CSS variables
RunDevelopment Aug 29, 2022
532526e
Updated OpenCl extensions tests
RunDevelopment Aug 29, 2022
90cbad4
Updated textile tests
RunDevelopment Aug 29, 2022
9449beb
Fixed Parser language
RunDevelopment Aug 29, 2022
22e5ec2
Added missing return statements
RunDevelopment Aug 29, 2022
bb5d783
Fixed arturo not referring to bash correctly
RunDevelopment Aug 29, 2022
e4510f8
Properly implement extend
RunDevelopment Aug 29, 2022
9c91f06
Updated HTTP test
RunDevelopment Aug 29, 2022
e6b5b4c
Added module for plain text
RunDevelopment Aug 29, 2022
67e7fad
Fixed inform7 grammar
RunDevelopment Aug 29, 2022
6362016
Fixed markup by adding XML component
RunDevelopment Aug 29, 2022
06fbec9
Fixed PHPDoc inclusion
RunDevelopment Aug 30, 2022
391103e
Fixed php css extras test
RunDevelopment Aug 30, 2022
80fc244
Use correct PHP pattern
RunDevelopment Aug 30, 2022
faca70f
Fixed markup templating optimization
RunDevelopment Aug 30, 2022
f63cdaa
Replace indexOf with more descriptive functions
RunDevelopment Aug 30, 2022
dd3bfc0
Removed unnecessary optional dependencies
RunDevelopment Aug 30, 2022
53fda66
Moved JS template string patterns into patterns.js
RunDevelopment Aug 31, 2022
b625fa8
Custom tokenization for v2 (#3541)
RunDevelopment Sep 1, 2022
a895430
Removed JS templates modify
RunDevelopment Sep 1, 2022
51f0a04
Added test for GraphQL's advanced tokens
RunDevelopment Sep 1, 2022
c8bdd6b
Implemented GraphQL's advanced tokens with custom tokenizer
RunDevelopment Sep 1, 2022
24b6d79
Process custom tokenizers before rest to prevent infinite recursion
RunDevelopment Sep 1, 2022
a60678b
Implemented JSX, NaniScript, and XQuery with custom tokenizers
RunDevelopment Sep 1, 2022
2eac254
Use custom tokenizer for MD
RunDevelopment Sep 1, 2022
6fbf0db
Simplified test code
RunDevelopment Sep 1, 2022
414f387
Fixed alias test
RunDevelopment Sep 1, 2022
52cb58e
Fixed examples test
RunDevelopment Sep 1, 2022
d927807
Fixed identifiers test
RunDevelopment Sep 1, 2022
8432deb
Fixed pattern test
RunDevelopment Sep 1, 2022
1a8ba03
Fixed coverage test
RunDevelopment Sep 1, 2022
1c35e1e
Resolve aliases for optional dependencies in effect updates
RunDevelopment Sep 1, 2022
4822017
Detect and throw on circular dependencies
RunDevelopment Sep 1, 2022
361d32c
Added registry tests
RunDevelopment Sep 1, 2022
eb5d84f
Added components tests
RunDevelopment Sep 1, 2022
934982b
Fixed DOM test utils
RunDevelopment Sep 1, 2022
d09c407
Fixed plugin tests
RunDevelopment Sep 1, 2022
e848415
Removed old dependency code
RunDevelopment Sep 1, 2022
1a0cc1f
Removed unused variable in MD
RunDevelopment Sep 1, 2022
08c37b4
Implemented Show Invisibles using `after-tokenize`
RunDevelopment Sep 1, 2022
f45ed5b
Added snapshot tests
RunDevelopment Sep 2, 2022
139f0a8
Slight reformatting
RunDevelopment Sep 2, 2022
ea8af5c
Fixed DOM util async
RunDevelopment Sep 2, 2022
4981395
Better window props handling in createPrismDOM
RunDevelopment Sep 2, 2022
5f5b6d2
Added Line Highlight tests
RunDevelopment Sep 2, 2022
cf20252
Extracted token stream modification from SI
RunDevelopment Sep 2, 2022
487cc04
Migrated Autolinker without MD links
RunDevelopment Sep 2, 2022
5eabb5e
Migrated Data-URI Highlight
RunDevelopment Sep 2, 2022
345699d
Added `addAlias` function to Token class
RunDevelopment Sep 2, 2022
7ce7d1c
Migrated Treeview
RunDevelopment Sep 2, 2022
caf02ef
Fixed import order
RunDevelopment Sep 2, 2022
becd343
Removed unnecessary optional dependency
RunDevelopment Sep 2, 2022
9924a34
Added missing example
RunDevelopment Sep 2, 2022
6996ddd
Removed JS extras
RunDevelopment Sep 2, 2022
5d748c6
Fixed categories in pattern test
RunDevelopment Sep 2, 2022
c4ab353
Fixed `isActive`
RunDevelopment Sep 2, 2022
e74129c
Added more treeview tests
RunDevelopment Sep 2, 2022
01dc3c8
Enable CI tests for v2 branch
RunDevelopment Sep 2, 2022
6cd91da
Hopefully make tests fast enough for HDD
RunDevelopment Sep 2, 2022
acff370
Fixed a few minor lint and type errors
RunDevelopment Sep 2, 2022
8e4e8f9
Added docs for Prism
RunDevelopment Sep 2, 2022
b1c722c
Added global Prism instance/manual highlighting
RunDevelopment Sep 2, 2022
fc6829b
Set longer timeout for component tests
RunDevelopment Sep 2, 2022
d90b3ac
MD: Opt out of hook earlier
RunDevelopment Sep 2, 2022
377ccf1
Reworked global to auto start
RunDevelopment Sep 3, 2022
10b0b09
Migrated autoloader for now
RunDevelopment Sep 4, 2022
36ddf45
Slightly improved types
RunDevelopment Sep 4, 2022
497459c
Added directory for generated component meta data
RunDevelopment Sep 4, 2022
b98b629
Refactored alias and title data a little
RunDevelopment Sep 4, 2022
fc0b484
Fixed show language tests
RunDevelopment Sep 4, 2022
f352b59
Migrated loadLanguages using dynamic import
RunDevelopment Sep 4, 2022
58c3caf
Fixed async describe in identifier test
RunDevelopment Sep 4, 2022
7735863
Removed unused import
RunDevelopment Sep 4, 2022
d483825
Started migrating Previewers
RunDevelopment Sep 4, 2022
ec3e972
Removed unused util function
RunDevelopment Sep 5, 2022
d925691
Target ES2018
RunDevelopment Sep 5, 2022
b0c0abf
Ignore dist/ directory
RunDevelopment Sep 5, 2022
2ba5953
Fixed last ESLint error
RunDevelopment Sep 5, 2022
ce0e66d
Re-enable lint workflow
RunDevelopment Sep 5, 2022
21d0e61
Moved global Prism into its own module
RunDevelopment Sep 5, 2022
403f13d
Normalize Whitespaces: Fixed keep markup check
RunDevelopment Sep 5, 2022
fbcd4ed
Removed old env.settings idea
RunDevelopment Sep 5, 2022
39ffdfa
Renamed tabLen -> tebLength
RunDevelopment Sep 5, 2022
f58c407
Added HookState to have a clean, type-safe way for plugins to retain …
RunDevelopment Sep 5, 2022
dcbb1a9
Fixed or ignored remaining language type errors
RunDevelopment Sep 5, 2022
61adb9a
Removed custom line numbers hook in favor of an optional dependency
RunDevelopment Sep 5, 2022
5710615
Fixed strange type error around noop
RunDevelopment Sep 5, 2022
ec5205a
EJS: Use new templating
RunDevelopment Sep 5, 2022
f9b7f3e
Slightly improved ERB
RunDevelopment Sep 5, 2022
34df109
FTL: Take advantage of new templating
RunDevelopment Sep 5, 2022
0c30920
Latte: Use new templating for comments
RunDevelopment Sep 5, 2022
6b154d0
Smarty: Use new templating
RunDevelopment Sep 5, 2022
1f6c667
Twig: Better use new templating
RunDevelopment Sep 5, 2022
459688b
ERB: Removed unnecessary lookbehind
RunDevelopment Sep 5, 2022
4c56ad2
Fixed type error in JsonP
RunDevelopment Sep 6, 2022
d3e806d
Added missing returns in effects
RunDevelopment Sep 6, 2022
20ce435
Added IDE completion for standard token names
RunDevelopment Sep 6, 2022
b226630
Removed line token from Diff
RunDevelopment Sep 6, 2022
9a43120
Migrated Diff Highlight
RunDevelopment Sep 6, 2022
f3ce6ca
Added optional deps for Diff Highlight
RunDevelopment Sep 6, 2022
b4a5393
Format plugin snapshots
RunDevelopment Sep 6, 2022
74fdca2
Simplified XML/Markup tags
RunDevelopment Sep 6, 2022
a0c01de
Fixed WPD
RunDevelopment Sep 6, 2022
2eac436
Ignore type errors in Previewers
RunDevelopment Sep 6, 2022
72d4385
Ignore remaining Core type errors
RunDevelopment Sep 6, 2022
15bfa63
Fixed TSC false positive
RunDevelopment Sep 6, 2022
6e2cd47
Added key check to insertBefore
RunDevelopment Sep 6, 2022
471f213
Removed old Prism test checks
RunDevelopment Sep 6, 2022
a104437
Ignore last type errors
RunDevelopment Sep 6, 2022
4ba5762
Added CI workflow for type checking
RunDevelopment Sep 6, 2022
deff7f1
Added missing tsc script
RunDevelopment Sep 6, 2022
95b75b2
ESLint: Consistent arrow parens
RunDevelopment Sep 6, 2022
9caf44e
ESLint: Added eqeqeq rule for more consistent code
RunDevelopment Sep 6, 2022
d11792a
Fixed previewers runtime error
RunDevelopment Sep 6, 2022
936f3b0
Added keyword aliases for JS keywords
RunDevelopment Sep 7, 2022
d88aad0
TS: Added 4.7 `out` keyword
RunDevelopment Sep 7, 2022
234a376
TS: Added support for 4.9 `satisfies` keyword
RunDevelopment Sep 7, 2022
9841beb
Updated `engines` in `package.json`
RunDevelopment Sep 7, 2022
2ed8d0e
Updated babelrc to target specific browsers and NodeJS version
RunDevelopment Sep 7, 2022
dff2cb8
Updated Highlight Keyword JS snapshot
RunDevelopment Sep 7, 2022
2f076a5
New build process
RunDevelopment Sep 9, 2022
478c4f6
Simplified changelog linkify
RunDevelopment Sep 9, 2022
0c95ee7
Updated treeview icon font task
RunDevelopment Sep 9, 2022
381c47d
Re-enabled CI build workflow
RunDevelopment Sep 9, 2022
ca28d3a
Removed polyfill scripts from website
RunDevelopment Sep 9, 2022
77ff418
Removed now useless `data-noprefix` attribute
RunDevelopment Sep 9, 2022
663593a
Removed unnecessary cast
RunDevelopment Sep 9, 2022
7db5515
Custom Class: Removed `language` parameter from `map` API
RunDevelopment Sep 9, 2022
b92fd80
Updated Custom class tests
RunDevelopment Sep 9, 2022
29c029c
Registry: Don't evaluate dependency grammars early anymore
RunDevelopment Sep 9, 2022
c5623b7
Added lazy grammar build plugin
RunDevelopment Sep 9, 2022
55943eb
V2 TypeScript (#3687)
RunDevelopment May 31, 2023
2c4e9e5
Added CJS output and source maps
RunDevelopment May 31, 2023
0e6cb72
Added eslint-plugin-eslint-comments
RunDevelopment Jun 1, 2023
d0612c6
Fixed type of `require` prop
RunDevelopment Jun 1, 2023
f3f5c4e
Upgrade target to ES2020 for better compression
RunDevelopment Jun 1, 2023
0174657
Simplified registry code
RunDevelopment Jun 1, 2023
8d15ad9
Updated terser plugin
RunDevelopment Jun 1, 2023
54ef4cd
Improved types
RunDevelopment Feb 10, 2024
ffab2ed
Use safe navigation
RunDevelopment Feb 10, 2024
3c0e4a7
Enable CORS
DmitrySharabin Mar 5, 2025
cd5a36e
Initial prettier config setup, with recommended .prettierrc (#3876)
robert-j-webb Mar 26, 2025
f5343b8
Ran prettier on all files (#3878)
robert-j-webb Mar 28, 2025
c602f6c
[Action] Rebuild the website on push (#3884)
DmitrySharabin Apr 8, 2025
7fe4723
Importing from ESM, CJS, and getting types (#3887)
robert-j-webb Apr 16, 2025
f98476e
Ditch Babel, fix tests, and benchmark (#3891)
DmitrySharabin Apr 17, 2025
cbfeb53
Migrate to ESLint v9 (#3892)
DmitrySharabin Apr 17, 2025
c43a7dd
Fix the `type-check` action (#3893)
DmitrySharabin Apr 18, 2025
5483398
[meta] Add the `funding` field to `package.json` (#3895)
DmitrySharabin Apr 23, 2025
304f086
Package improvements (#3896)
DmitrySharabin Apr 23, 2025
d71c4bb
Update dependencies (#3898)
DmitrySharabin Apr 25, 2025
0c0b1ab
Ditch the `prism-` prefix from language filenames (#3899)
DmitrySharabin Apr 26, 2025
f808bd8
Fix paths in the Autoloader plugin and add a build for `prism.js` (th…
DmitrySharabin Apr 26, 2025
9637528
Remove Dabblet from description, Prism is far more well-known at this…
LeaVerou Apr 26, 2025
3fc4242
Delete `bower.json` (#3902)
LeaVerou Apr 26, 2025
3f76c1f
Fix `dangerfile.js` (convert to ESM) (#3907)
DmitrySharabin Apr 26, 2025
c5d67f4
Remove website (#3906)
DmitrySharabin Apr 26, 2025
626f1aa
[ESLint] Switch off some rules (#3908)
DmitrySharabin Apr 26, 2025
244dafe
[ESLint] Replace errors with warnings (#3909)
DmitrySharabin Apr 27, 2025
2f7b10d
Ditch `eslint-plugin-prettier` and use `eslint-config-prettier` (#3910)
DmitrySharabin Apr 27, 2025
7158aa8
Ditch the `eslint-plugin-import` and use Prettier to order imports (#…
DmitrySharabin Apr 28, 2025
44429ca
[Prettier] Switch to a JS config file (#3917)
DmitrySharabin Apr 29, 2025
6d45fce
Place plugin docs along with their source code (#3930)
DmitrySharabin May 8, 2025
1802c05
[autoloader] Fix script name in the docs
DmitrySharabin May 9, 2025
19f8de6
[normalize-whitespace] Don't consider demo as a plugin
DmitrySharabin May 9, 2025
b634abe
Generate `file-sizes.json` during the build (#3946)
DmitrySharabin May 27, 2025
aeedf0c
Move and rename themes (#3947)
DmitrySharabin May 28, 2025
0897ec7
Update themes' docs (#3958)
DmitrySharabin Jun 2, 2025
84dd295
Move `combineCallbacks` to its own module (#3963)
DmitrySharabin Jun 20, 2025
fc7d3e5
Move the `Token` class under the `classes` folder
LeaVerou Jun 20, 2025
07ae505
Move all utils for working with iterables to a separate module
LeaVerou Jun 20, 2025
b9b058c
Simplify hooks
LeaVerou Jun 22, 2025
5a71111
Move the `Prism` class, add Prism singleton
LeaVerou Jun 23, 2025
d5d7a5a
Simplify the `Prism` class
LeaVerou Jun 23, 2025
1455834
Correctly parse CLI arguments (#3972)
DmitrySharabin Jun 24, 2025
acff03f
Simplify the `Prism` class even more
LeaVerou Jun 24, 2025
2a6e27c
Ditch the `rest` symbol in favor of the `$rest` special property
LeaVerou Jun 25, 2025
564701b
Move language utils to `util/` and separate them out
LeaVerou Jun 26, 2025
eedc845
Remove known plugins + type safety
LeaVerou Jun 26, 2025
acd6743
Move `documentReady` to async utils
LeaVerou Jun 27, 2025
3ead3be
Make the global bundle of Prism v2 work the same way as Prism v1 does
DmitrySharabin Jun 27, 2025
db0b5d9
Move Prism config to a separate file and fix the build options of the…
LeaVerou Jun 27, 2025
e68a4bd
Run Prettier on plugins + remove `.prettierignore` + tweak VS Code se…
DmitrySharabin Jul 12, 2025
1016324
[Line Numbers] Automatically attach to the global Prism instance (#3984)
DmitrySharabin Jul 15, 2025
af1650d
ESM bundle build optimization (#3985)
DmitrySharabin Jul 15, 2025
3d99da8
[plugins] Automatically attach to the global Prism instance (#3987)
DmitrySharabin Jul 15, 2025
31b467f
Fix issue with relative URL in dynamic import (#3986)
DmitrySharabin Jul 16, 2025
d2a6424
Introduce the concept of base language from the `simplify` branch (#3…
DmitrySharabin Jul 25, 2025
90a9913
Fix critical and high vulnerabilities (#3993)
DmitrySharabin Jul 25, 2025
328f579
Transfrom languages to use the `base` property (#3991)
DmitrySharabin Jul 25, 2025
b6a6687
Switch from TS to JS (#4000)
DmitrySharabin Aug 15, 2025
ca2f366
Remove redundant `prism-` prefix from plugin names (#4004)
DmitrySharabin Aug 16, 2025
6af1a48
[tests] Allow type check (#4015)
DmitrySharabin Oct 8, 2025
9579fc1
Introduce the concept of `languages` from the `simplify` branch (#4016)
DmitrySharabin Oct 10, 2025
bc0a275
[plugins] Update links to resources in READMEs (#4023)
DmitrySharabin Oct 25, 2025
b67b4e0
[command-line] Fix regression (#4025)
DmitrySharabin Oct 28, 2025
b93e36c
Introduce grammar patch from the `simplify` branch (#4019)
DmitrySharabin Oct 29, 2025
09154b6
Add code folding plugin for large code blocks
3015pavan Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
224 changes: 0 additions & 224 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ about: Create a report to help us improve.
title: ''
labels: ''
assignees: ''

---

**Information:**

- Prism version: [e.g. 1.14, latest from the download page, etc.]
- Plugins: [a list of plugins you are using or 'none']
- Environment: [e.g. Browser, Node, Webpack]
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
contact_links:
- name: Questions and Help
url: https://github.com/PrismJS/prism/discussions/categories/q-a
about: This issue tracker is not for support questions. Please refer to the Prism's Discussion tab.
- name: Questions and Help
url: https://github.com/PrismJS/prism/discussions/categories/q-a
about: This issue tracker is not for support questions. Please refer to the Prism's Discussion tab.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest a new feature for Prism.
title: ''
labels: enhancement
assignees: ''

---

**Motivation**
Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/highlighting-bug-report.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: Highlighting bug report
about: Does Prism highlight parts of your code incorrectly or is a language feature
not supported?
not supported?
title: ''
labels: language-definitions
assignees: ''

---

**Information**

- Language: [e.g. C++, JavaScript, YAML, etc.]
- Plugins: [a list of plugins you are using or 'none']

Expand All @@ -26,6 +26,7 @@ A clear and concise description of what is being highlighted incorrectly and how
<!--
Please add a link to the [test page](https://prismjs.com/test.html) that reproduces your issue (hover over "Share" and insert the link below).
-->

[Test page]()

<details>
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/new-language-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest a new language Prism should support.
title: ''
labels: language-definitions, new language
assignees: ''

---

**Language**
Expand Down
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
1 change: 0 additions & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:

jobs:
run:

runs-on: ubuntu-latest

steps:
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ name: CI

on:
push:
branches: [ master ]
branches: [v2]
pull_request:
branches: [ master ]
branches: [v2]

permissions:
contents: read

jobs:
tests:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,12 +27,11 @@ jobs:
- run: npm test

build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -43,33 +41,27 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: |
git add --all && \
git diff-index --cached HEAD --stat --exit-code || \
(echo && echo "The above files changed because the build is not up to date." && echo "Please rebuild Prism." && exit 1)

lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 14.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
- run: npm ci
- run: npm run lint:ci

coverage:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 14.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
- run: npm ci
- run: npm run regex-coverage
14 changes: 14 additions & 0 deletions .github/workflows/website-rebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Rebuild Website

on:
push:
branches:
# FIXME: Use the main branch when v2 is out
- v2

jobs:
trigger-rebuild:
runs-on: ubuntu-latest
steps:
- name: Trigger Netlify Build Hook
run: curl -X POST -d "{}" "${{ secrets.WEBSITE_BUILD_HOOK_URL }}?trigger_title=The+Prism+code+has+been+updated"
Loading