Marp Integration With NPM Project

Sub-skill of marp: Integration with npm Project (+1).

vamseeachanta Updated

File contents

Integration with npm Project (+1)

Integration with npm Project

// package.json
{
  "scripts": {
    "start": "marp -s ./slides",
    "watch": "marp -w ./slides -o ./dist",
    "build": "marp ./slides --output ./dist",
    "build:pdf": "marp ./slides -o ./dist --pdf"
  },
  "devDependencies": {
    "@marp-team/marp-cli": "^3.0.0"
  }
}

Integration with Makefile

SLIDES_DIR = slides
OUTPUT_DIR = dist

.PHONY: html pdf clean serve

html:
	marp $(SLIDES_DIR)/*.md --output $(OUTPUT_DIR)

pdf:
	marp $(SLIDES_DIR)/*.md --output $(OUTPUT_DIR) --pdf --allow-local-files

clean:
	rm -rf $(OUTPUT_DIR)

serve:
	marp -s $(SLIDES_DIR)

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/development/documentation/marp/integration-with-npm-project commit 05e0bead91

Frequently asked questions

npx skillmds@latest add vamseeachanta/marp-integration-with-npm-project