Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern Lab + Docs Site-related Enhancements & Fixes #1050

Merged
merged 71 commits into from
Jan 24, 2019
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
7a324e1
WIP: stashing progress on Pattern Lab and Docs site upgrades
sghoweri Jan 18, 2019
e434441
chore: re-test build after removing node req from package.json
sghoweri Jan 18, 2019
e63ca5c
test: test closing mobile nav when tapping on a nav link
sghoweri Jan 19, 2019
e4d2750
fix: fix issues with nav opening / closing when expected based on scr…
sghoweri Jan 19, 2019
34bcae5
test: re-test component explorer after locking down lit-html version
sghoweri Jan 19, 2019
668a49b
test: re-test after upgrading Twig Renderer lib version
sghoweri Jan 19, 2019
d904587
Merge pull request #1048 from bolt-design-system/feature/speed-up-twi…
sghoweri Jan 19, 2019
0eb17d4
chore: disable auto-adding min-height util on iframe page load
sghoweri Jan 20, 2019
e8e134c
refactor: clean up PL docs site UI
sghoweri Jan 20, 2019
25c0691
chore: update component explorer deps
sghoweri Jan 20, 2019
618c351
refactor: capture currentUrl and wire up to redux
sghoweri Jan 20, 2019
94b6e7b
refactor: clean up PL head / footer
sghoweri Jan 20, 2019
806814f
fix: adjust default link line height + icon and text spacing
sghoweri Jan 20, 2019
6868019
chore: temporarily disable list component console log regarding valid…
sghoweri Jan 20, 2019
2b792bd
fix: adjust breakpoint for hiding viewport resizer controls
sghoweri Jan 20, 2019
b36de27
refactor: clean up active state handling in nav + viewport
sghoweri Jan 20, 2019
0c78652
refactor: adjust default background color of viewport + lighten up da…
sghoweri Jan 20, 2019
82d4ef1
refactor: widen grid column used for nav + add extra space around log…
sghoweri Jan 20, 2019
55ed3fc
refactor: update entrypoint to eagerly download all main JS chunks
sghoweri Jan 20, 2019
573af69
refactor: refactor logic that handles updating and changing urls, upd…
sghoweri Jan 20, 2019
5459002
test: potential perf improvements via webpack config updates to inclu…
sghoweri Jan 20, 2019
2b9d584
fix: temporarily disable pattern lab data being inlined in the main s…
sghoweri Jan 22, 2019
88a5fca
refactor: update component docs sub-nav to align to the right
sghoweri Jan 22, 2019
e8a6b8a
refactor: port over utils to share across multiple components
sghoweri Jan 22, 2019
445b03f
refactor: display viewport width when in vertical layout mode
sghoweri Jan 22, 2019
abe3c47
refactor: temporarily disable being able to manually resize the viewp…
sghoweri Jan 22, 2019
bf6da05
refactor: lighten up dark theme
sghoweri Jan 22, 2019
c7f460e
refactor: disable old PL components no longer needed with UI refactor
sghoweri Jan 22, 2019
2b60e5c
refactor: simplify state updates in base component
sghoweri Jan 22, 2019
b5c2682
refactor: fold in remaining redux updates + viewport, viewport resize…
sghoweri Jan 22, 2019
46fd1de
chore: comment out styleguide logic ported over to new modernized com…
sghoweri Jan 22, 2019
419f9a3
chore: remove console log from refactored viewport component
sghoweri Jan 22, 2019
27f8510
Merge branch 'master' into feature/pattern-lab-refactor
sghoweri Jan 22, 2019
6be76ad
refactor: remove old html templates no longer needed / used
sghoweri Jan 22, 2019
24c18f0
test: test loading remaining Pattern Lab assets asynchronously
sghoweri Jan 22, 2019
56d8656
fix: Add padding to right sidebar in docs to create symmetry
remydenton Jan 22, 2019
f9985bb
refactor: bug fixes + updates per PR feedback; adding critical CSS + …
sghoweri Jan 22, 2019
8a1f3ce
Merge branch 'feature/pattern-lab-refactor' of https://github.com/bol…
sghoweri Jan 22, 2019
53083a7
test: test running a 2nd PL build to ensure the navigation data exists
sghoweri Jan 22, 2019
a55d1f7
test: testing Travis timeout update
sghoweri Jan 22, 2019
2b22dad
test: test updating PL shell command to output progress
sghoweri Jan 22, 2019
dfbe5d9
test: revert Travis config updates
sghoweri Jan 22, 2019
4b62d28
test: testing Docker puppeteer updates
sghoweri Jan 23, 2019
883a142
test: re-test docker puppeteer config
sghoweri Jan 23, 2019
432b82d
test: troubleshoot composer issue
sghoweri Jan 23, 2019
b44a70a
test: re-test docker after adding the software-properties-common package
sghoweri Jan 23, 2019
a0bb291
refactor: update Dockerfile to support puppeteer pre-rendering
sghoweri Jan 23, 2019
0de2720
test: re-test Docker build with the unzip php extension added
sghoweri Jan 23, 2019
cb16bbe
chore: nav UI improvements per PR feedback
sghoweri Jan 23, 2019
d4fa91b
chore: remove libraries no longer needed from viewport component
sghoweri Jan 23, 2019
34ec273
chore: remove code no longer needed
sghoweri Jan 23, 2019
7dd8a15
fix: enable prod mode + disable sourcemaps to improve loading perform…
sghoweri Jan 23, 2019
0cac28f
fix: add missing polyfiills needed for IE 11
sghoweri Jan 23, 2019
2d6da70
fix: update layout to fix rendering issue in IE 11
sghoweri Jan 23, 2019
4a5aba3
fix: update pattern lab to fix header / layout issue in IE 11
sghoweri Jan 23, 2019
ff73ac3
refactor: make sure the base component's unsubscribe method exists be…
sghoweri Jan 23, 2019
f041c81
fix: remove unzip pkg from Dockerfile
sghoweri Jan 23, 2019
f88f409
refactor: update PL entry to async load any components that aren't ne…
sghoweri Jan 23, 2019
7a8435e
refactor: fix nav styles + remove JS preloading to work around Safari…
sghoweri Jan 23, 2019
6325574
feat: clean up nav UI to make it easier to see which links have two a…
sghoweri Jan 23, 2019
d5d0e10
fix: update nav links to handle the content / icon variations
sghoweri Jan 23, 2019
eb31464
fix: update nightwatch tests
sghoweri Jan 23, 2019
760621e
refactor: cleanup + removing old code + dependencies no longer needed
sghoweri Jan 24, 2019
0d35606
refactor: UI bug fixes; add component-friendly close icon that isn't …
sghoweri Jan 24, 2019
ed7d43f
refactor: fix panels JS to work better when async loaded
sghoweri Jan 24, 2019
0456c91
fix: disable band transition inline on component overview page in PL
sghoweri Jan 24, 2019
ad7552b
refactor: async load non-mission-critical components to speed up init…
sghoweri Jan 24, 2019
0f2e2b6
fix: disable console log output with UIKit regeneration
sghoweri Jan 24, 2019
bbb9f95
fix: ensure code viewer works consistently when async loading modal-v…
sghoweri Jan 24, 2019
23124fb
chore: reduce verbosity of Webpack output
sghoweri Jan 24, 2019
a0f47b0
Merge branch 'master' into feature/pattern-lab-refactor
sghoweri Jan 24, 2019
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
103 changes: 102 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,107 @@
FROM basaltinc/docker-node-php-base:latest
# FROM basaltinc/docker-node-php-base:latest
# @todo replace with `boltdesignsystem/bolt-docker:latest` once that is configured correctly

FROM php:7.2-cli
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-install -j$(nproc) zip \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd

RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 10.15.0

RUN buildDeps='xz-utils' \
&& ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
amd64) ARCH='x64';; \
ppc64el) ARCH='ppc64le';; \
s390x) ARCH='s390x';; \
arm64) ARCH='arm64';; \
armhf) ARCH='armv7l';; \
i386) ARCH='x86';; \
*) echo "unsupported architecture"; exit 1 ;; \
esac \
&& set -ex \
&& apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
FD3A5288F042B6850C66B31F09FE44734EB7990E \
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
77984A986EBC2AA786BC0F66B01FBB92821C587A \
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
4ED778F539E3634C779C87C6D7062848A1AB005C \
A48C2BEE680E841632CD4E44F07496B3EB3C1762 \
B9E2F5981AA6E0CD28160D9FF13993A75599653C \
; do \
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \
done \
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& apt-get purge -y --auto-remove $buildDeps \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

ENV YARN_VERSION 1.12.3

RUN set -ex \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \
done \
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& mkdir -p /opt \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz

RUN apt-get update \
&& apt-get install -yq software-properties-common gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont git-core \
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget \
&& wget https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64.deb \
&& dpkg -i dumb-init_*.deb \
&& rm -f dumb-init_*.deb \
&& apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& yarn global add puppeteer@1.11.0 \
&& yarn cache clean

# Composer
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer && \
composer self-update --preview
RUN command -v composer

WORKDIR /app

ENTRYPOINT ["dumb-init", "--"]

COPY . .
EXPOSE 3123
RUN composer global require hirak/prestissimo
Expand Down
2 changes: 1 addition & 1 deletion docs-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@
"broken-link-checker": "^0.7.7",
"chalk-cli": "^4.1.0",
"choices.js": "^3.0.4",
"iframe-resizer": "^3.6.1"
"iframe-resizer": "^3.6.4"
}
}
35 changes: 35 additions & 0 deletions docs-site/src/assets/images/bolt-logo--dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading