The following instructions are collated from storybookjs/storybook#14877
mkdir storybook-esm-react-webpack5
cd storybook-esm-react-webpack5
npm init -y
# manually add "type":"module" to package.json
#!/usr/bin/env bash | |
echo | |
echo "!!!! BUILDING IOS, PLEASE WAIT... !!!!!" | |
echo | |
npm ci | |
npm run lint | |
npm run markdown-link-check | |
sleep 1 |
The following instructions are collated from storybookjs/storybook#14877
mkdir storybook-esm-react-webpack5
cd storybook-esm-react-webpack5
npm init -y
# manually add "type":"module" to package.json
#!/bin/bash | |
# Generate an S3 ETAG for a multipart upload file. | |
# | |
# From: https://gist.github.com/emersonf/7413337 | |
# Author: Emerson Farrugia <https://github.com/emersonf> | |
# Modified by: Richard Willis <https://github.com/badsyntax> | |
# Modifications: Work with bytes instead of MB. | |
# | |
# MacOS only! |
/** | |
* Generate an S3 ETAG for multipart uploads in Node.js | |
* An implementation of this algorithm: https://stackoverflow.com/a/19896823/492325 | |
* Author: Richard Willis <[email protected]> | |
*/ | |
import fs from 'node:fs'; | |
import crypto, { BinaryLike } from 'node:crypto'; | |
const defaultPartSizeInBytes = 5 * 1024 * 1024; // 5MB |
#!/usr/bin/env bash | |
# Clear watchman watches | |
watchman watch-del-all 2>/dev/null | |
# Delete metro cache | |
rm -rf "${TMPDIR:-/tmp}"/metro-* | |
# local xcodebuild cache | |
cd ios/ |
#!/usr/bin/env bash | |
echo | |
echo "!!!! BUILDING IOS, PLEASE WAIT... !!!!!" | |
echo | |
npm ci | |
npm run lint | |
npm run markdown-link-check | |
npm run test -- --no-watchman |
# NOTE: must be run on a MacOS Agent! | |
steps: | |
- script: | | |
# Install AVD files | |
yes | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;default;x86_64' | |
yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses | |
# Create emulator | |
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_29_AOSP -d pixel --package 'system-images;android-29;default;x86_64' --force |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AppleAntiAliasingThreshold</key> | |
<integer>1</integer> | |
<key>ApplePressAndHoldEnabled</key> | |
<false/> | |
<key>AppleScrollAnimationEnabled</key> | |
<integer>0</integer> |
[color] | |
ui = auto | |
[push] | |
default = current | |
[commit] | |
verbose = true | |
[color "branch"] |
name: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
publish-docker-image: | |
name: Publish docker image |