Skip to content

Commit fb1bbb4

Browse files
author
Francisco González
authored
Consume icons from @enterprisedb/icons (EnterpriseDB#1539)
1 parent bd3388f commit fb1bbb4

File tree

252 files changed

+54349
-16803
lines changed

Some content is hidden

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

252 files changed

+54349
-16803
lines changed

.devcontainer/Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/shar
2424
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
2525
# && apt-get -y install --no-install-recommends <your-package-list-here>
2626

27-
# latest gatsby, yarn
27+
# latest gatsby
2828
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh \
29-
&& npm install -g gatsby-cli \
30-
&& npm install -g yarn" 2>&1
29+
&& npm install -g gatsby-cli" 2>&1
3130

3231
# Enable docker-in-docker (see: https://github.com/microsoft/vscode-dev-containers/blob/master/script-library/docs/docker-in-docker.md)
3332
COPY library-scripts/*.sh /tmp/library-scripts/
34-
RUN wget -O- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
35-
&& apt-get update \
33+
RUN apt-get update \
3634
&& /bin/bash /tmp/library-scripts/docker-in-docker-debian.sh
3735
ENTRYPOINT ["/usr/local/share/docker-init.sh"]
3836
VOLUME [ "/var/lib/docker" ]

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"appPort": [8000],
2222

2323
// Use 'postCreateCommand' to run commands after the container is created.
24-
"postCreateCommand": "yarn install",
24+
"postCreateCommand": "npm install",
2525

2626
// docker in docker (https://github.com/microsoft/vscode-dev-containers/blob/master/script-library/docs/docker-in-docker.md)
2727
"runArgs": ["--init", "--privileged"],

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
*
2+
!icons-pkg/
3+
!scripts/
4+
!gatsby*.js
5+
!package*.json

.envrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
layout node
2+
dotenv_if_exists .env.development

.github/workflows/deploy-develop.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ jobs:
2121
- uses: actions/setup-node@v2
2222
with:
2323
node-version: "14.x"
24-
- name: Install yarn
25-
run: sudo npm -g install yarn
26-
- name: Yarn install
27-
run: yarn install --immutable
24+
- name: npm install
25+
run: npm install
2826
env:
2927
NODE_ENV: ${{ secrets.NODE_ENV }}
3028

@@ -54,9 +52,9 @@ jobs:
5452
${{ runner.os }}-gatsby-build-develop-
5553
5654
- name: Fix mtimes
57-
run: yarn fix-mtimes --force
55+
run: npm run fix-mtimes --force
5856
- name: Gatsby build
59-
run: yarn build
57+
run: npm run build
6058
env:
6159
APP_ENV: staging
6260
NODE_ENV: ${{ secrets.NODE_ENV }}
@@ -68,7 +66,7 @@ jobs:
6866

6967
- name: Netlify deploy
7068
run: |
71-
sudo yarn global add netlify-cli
69+
sudo npm install -g netlify-cli
7270
netlify deploy --dir=public --prod
7371
env:
7472
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

.github/workflows/deploy-draft.yml

+18-19
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
types: [labeled, opened, synchronize]
55

6-
concurrency:
6+
concurrency:
77
group: ${{ github.head_ref }}
88
cancel-in-progress: true
99

@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: compose a name for the build environment
2121
run: echo "BUILD_ENV_NAME=pr-${{ github.event.number }}-${{ env.GITHUB_HEAD_REF_SLUG }}" >> $GITHUB_ENV
22-
22+
2323
- uses: actions/checkout@v2
2424
with:
2525
ref: ${{ github.event.pull_request.head.sha }}
@@ -33,21 +33,20 @@ jobs:
3333
with:
3434
node-version: '14.x'
3535

36-
# ref: https://github.com/actions/cache/blob/main/examples.md#node---yarn
37-
- name: Get yarn cache directory
38-
id: yarn-cache-dir-path
39-
run: echo "::set-output name=dir::$(yarn cache dir)"
40-
41-
- name: Checking Yarn cache
42-
uses: actions/cache@v2
36+
- name: Get npm cache directory
37+
id: npm-cache-dir
38+
run: |
39+
echo "::set-output name=dir::$(npm config get cache)"
40+
- uses: actions/cache@v2
41+
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
4342
with:
44-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
45-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43+
path: ${{ steps.npm-cache-dir.outputs.dir }}
44+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4645
restore-keys: |
47-
${{ runner.os }}-yarn-
48-
49-
- name: Yarn install
50-
run: npx yarn install --immutable
46+
${{ runner.os }}-node-
47+
48+
- name: Install dependencies
49+
run: npm install --immutable
5150
env:
5251
NODE_ENV: ${{ secrets.NODE_ENV }}
5352

@@ -61,10 +60,10 @@ jobs:
6160
key: ${{ runner.os }}-gatsby-build-draft-${{ github.head_ref }}
6261

6362
- name: Fix mtimes
64-
run: yarn fix-mtimes --force
65-
63+
run: npm run fix-mtimes --force
64+
6665
- name: Gatsby build
67-
run: yarn build
66+
run: npm run build
6867
env:
6968
APP_ENV: staging
7069
NODE_ENV: ${{ secrets.NODE_ENV }}
@@ -85,5 +84,5 @@ jobs:
8584
github-deployment-environment: ${{ env.BUILD_ENV_NAME }}
8685
env:
8786
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
88-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEVELOP_SITE_ID }}
87+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEVELOP_SITE_ID }}
8988

.github/workflows/deploy-main.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ jobs:
1515
ref: main
1616
fetch-depth: 0 # fetch whole repo so git-restore-mtime can work
1717
lfs: true
18-
18+
1919
- name: Adjust file watchers limit
2020
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
2121

2222
- uses: actions/setup-node@v2
2323
with:
2424
node-version: "14.x"
25-
- name: Install yarn
26-
run: sudo npm -g install yarn
27-
- name: Yarn install
28-
run: yarn install --immutable
25+
- name: npm install
26+
run: npm install
2927
env:
3028
NODE_ENV: ${{ secrets.NODE_ENV }}
3129

@@ -43,7 +41,6 @@ jobs:
4341
- name: Build all pdfs
4442
run: npm run build-all-pdfs-ci
4543

46-
4744
- name: Checking Gatsby cache
4845
id: gatsby-cache-build
4946
uses: actions/cache@v2
@@ -56,9 +53,9 @@ jobs:
5653
${{ runner.os }}-gatsby-build-main-
5754
5855
- name: Fix mtimes
59-
run: yarn fix-mtimes --force
56+
run: npm run fix-mtimes --force
6057
- name: Gatsby build
61-
run: yarn build
58+
run: npm run build
6259
env:
6360
APP_ENV: production
6461
NODE_ENV: ${{ secrets.NODE_ENV }}
@@ -71,7 +68,7 @@ jobs:
7168

7269
- name: Netlify deploy
7370
run: |
74-
sudo yarn global add netlify-cli
71+
sudo npm install -g netlify-cli
7572
netlify deploy --dir=public --prod
7673
env:
7774
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

.gitignore

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# yarn is preferred for us (and heroku)
2-
package-lock.json
3-
41
# Logs
52
logs
63
*.log
@@ -45,6 +42,9 @@ typings/
4542
# Optional npm cache directory
4643
.npm
4744

45+
# npm config file
46+
.npmrc
47+
4848
# Optional eslint cache
4949
.eslintcache
5050

@@ -81,4 +81,7 @@ product_docs/content/
8181
product_docs/content_build/
8282
static/nginx_redirects.generated
8383
temp_kubernetes/
84-
temp_bdr/
84+
temp_bdr/
85+
86+
# Track base direnv file
87+
!.envrc

.husky/_/husky.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22
if [ -z "$husky_skip_init" ]; then
33
debug () {
4-
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
4+
if [ "$HUSKY_DEBUG" = "1" ]; then
5+
echo "husky (debug) - $1"
6+
fi
57
}
68

79
readonly hook_name="$(basename "$0")"

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn pretty-quick --staged --pattern 'src/**/*.js' --pattern 'gatsby-*.js'
4+
npx pretty-quick --staged --pattern 'src/**/*.js' --pattern 'gatsby-*.js'

0 commit comments

Comments
 (0)