-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from B77Mills/4.0
Migrate to use base-cms 4.X
- Loading branch information
Showing
14 changed files
with
5,076 additions
and
5,405 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Generated Marko Files | ||
*.marko.js | ||
# Build assets | ||
**/dist/ | ||
dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,2 @@ | ||
module.exports = { | ||
extends: 'airbnb-base', | ||
plugins: [ | ||
'import' | ||
], | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.js', '.marko'], | ||
}, | ||
}, | ||
}, | ||
}; | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
module.exports = require('@parameter1/base-cms-eslint/eslintrc.server'); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,3 +104,4 @@ dist | |
.tern-port | ||
|
||
*.marko.js | ||
.bash_history |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
FROM node:10.15 as build | ||
WORKDIR /root | ||
ENV NODE_ENV production | ||
FROM node:14.21 as build | ||
WORKDIR /repo | ||
ARG TENANT | ||
|
||
ADD package.json yarn.lock /root/ | ||
ADD packages /root/packages | ||
ADD tenants/$TENANT /root/tenants/$TENANT | ||
RUN yarn --production --pure-lockfile | ||
ADD package.json yarn.lock lerna.json /repo/ | ||
ADD packages /repo/packages | ||
ADD tenants/$TENANT /repo/tenants/$TENANT | ||
RUN --mount=type=cache,target=/repo/.yarn YARN_CACHE_FOLDER=/repo/.yarn yarn install --frozen-lockfile | ||
ENV NODE_ENV production | ||
RUN yarn build | ||
|
||
WORKDIR /root/tenants/$TENANT | ||
WORKDIR /repo/tenants/$TENANT | ||
|
||
FROM node:10.15-alpine | ||
FROM node:14.21-alpine | ||
ENV NODE_ENV production | ||
ENV PORT 80 | ||
ARG TENANT | ||
COPY --from=build /root /root | ||
WORKDIR /root/tenants/$TENANT | ||
COPY --from=build /repo /repo | ||
WORKDIR /repo/tenants/$TENANT | ||
ENTRYPOINT [ "node", "index.js" ] |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = config => Boolean(config && config.uri && config.enabled !== false); | ||
module.exports = (config) => Boolean(config && config.uri && config.enabled !== false); |
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
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
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
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
Oops, something went wrong.