@dword-design/base 9.4.2 → 9.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,22 @@
|
|
|
1
|
+
import endent from "@dword-design/functions/dist/endent.js";
|
|
1
2
|
import * as personalData from '@dword-design/personal-data';
|
|
3
|
+
import P from 'path';
|
|
2
4
|
export default {
|
|
3
5
|
image: {
|
|
4
6
|
file: '.gitpod.Dockerfile'
|
|
5
7
|
},
|
|
6
8
|
tasks: [{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
// puppeteer by default installs Chromium in the home folder, but since GitPod does not preserve the home folder
|
|
10
|
+
// after restarts, we need to store it in the workspace folder
|
|
11
|
+
// https://www.gitpod.io/docs/configure/workspaces/workspace-lifecycle#workspace-stopped
|
|
12
|
+
before: endent`
|
|
13
|
+
echo "export PUPPETEER_CACHE_DIR=${P.resolve('node_modules', '.cache', 'puppeteer')}" >> /home/gitpod/.bashrc
|
|
14
|
+
echo "eval $(gitpod-env-per-project)" >> /home/gitpod/.bashrc && source /home/gitpod/.bashrc
|
|
15
|
+
`,
|
|
16
|
+
init: endent`
|
|
17
|
+
git config --global user.name "${personalData.name}"
|
|
18
|
+
git lfs pull && yarn --frozen-lockfile
|
|
19
|
+
`
|
|
9
20
|
}],
|
|
10
21
|
vscode: {
|
|
11
22
|
extensions: ['https://sebastianlandwehr.com/vscode-extensions/karlito40.fix-irregular-whitespace-0.1.1.vsix', 'https://sebastianlandwehr.com/vscode-extensions/adrianwilczynski.toggle-hidden-1.0.2.vsix', 'octref.vetur@0.33.1']
|