mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(dashboard): add moment to bower dependencies
This commit is contained in:
parent
6e278294af
commit
13f7257dd7
@ -11,7 +11,8 @@
|
|||||||
"angular-resource": "~1.2.0-rc.2",
|
"angular-resource": "~1.2.0-rc.2",
|
||||||
"angular-cookies": "~1.2.0-rc.2",
|
"angular-cookies": "~1.2.0-rc.2",
|
||||||
"angular-sanitize": "~1.2.0-rc.2",
|
"angular-sanitize": "~1.2.0-rc.2",
|
||||||
"d3": "~3.3.6"
|
"d3": "~3.3.6",
|
||||||
|
"moment": "~2.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"angular-mocks": "~1.2.0-rc.2",
|
"angular-mocks": "~1.2.0-rc.2",
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
cd ${DIR}
|
||||||
|
git clean -x -f dist
|
||||||
|
|
||||||
|
npm install
|
||||||
|
bower install
|
||||||
grunt build
|
grunt build
|
||||||
|
|
||||||
git clean -x -f dashboard/dist
|
export GOPATH="${DIR}/../"
|
||||||
|
|
||||||
for i in `find dashboard/dist -type f`; do
|
for i in `find dist -type f`; do
|
||||||
file=$(echo $i | sed 's#dashboard/dist/##g' | sed 's#/#-#g')
|
file=$(echo $i | sed 's#dist/##g' | sed 's#/#-#g')
|
||||||
go build github.com/jteeuwen/go-bindata
|
go build github.com/jteeuwen/go-bindata
|
||||||
./go-bindata -pkg "resources" -toc -out dashboard/resources/$file.go -prefix dashboard/dist $i
|
./go-bindata -pkg "resources" -toc -out resources/$file.go -prefix dist $i
|
||||||
done
|
done
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user