PrismJS / PrismJS/prism

No easy way to build with specific components using npm

Open
#3,900 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

Information:

  • Prism version: 1.30.0

Description
I'm trying to build prism using "npm run build" and I want to include certain languages and components.
I know there is the downloader on the official web page where I can do that manually by checking a bunch of boxes and then downloading a minified file. I didn't find an easy way to do the same locally, in the console, using the build script.
The closest I got was including the components by adding lines to gulpfile.js/paths.js but this process is also error-prone because I have to look up the dependencies myself in components.json
Is there something I'm missing or is there really no easy way to do this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running npm run build and reading gulpfile.js/paths.js and components.json, which the report identifies as the current build configuration and dependency source. Compare this workflow with the official downloader's component selection, then define a local interface whose completion criteria include selecting components and resolving their dependencies without manual lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.