-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
477 additions
and
362 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node_modules | ||
dist | ||
vendor | ||
/.idea | ||
/.vscode | ||
/example-integrations | ||
/www | ||
/apps/bolt-site/cache | ||
/apps/pattern-lab/cache |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM boltdesignsystem/bolt-docker:latest | ||
WORKDIR /app | ||
COPY . . | ||
EXPOSE 3123 | ||
RUN yarn setup | ||
RUN yarn lint | ||
RUN yarn build | ||
RUN yarn test | ||
|
||
CMD yarn serve |
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,5 @@ | ||
{ | ||
"COMMENT": "@todo ensure these rewrites work in new setup", | ||
"version": 1, | ||
"static": { | ||
"trailingSlash": true, | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM boltdesignsystem/bolt:${DOCKER_TAG:-latest} | ||
RUN echo "Using DOCKER_TAG: ${DOCKER_TAG:-latest}" | ||
# tag being built from will be env var `$DOCKER_TAG` if set, else it will be `latest` | ||
EXPOSE 3123 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": 1, | ||
"name": "boltdesignsystem", | ||
"type": "docker", | ||
"scale": { | ||
"sfo1": { | ||
"min": 1, | ||
"max": 1 | ||
} | ||
}, | ||
"features": { | ||
"cloud": "v1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
# Start in this directory even if ran elsewhere | ||
cd "$(dirname "$0")" | ||
# Up to root of repo | ||
cd .. | ||
# Show all commands ran | ||
set -x | ||
# Exit this script if anything else exits | ||
set -e | ||
|
||
# Error messages are redirected to stderr | ||
function handle_error { | ||
echo "$(basename $0): ERROR! An error was encountered executing line $1." 1>&2; | ||
# cleanup | ||
echo 'Exiting with error.' 1>&2; | ||
exit 1 | ||
} | ||
|
||
function handle_exit { | ||
# cleanup | ||
echo 'Exiting without error.' 1>&2; | ||
exit | ||
} | ||
|
||
# Exit the script with a helpful error message when any error is encountered | ||
trap 'set +x; handle_error $LINENO $BASH_COMMAND' ERR | ||
|
||
# --oom-kill-disable -memory=2000m | ||
time docker build --tag boltdesignsystem/bolt:latest . |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# Start in this directory even if ran elsewhere | ||
cd "$(dirname "$0")" | ||
# Up to root of repo | ||
cd .. | ||
|
||
# Show all commands ran | ||
set -x | ||
# Exit this script if anything else exits | ||
set -e | ||
|
||
time docker run -p 3123:3123 --tty --rm boltdesignsystem/bolt:latest |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "@bolt/scripts", | ||
"version": "2.2.0", | ||
"description": "Deps for CI scripts", | ||
"main": "deploy.js", | ||
"scripts": { | ||
"deploy": "./deploy.js", | ||
"nightwatch": "nightwatch --config ../nightwatch.js --env chrome,ie11" | ||
}, | ||
"dependencies": { | ||
"nightwatch": "0.9.20", | ||
"node-fetch": "^2.3.0", | ||
"git-semver-tags": "^2.0.2", | ||
"now": "latest" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const express = require('express'); | ||
const { join } = require('path'); | ||
const { handleRequest } = require('@bolt/build-tools/api'); | ||
const app = express(); | ||
|
||
const port = process.env.PORT || 3123; | ||
|
||
app.use('/api', handleRequest); | ||
app.use(express.static(join(__dirname, './www'))); | ||
|
||
app.listen(port, () => { | ||
console.log(`Express listening on http://localhost:${port}`); | ||
}); |
Oops, something went wrong.