Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [6.1.6](https://github.com/cleandart/react-dart/compare/6.1.5...6.1.6)##
- [#336] Publish JS bundles to Workiva CDN

## [6.1.5](https://github.com/cleandart/react-dart/compare/6.1.4...6.1.5)##
- [#333] Remove old, unused file from bin/

Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM google/dart:2.13

WORKDIR /build
COPY pubspec.yaml .
COPY /lib ./lib/

RUN dart pub get

RUN cd lib && tar -czvf ../cdn_assets.tar.gz *.js
ARG BUILD_ARTIFACTS_CDN=/build/cdn_assets.tar.gz

FROM scratch
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: react
version: 6.1.5
version: 6.1.6
description: Bindings of the ReactJS library for building interactive interfaces.
homepage: https://github.com/cleandart/react-dart
environment:
Expand Down
18 changes: 18 additions & 0 deletions skynet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: validate_cdn_artifact
description: Verifies the cdn artifact generated in the build contains the JS bundle files
image: drydock.workiva.net/workiva/skynet-images:node-test-image-latest
size: large
timeout: 900

requires:
Workiva/react-dart:
- cdn

scripts:
- mkdir build
- cp $SKYNET_APPLICATION_REACT_DART_CDN ./build
- cd build
- tar -xf cdn_assets.tar.gz
- test -e ./react.js && { echo 'Verified dev bundle exists in CDN artifact.'; } || { echo 'Dev bundle /lib/react.js should exist in CDN artifact.'; exit 1; }
- test -e ./react_dom.js && { echo 'Verified dev DOM bundle exists in CDN artifact.'; } || { echo 'Dev DOM bundle /lib/react_dom.js should exist in CDN artifact.'; exit 1; }
- test -e ./react_with_react_dom_prod.js && { echo 'Verified prod bundle exists in CDN artifact.'; } || { echo 'Prod bundle /lib/react_with_react_dom_prod.js should exist in CDN artifact.'; exit 1; }