Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 77536d7

Browse files
committed
Use symlink for demo
1 parent dded240 commit 77536d7

File tree

4 files changed

+7
-158
lines changed

4 files changed

+7
-158
lines changed

demo/js/undomanager.js

Lines changed: 0 additions & 158 deletions
This file was deleted.

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Simple undo manager to provide undo and redo actions in JavaScript applications.",
55
"main": "lib/undomanager.js",
66
"scripts": {
7+
"postinstall": "sh scripts/link-lib.sh",
78
"lint": "eslint --ext .js --fix .",
89
"test": "jasmine-browser-runner runSpecs",
910
"github": "cp -f ./lib/undomanager.js ./demo/js/ && cp -R demo/* ../gh-pages"

scripts/link-lib.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SOURCE="${PWD}/lib/undomanager.js"
2+
TARGET="${PWD}/demo/js/undomanager.js"
3+
4+
rm -rf ${TARGET}
5+
ln -s ${SOURCE} ${TARGET}

0 commit comments

Comments
 (0)