Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
777121d
add sample sass directory, add sass to package.json
kkellydesign Oct 28, 2019
9cef329
node updated to v8
kkellydesign Oct 28, 2019
e3ed3d7
NPP updates, WIP
kkellydesign Oct 29, 2019
41bd524
KSS updates
kkellydesign Oct 29, 2019
eb3178e
KSS errors cleared
kkellydesign Oct 29, 2019
5226359
Tweaks to get build tools in docker setup
ipmb Oct 29, 2019
7375365
styleguide edits
kkellydesign Oct 30, 2019
bb096f5
less compiling fixes
kkellydesign Oct 30, 2019
083ec52
styleguide updates
kkellydesign Nov 1, 2019
c383fe7
footer is in the styleguide
kkellydesign Nov 1, 2019
a8d81d8
nav revisions
kkellydesign Nov 2, 2019
5c6f46a
navigation drawer added to styleguide
kkellydesign Nov 4, 2019
8cd6acf
nav WIP
kkellydesign Nov 4, 2019
b085433
nav WIP
kkellydesign Nov 5, 2019
45fbed1
colors added to styleguide
kkellydesign Nov 6, 2019
d7bd8da
typography and card global styles
kkellydesign Nov 6, 2019
bcf615a
protocol added
kkellydesign Nov 13, 2019
4165dc0
further integration with Protocol
kkellydesign Nov 14, 2019
1dbe1ad
grid updated, footer added
kkellydesign Nov 15, 2019
a8f442b
form fields and s3 deploy
kkellydesign Nov 18, 2019
3400967
checkboxes, ref #4013. auto-prefixer added
kkellydesign Nov 19, 2019
3467515
checkboxes, radios, ranges and toggles
kkellydesign Nov 19, 2019
7b3c7dd
functional colors added to styleguide
kkellydesign Nov 19, 2019
600a24f
sidebar nav added
kkellydesign Nov 20, 2019
8058668
footer code is in the base template (needs images moved to app)
kkellydesign Nov 25, 2019
e53c68e
nav WIP in styleguide
kkellydesign Nov 25, 2019
5d3d60f
nav design customizations
kkellydesign Nov 26, 2019
1ce9efc
nav is in base templates (WIP)
kkellydesign Nov 26, 2019
e1a8a5f
nav close button fixes
kkellydesign Nov 26, 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
2,136 changes: 2,136 additions & 0 deletions .babel.json

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"extends": "stylelint-config-recommended-scss",
"plugins": [
"stylelint-order"
],
"defaultSeverity": "warning",
"rules": {
"indentation": 2,
"no-descending-specificity": null,
"no-empty-source": null,
"font-family-no-duplicate-names": null,
"font-family-no-missing-generic-family-keyword": null,
"order/order": [
"dollar-variables",
"custom-properties",
"declarations"
],
"order/properties-order": [
"appearance",
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"display",
"box-sizing",
"float",
"order",
"flex",
"flex-direction",
"flex-flow",
"justify-content",
"align-content",
"align-items",
"align-self",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"box-shadow",
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-color",
"border-image",
"border-radius",
"border-width",
"background",
"background-image",
"background-color",
"background-position",
"background-repeat",
"background-size",
"background-attachment",
"mask",
"mask-image",
"mask-position",
"mask-repeat",
"mask-size",
"font",
"font-family",
"font-size",
"font-style",
"font-weight",
"line-height",
"text-align",
"text-decoration",
"text-overflow",
"text-transform",
"white-space",
"vertical-align",
"color",
"overflow",
"clip",
"content"
]
}
}
26 changes: 18 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
################################
# Node builder
#
FROM node:12 as node-builder
WORKDIR /app
COPY ./package.json ./package-lock.json ./
RUN npm i
COPY ./kitsune/sumo/static/sumo ./kitsune/sumo/static/sumo/
COPY ./kss-template ./kss-template/
COPY ./kss-config.json .
RUN npm run build

################################
# Python dependencies builder
#
Expand Down Expand Up @@ -38,12 +50,10 @@ ENV GIT_SHA=${GIT_SHA}
FROM base AS base-dev

RUN apt-get update && apt-get install apt-transport-https && \
echo "deb https://deb.nodesource.com/node_6.x stretch main" >> /etc/apt/sources.list && \
echo "deb https://deb.nodesource.com/node_8.x stretch main" >> /etc/apt/sources.list && \
curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" >> /etc/apt/sources.list && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
apt-get update && \
apt-get install -y --no-install-recommends nodejs yarn optipng && \
apt-get update -qq && \
apt-get install -y --no-install-recommends nodejs optipng && \
rm -rf /var/lib/apt/lists/*


Expand All @@ -52,9 +62,9 @@ RUN apt-get update && apt-get install apt-transport-https && \
#
FROM base-dev AS staticfiles

COPY package.json bower.json yarn.lock /app/
COPY package.json bower.json /app/

RUN yarn install --frozen-lockfile && yarn cache clean
RUN npm i
RUN ./node_modules/.bin/bower install --allow-root

COPY . .
Expand Down Expand Up @@ -114,7 +124,7 @@ RUN apt-get update && \
RUN groupadd --gid 1000 kitsune && useradd -g kitsune --uid 1000 --shell /usr/sbin/nologin kitsune

COPY --from=base --chown=kitsune:kitsune /venv /venv
COPY --from=staticfiles --chown=kitsune:kitsune /app/static /app/static
COPY --from=node-builder --chown=kitsune:kitsune /app/static /app/static
COPY --from=staticfiles --chown=kitsune:kitsune /app/jsi18n /app/jsi18n
COPY --from=staticfiles --chown=kitsune:kitsune /app/bower_components /app/bower_components

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ help:
${MAKE} build-full

build: .docker-build-pull
${DC} build base-dev
${DC} build base-dev node
touch .docker-build

build-full: .docker-build-pull
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ services:
ports:
- "8000:8000"

browsersync:
image: itsre/sumo-kitsune:node-${GIT_COMMIT_SHORT:-latest}
command: npm start
volumes:
- ./:/app:delegated
ports:
- "3000:3000"
- "3001:3001"

test:
image: itsre/sumo-kitsune:base-dev-${GIT_COMMIT_SHORT:-latest}
command: ./bin/run-unit-tests.sh
Expand Down Expand Up @@ -82,6 +91,14 @@ services:
- GIT_SHA
image: itsre/sumo-kitsune:staticfiles-${GIT_COMMIT_SHORT:-latest}

node:
build:
context: .
target: node-builder
args:
- GIT_SHA
image: itsre/sumo-kitsune:node-${GIT_COMMIT_SHORT:-latest}

locales:
build:
context: .
Expand Down
Loading