![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@infosupport/kc-cli
Advanced tools
CLI for serving slick Reveal.js presentations for the Info Support Kenniscentrum
The one-stop-shop for @infosupport employees to create and serve slick Reveal.js presentations.
Both local and global installations are possible. Global is easiest and therefore the recommended approach.
Global
This has the advantage that you only have to install it and you're ready to go.
npm install --global @infosupport/kc-cli # Windows
npm install --global @infosupport/kc-cli --unsafe-perm=true # Linux
Local
With this, you are free to choose when you want to upgrade to newer versions of the CLI with, for example, a new corporate design.
You will have to make it an npm
project.
npm init --yes
npm install @infosupport/kc-cli # Windows
npm install @infosupport/kc-cli --unsafe-perm=true # Linux
Then, in the package.json
, add a start script:
{
"scripts": {
"start": "kc serve"
}
}
TO get a setup quick and easy, run kc init
. This will generate a folder structure similar to this:
|-- css
|-- code.css
|-- layout.css
|-- assets
|-- logo.svg
|-- slides
|-- 01-welcome
| |-- 01-intro.md
| |-- 02-agenda.md
|-- 02-finance
|-- 01-intro.md
|-- 02-past-year.md
|-- 03-projections.md
|-- web-components
|-- cool-graph
|-- cool-graph.js
|-- cool-graph.html.js
|-- cool-graph.css.js
From there, use your favorite text editor (e.g., Visual Studio Code) to change the content of the slides, modify the custom CSS, etc.
A couple of notes on the project folders:
/slides
contains subdirectories for each chapter/module and holds markdown files (the slides) inside those subfolders. /slides
is the only required folder for a minimal setup/css
is for customizing the style of your presentation using CSS/assets
is for holding assets like images and videos. You can also name this folder something else like /img
/web-components
is for your own custom, interactive presentation widgets. It's advanced stuff. Scroll down for more information.To view your presentation:
kc serve # for global installations
npm start # for local installations
option | description |
---|---|
kc serve | serve presentation from current directory on default port |
kc serve -o | open presentation in default browser |
kc serve -p | use random port |
kc serve -p <port> | use specified <port> |
This will export your slides to PDF using Decktape and pdf-lib. First, Decktape reads all the presentation slides and uses pdf-lib to generate a PDF where every page is a slide. With a bit of custom code, this PDF is transformed into a PDF that fits our corporate design.
First, serve your presentation (kc serve
). Then run kc print
.
option | description |
---|---|
kc print | print presentation to pdf using default url (http://localhost:15000) and the folder name as filename |
kc print --url [url] | use specified url |
kc print --output [filename] | use specified filename |
kc print --per-module | generate a PDF for each module |
option | description |
---|---|
kc lint | diagnose issues for when the presentation isn't running as it should |
By default, the corporate identity is applied to every slide. Certain slides can receive specific theming.
<!-- .slide: class="is-welcome" -->
<!-- .slide: class="is-module" -->
<!-- .slide: class="is-closing" -->
<!-- .slide: class="is-lab" -->
<!-- .slide: class="is-empty" -->
With Reveal.js, we can leverage Web Components to make slides more awesome. Right now, you can use these components out-of-the-box.
Note that web components are not natively supported in IE and this CLI is quite comfortable with not making any effort whatsoever to make it work in those browsers.
web component | description |
---|---|
<kc-timeline events='[{ "year": 2019, "caption": "cool stuff", "description": "detailed explanation of cool stuff" }]'> | A graphical visualization of a timeline. |
If you have (created or not) a web component that should be in this list, please let us know.
css
and placing .css
files in there.web-components
with subfolders for every components. The main .js
file should be the same name as the folder it's in.Example folder structure:
|-- css
|-- ...
|-- slides
|-- ...
|-- web-components
|-- cool-graph
|-- cool-graph.js
|-- cool-graph.html.js
|-- cool-graph.css.js
Nothing in particular at the moment.
None at the moment.
FAQs
CLI for serving slick Reveal.js presentations for the Info Support Kenniscentrum
The npm package @infosupport/kc-cli receives a total of 47 weekly downloads. As such, @infosupport/kc-cli popularity was classified as not popular.
We found that @infosupport/kc-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.