Skip to content

Commit b2252e0

Browse files
author
Sanjay Khona
committed
chore: Generated tsrouter-client
0 parents  commit b2252e0

File tree

95 files changed

+25207
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+25207
-0
lines changed

.browserslistrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
> 0.5%
2+
last 2 versions
3+
Firefox ESR
4+
not IE 11
5+
not op_mini all
6+
not dead
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"test": {
3+
"parameters": {
4+
"agent_count": "1"
5+
},
6+
"template": "js-frontend-test"
7+
}
8+
}

.ccorerc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const path = require('node:path');
2+
3+
const projectCommands = []
4+
.concat(
5+
['cypress.js', 'test-ci.js'].map((cmd) =>
6+
path.join(process.cwd(), 'node_modules', '@oreillymedia/fef-server', 'src/commands', cmd),
7+
),
8+
)
9+
.concat(
10+
['merge-coverage.cjs'].map((cmd) =>
11+
path.join(process.cwd(), 'node_modules', '@oreillymedia/chassis-core', 'src/commands', cmd),
12+
),
13+
);
14+
15+
/**
16+
* This configuration file controls many aspects of how the tooling provided by
17+
* the fef-server library works. It is expected that projects consuming this
18+
* library will modify this file.
19+
*/
20+
module.exports = {
21+
// This value should match whatever `env.` file you use for your production
22+
// environment.
23+
defaultMode: 'prod-gke',
24+
commands: {},
25+
projectCommands,
26+
};

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
2+
{
3+
"name": "Tsrouter Client",
4+
"dockerComposeFile": [
5+
"docker-compose.yml",
6+
"docker-compose.local.yml"
7+
],
8+
"mounts": [
9+
// Bind the chassis configuration.
10+
"type=bind,source=${localEnv:HOME}/.chassis,target=/home/developer/.chassis",
11+
// Bind ssh keys
12+
"type=bind,source=${localEnv:HOME}/.ssh,target=/home/developer/.ssh",
13+
// Bind gcloud config.
14+
"type=bind,source=${localEnv:HOME}/.config/devcontainer/gcloud,target=/home/developer/.config/gcloud"
15+
],
16+
"service": "workspace",
17+
"workspaceFolder": "/orm/service",
18+
// Run when a new Dev Container instance is created.
19+
"postCreateCommand": "/orm/devcontainer/chassis/scripts/post-create.sh ${containerWorkspaceFolder}",
20+
// Run whenever the Dev Container is initially started or restarted from a
21+
// stopped state.
22+
"postStartCommand": "/orm/devcontainer/chassis/scripts/post-start.sh",
23+
"customizations": {
24+
"vscode": {
25+
"extensions": [
26+
"dbaeumer.vscode-eslint",
27+
"EditorConfig.EditorConfig",
28+
"esbenp.prettier-vscode",
29+
"mikestead.dotenv"
30+
],
31+
"settings": {
32+
"eslint.workingDirectories": [
33+
{
34+
"mode": "auto"
35+
}
36+
],
37+
"terminal.integrated.defaultProfile.linux": "zsh",
38+
"window.title": "${activeEditorShort}${separator}Tsrouter Client"
39+
}
40+
}
41+
}
42+
}

.devcontainer/docker-compose.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This file is automatically created by the `regen` command.
2+
# To make changes please edit the `SERVICE_FEATURES` setting.
3+
# See https://devdocs.common-build.gcp.oreilly.com/chassis/features.html#service-features-setting
4+
name: tsrouter-client_devcontainer
5+
networks:
6+
default:
7+
external: true
8+
name: platform
9+
services:
10+
workspace:
11+
command: /bin/sh -c "while sleep 1000; do :; done"
12+
environment:
13+
DD_TRACE_ENABLED: 'False'
14+
DJANGO_SETTINGS_MODULE: tsrouter_client.settings
15+
IPYTHONDIR: /orm/service/.ipython/
16+
ORM_SERVICE_NAME: tsrouter-client
17+
PYTHONPATH: /orm/:/orm/service/:/orm/chassis/
18+
SSH_AUTH_SOCK: /run/host-services/ssh-auth.sock
19+
image: us-central1-docker.pkg.dev/common-build/orm-hub/orm-devcontainer-chassis:latest
20+
labels:
21+
- traefik.docker.network=platform
22+
- traefik.enable=true
23+
- traefik.http.routers.tsrouter-client--web--learning-oreilly.rule=Host(`learning.oreilly.local`)
24+
&& PathPrefix(`/science`)
25+
- traefik.http.routers.tsrouter-client--web--learning-oreilly.tls=True
26+
networks:
27+
default: {}
28+
ports:
29+
- 9753:9999
30+
volumes:
31+
- source: ..
32+
target: /orm/service
33+
type: bind
34+
- source: /run/host-services/ssh-auth.sock
35+
target: /run/host-services/ssh-auth.sock
36+
type: bind
37+
- source: node-modules
38+
target: /orm/service/node_modules
39+
type: volume
40+
volumes:
41+
node-modules: {}

.devcontainer/initialize.sh

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/usr/bin/env bash
2+
3+
red=$(tput setaf 1)
4+
yellow=$(tput setaf 3)
5+
normal=$(tput sgr0)
6+
7+
# Create docker-compose.local.yml if it doesn't exist
8+
9+
COMPOSE_CONTENTS=$(cat <<-END
10+
# This file allows you to customize the Dev Container environment when running
11+
# it on your machine. It should not be committed to the git repository.
12+
services: {}
13+
END
14+
)
15+
16+
if [[ ! -f './.devcontainer/docker-compose.local.yml' ]]
17+
then
18+
echo "${yellow}Creating .devcontainer/docker-compose.local.yml...${normal}"
19+
20+
echo "${COMPOSE_CONTENTS}" > .devcontainer/docker-compose.local.yml
21+
fi
22+
23+
# Ensure directories mounted by the `devcontainer.json` exist.
24+
25+
if [[ ! -d "$HOME/.chassis" ]]
26+
then
27+
echo "${yellow}Creating chassis config directory...${normal}"
28+
mkdir -p "$HOME/.chassis"
29+
fi
30+
31+
if [[ ! -d "$HOME/.ssh" ]]
32+
then
33+
echo "${yellow}Creating ssh directory...${normal}"
34+
mkdir -p "$HOME/.ssh"
35+
fi
36+
37+
if [[ ! -d "$HOME/.config/devcontainer/gcloud" ]]
38+
then
39+
echo "${yellow}Creating devcontainer gcloud config directory...${normal}"
40+
mkdir -p "$HOME/.config/devcontainer/gcloud"
41+
fi
42+
43+
# Docker network create support
44+
45+
function create_docker_network() {
46+
if [[ ! "$1" =~ $2 ]]
47+
then
48+
echo "${yellow}Creating "$2" docker network...${normal}"
49+
docker network create "$2" 1>/dev/null 2>/dev/null
50+
fi
51+
}
52+
53+
if ! network_command_output=$(docker network list --format '{{.Name}}' 2>/dev/null)
54+
then
55+
echo "${red}ERROR: Could not get list of docker networks.${normal}"
56+
else
57+
existing_networks="${network_command_output[*]}"
58+
create_docker_network "$existing_networks" "platform"
59+
create_docker_network "$existing_networks" "local"
60+
fi

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git
2+
node_modules/

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.py]
16+
indent_size=4

.github/workflows/actions.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: LaunchDarkly code references
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'renovate/**'
6+
- 'maintenance-**'
7+
- 'orm-vulnerability-patcher/**'
8+
# cancel any in-flight workflow if a new one is triggered
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
launchDarklyCodeReferences:
14+
name: LaunchDarkly code references
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 10 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-references#searching-for-unused-flags-extinctions
20+
- name: LaunchDarkly code references
21+
if: "!contains(github.event.issue.labels.*.name, 'maintenance')"
22+
uses: launchdarkly/[email protected]
23+
with:
24+
accessToken: ${{ secrets.LAUNCH_DARKLY_CODE_REFS_SECRET }}

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
*~
2+
__pycache__
3+
*.pyc
4+
*.secret.*
5+
6+
# Add a docker-compose.override.yml to set local secrets in the containers
7+
docker-compose.override.yml
8+
9+
# IDE related files
10+
.idea
11+
.coverage
12+
cov.xml
13+
.cov.xml
14+
.environment
15+
.userid
16+
*.sublime-*
17+
18+
# Test coverage files
19+
coverage
20+
test-report.xml
21+
junit.xml
22+
cypress/videos/
23+
cypress/screenshots/
24+
.nyc_output/
25+
26+
# Temporary storage
27+
.DS_Store
28+
temp/
29+
*.tgz
30+
31+
# generated directories for deployment pipeline
32+
istio-system/
33+
kube/
34+
35+
36+
# Frontend files
37+
dist/
38+
node_modules/
39+
env.debug
40+
41+
# Dev Container Related Config
42+
.vscode/*
43+
!/.vscode/launch.json
44+
!/.vscode/tasks.json
45+
devsecrets.json
46+
docker-compose.local.yml
47+
48+
# Terraform metadata directory
49+
**/.terraform/*
50+
51+
# All terraform plan files
52+
**/tf-plan-file
53+
54+
# .tfstate files
55+
*.tfstate
56+
*.tfstate.*
57+
58+
# .tfvars files - ignored b/c we template them out
59+
*.tfvars
60+
*.tfvars.json

0 commit comments

Comments
 (0)