Archived
1
0

refactor structure

This commit is contained in:
Jeff Becker 2016-10-07 10:06:25 -04:00
parent 6996e3abc4
commit 40ceb747ae
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
18 changed files with 14 additions and 13 deletions

View File

@ -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"

View File

@ -0,0 +1 @@
3rd party javascript

View File

@ -0,0 +1 @@
main nntpchan javascript files

View 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
View File

@ -0,0 +1,2 @@
javascript files for nntpchan