Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with symlinks #1

Open
RB-Lab opened this issue Jan 22, 2016 · 1 comment
Open

Problem with symlinks #1

RB-Lab opened this issue Jan 22, 2016 · 1 comment

Comments

@RB-Lab
Copy link
Owner

RB-Lab commented Jan 22, 2016

There are bugs with symlinks both in Babel-loader (see: babel/babel-loader#166) and in Webpack (see: webpack/webpack#784). And when you are using both things became messy. So I can't figure out still how to develop canvas-tree using standard npm link way...

@RB-Lab
Copy link
Owner Author

RB-Lab commented Feb 11, 2016

workaround (script that will replace lib in actual node_modules):

#!/bin/bash

TREE_PATH="../canvas-tree/"
NM_PATH="./node_modules/canvas-tree/"

daemon() {
    chsum1=""

    while [[ true ]]
    do
        chsum2=`find ${TREE_PATH}lib/ -type f -exec md5sum {} \;`
        if [[ $chsum1 != $chsum2 ]]
        then
            echo changes detected in ${TREE_PATH}lib/
            cp -r ${TREE_PATH}package.json ${TREE_PATH}lib/ ${NM_PATH}
            chsum1=$chsum2
        fi
        sleep 2
    done
}

daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant