refactor structure
This commit is contained in:
parent
6996e3abc4
commit
40ceb747ae
21
build-js.sh
21
build-js.sh
@ -15,17 +15,6 @@ if [ ! -f $GOPATH/bin/minify ]; then
|
|||||||
echo "set up minifiy"
|
echo "set up minifiy"
|
||||||
go get -v github.com/tdewolff/minify/cmd/minify
|
go get -v github.com/tdewolff/minify/cmd/minify
|
||||||
fi
|
fi
|
||||||
if [ ! -f $GOPATH/bin/gopherjs ]; then
|
|
||||||
echo "set up gopherjs"
|
|
||||||
go get -v -u github.com/gopherjs/gopherjs
|
|
||||||
fi
|
|
||||||
|
|
||||||
# build cuckoo miner
|
|
||||||
#echo "Building cuckoo miner"
|
|
||||||
#go get -v -u github.com/ZiRo-/cuckgo/miner_js
|
|
||||||
#$GOPATH/bin/gopherjs -m -v build github.com/ZiRo-/cuckgo/miner_js
|
|
||||||
#mv ./miner_js.js ./contrib/static/miner-js.js
|
|
||||||
#rm ./miner_js.js.map
|
|
||||||
|
|
||||||
outfile=$PWD/contrib/static/nntpchan.js
|
outfile=$PWD/contrib/static/nntpchan.js
|
||||||
|
|
||||||
@ -62,10 +51,16 @@ if [ -e ./contrib/js/contrib/*.js ] ; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mini ./contrib/js/main.js_ $outfile
|
mini ./contrib/js/entry.js $outfile
|
||||||
|
|
||||||
# local js
|
# local js
|
||||||
for f in ./contrib/js/*.js ; do
|
for f in ./contrib/js/nntpchan/*.js ; do
|
||||||
mini $f $outfile
|
mini $f $outfile
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# vendor js
|
||||||
|
for f in ./contrib/js/vendor/*.js ; do
|
||||||
|
mini $f $outfile
|
||||||
|
done
|
||||||
|
|
||||||
echo "ok"
|
echo "ok"
|
||||||
|
1
contrib/js/contrib/readme.md
Normal file
1
contrib/js/contrib/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
3rd party javascript
|
1
contrib/js/nntpchan/readme.md
Normal file
1
contrib/js/nntpchan/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
main nntpchan javascript files
|
2
contrib/js/nntpchan/unused/readme.md
Normal file
2
contrib/js/nntpchan/unused/readme.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
this directory holds unused javascript files for nntpchan
|
||||||
|
don't delete files move them here
|
2
contrib/js/readme.md
Normal file
2
contrib/js/readme.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
javascript files for nntpchan
|
||||||
|
|
Reference in New Issue
Block a user