Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Scope
Commits
041ebed8
Commit
041ebed8
authored
6 years ago
by
Marcus Cobden
Browse files
Options
Download
Email Patches
Plain Diff
Fix path confusion in bundle building
parent
1e67ef22
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.circleci/config.yml
+1
-1
.circleci/config.yml
.gitignore
+1
-0
.gitignore
Makefile
+3
-3
Makefile
client/package.json
+1
-1
client/package.json
with
6 additions
and
5 deletions
+6
-5
.circleci/config.yml
+
1
-
1
View file @
041ebed8
...
...
@@ -90,7 +90,7 @@ jobs:
paths
:
-
client/build/
-
client/build-external/
-
tmp
/weave-scope.tgz
-
client/bundle
/weave-scope.tgz
client-test
:
...
...
This diff is collapsed.
Click to expand it.
.gitignore
+
1
-
0
View file @
041ebed8
...
...
@@ -63,6 +63,7 @@ client/build-external/*
prog/staticui/*
prog/externalui/*
client/build-pkg
client/bundle
# Website
site-build
This diff is collapsed.
Click to expand it.
Makefile
+
3
-
3
View file @
041ebed8
...
...
@@ -204,7 +204,7 @@ client-start: $(SCOPE_UI_TOOLCHAIN_UPTODATE)
-w
/home/weave/scope/client
\
$(SCOPE_UI_BUILD_IMAGE)
yarn start
tmp
/weave-scope.tgz
:
$(shell find client/app -type f) $(SCOPE_UI_TOOLCHAIN_UPTODATE)
client/bundle
/weave-scope.tgz
:
$(shell find client/app -type f) $(SCOPE_UI_TOOLCHAIN_UPTODATE)
$(sudo)
docker run
$(RUN_FLAGS)
\
-v
$(
shell
pwd
)
/.cache:/home/weave/scope/.cache
\
-v
$(
shell
pwd
)
/client:/home/weave/scope/client
\
...
...
@@ -247,10 +247,10 @@ ui-upload: client/build-external/index.html
AWS_SECRET_ACCESS_KEY
=
$$
UI_BUCKET_KEY_SECRET
\
aws s3
cp
client/build-external/ s3://static.weave.works/scope-ui/
--recursive
--exclude
'*.html'
ui-pkg-upload
:
tmp
/weave-scope.tgz
ui-pkg-upload
:
client/bundle
/weave-scope.tgz
AWS_ACCESS_KEY_ID
=
$$
UI_BUCKET_KEY_ID
\
AWS_SECRET_ACCESS_KEY
=
$$
UI_BUCKET_KEY_SECRET
\
aws s3
cp
tmp
/weave-scope.tgz s3://weaveworks-js-modules/weave-scope/
$(
shell
echo
$(SCOPE_VERSION)
)
/weave-scope.tgz
aws s3
cp
client/bundle
/weave-scope.tgz s3://weaveworks-js-modules/weave-scope/
$(
shell
echo
$(SCOPE_VERSION)
)
/weave-scope.tgz
# We don't rmi images here; rm'ing the .uptodate files is enough to
# get the build images rebuilt, and rm'ing the scope exe is enough to
...
...
This diff is collapsed.
Click to expand it.
client/package.json
+
1
-
1
View file @
041ebed8
...
...
@@ -102,7 +102,7 @@
"build-external"
:
"EXTERNAL=true webpack --config webpack.production.config.js"
,
"copy-pkg-files"
:
"cp package.json build-pkg/ && cp -R app/styles build-pkg/"
,
"build-pkg"
:
"mkdir -p build-pkg && node node_modules/.bin/babel app/scripts --ignore __tests__ --out-dir build-pkg && yarn run copy-pkg-files"
,
"bundle"
:
"mkdir -p
tmp
&& yarn run build-pkg && cd ./build-pkg && yarn pack --filename ../
tmp
/weave-scope.tgz"
,
"bundle"
:
"mkdir -p
bundle
&& yarn run build-pkg && cd ./build-pkg && yarn pack --filename ../
bundle
/weave-scope.tgz"
,
"start"
:
"node server.js"
,
"start-production"
:
"NODE_ENV=production node server.js"
,
"test"
:
"jest"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help