Currently in WET, there is a lot of duplication of code, particularly around plugin initialization and lifetime. Additionally, plugins are sealed in an anonymous scope to prevent conflicts but this approach makes it very difficult for implementers to override or customize plugins. To solve this problem, plugins need to switch to a more open architecture and duplicated code need to be regrouped and shared among plugins. This new structure also need a full unit test suite (see the Unit Testing section for more details). To acheive this goal, several options are available: Prototypal Inheritance (Native), Base2 Library, ES6 Classes w/ Google Traceur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export WET_VERSION=$1 | |
mkdir $WET_VERSION && cd $WET_VERSION | |
mkdir wet-boew && curl -L https://github.com/wet-boew/wet-boew-cdn/archive/$WET_VERSION.tar.gz | tar -zx --strip-components 1 --directory=wet-boew | |
mkdir GCWeb && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-gcweb.tar.gz | tar -zx --strip-components 1 --directory=GCWeb | |
mkdir theme-base && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-base.tar.gz | tar -zx --strip-components 1 --directory=theme-base | |
mkdir theme-gc-intranet && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-gc-intranet.tar.gz | tar -zx --strip-components 1 --directory=theme-gc-intranet | |
mkdir theme-gcwu-fegc && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-gcwu-fegc.tar.gz | tar -zx --strip-components 1 --directory=theme-gcwu-fegc | |
mkdir theme-ogpl && curl -L https://github.com/wet-boew/themes-cdn/archive/$WET_VERSION-theme-ogpl.tar.gz | tar -zx --strip-components 1 --directory=theme-o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/0.10/Dockerfile b/0.10/Dockerfile | |
index ff9b001..ac3f6f3 100644 | |
--- a/0.10/Dockerfile | |
+++ b/0.10/Dockerfile | |
@@ -15,6 +15,7 @@ RUN set -ex \ | |
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ | |
done | |
+ENV NPM_CONFIG_LOGLEVEL info | |
ENV NODE_VERSION 0.10.44 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -E curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
export http_proxy=[PROXY] | |
export https_proxy=$http_proxy | |
export HTTP_PROXY=$http_proxy | |
export HTTPS_PROXY=$http_proxy | |
git clone https://github.com/LaurentGoderre/docker-demo.git | |
docker run hello-world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/71-607-x2017001-eng.htm b/71-607-x2017001-eng.htm | |
index e7fbe82..6f9799a 100644 | |
--- a/71-607-x2017001-eng.htm | |
+++ b/71-607-x2017001-eng.htm | |
@@ -33,7 +33,7 @@ | |
<!--#include virtual="/wet-boew4b/ssi/css.htm"--> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runtime image | |
# Following https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md | |
FROM node:7.7-alpine | |
# Add tini | |
RUN apk add --no-cache tini | |
ENTRYPOINT ["/sbin/tini", "--"] | |
WORKDIR /usr/src/app/ |