This repository tracks a subset of the static files hosted at static.readup.org that is useful for local app development. The static.readup.org server serves three main purposes:
-
Hosting font and image files used by the various Readup clients.
These files are included in this repository in the
contentdirectory. This will be the root directory of ourstatic.readup.orgdevelopment server. -
Hosting the web app and embed JavaScript and CSS bundles.
These files are generated by the
webrepository build system. We'll set up virtual directories at/app/bundlesand/embedthat point to the build output directories. -
Hosting native client script files and indexes of those files in order to facilitate over-the-air updates.
Not required for development use except for testing of the script update functionality.
There is no build system in this repository. Follow the setup guide in the dev-env repository which covers setting up a web server which will reference the files in this repository.
This repository includes the production builds of the nativeClient/reader and nativeClient/shareExtension scripts from the web repository. Perform the following update procedure whenever a new version of either script is available:
-
Copy the production build of the latest
nativeClient/readerornativeClient/shareExtensionscript tocontent/native-client/reader/bundle-{version}.jsorcontent/native-client/share-extension/bundle-{version}.jsrespectively. -
Delete any earlier scripts that use the same major version. Only the latest version available for each major version should be maintained.
-
Update the
content/native-client/reader.txtorcontent/native-client/share-extension.txtindex files to reflect the new list of available scripts.Important: This file is processed by various Readup clients and should not contain any blank lines, contain only Unix-style
LFnewline characters, and be encoded using UTF-8.
This repository tracks the folders app, common, email, extension (legacy) and native-client.
The static.readup.org bucket also hosts email-content (assets for specific marketing emails), embed (archives) and media (misc assets).
To sync the latest state of this repository to the s3://static.readup.org bucket, without removing the content that is not tracked here, run:
aws s3 sync --exclude "*.DS_Store" content/app s3://static.readup.org/app
aws s3 sync --exclude "*.DS_Store" content/common s3://static.readup.org/common
aws s3 sync --exclude "*.DS_Store" content/email s3://static.readup.org/email
aws s3 sync --exclude "*.DS_Store" --cache-control max-age=0 content/native-client s3://static.readup.org/native-client