Mirror: A frag-canvas custom element to apply Shadertoy fragment shaders to a canvas or image/video element
at main 273 B view raw
1const path = require('path'); 2const fs = require('fs'); 3 4const precommit = path.resolve(__dirname, '../.git/hooks/pre-commit'); 5 6const hook = ` 7#!/bin/sh 8pnpm exec lint-staged --quiet --relative 9`.trim(); 10 11fs.writeFileSync(precommit, hook); 12fs.chmodSync(precommit, '755');