@dword-design/base 9.4.3 → 9.4.4
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.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`index works 1`] = `
|
|
4
|
+
Object {
|
|
5
|
+
"image": Object {
|
|
6
|
+
"file": ".gitpod.Dockerfile",
|
|
7
|
+
},
|
|
8
|
+
"tasks": Array [
|
|
9
|
+
Object {
|
|
10
|
+
"before": "echo \\"export PUPPETEER_CACHE_DIR=/workspace/foo/node_modules/.cache/puppeteer\\" >> /home/gitpod/.bashrc
|
|
11
|
+
echo \\"eval $(gitpod-env-per-project)\\" >> /home/gitpod/.bashrc && source /home/gitpod/.bashrc",
|
|
12
|
+
"init": "git config --global user.name \\"Sebastian Landwehr\\"
|
|
13
|
+
git lfs pull && yarn --frozen-lockfile",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
"vscode": Object {
|
|
17
|
+
"extensions": Array [
|
|
18
|
+
"https://sebastianlandwehr.com/vscode-extensions/karlito40.fix-irregular-whitespace-0.1.1.vsix",
|
|
19
|
+
"https://sebastianlandwehr.com/vscode-extensions/adrianwilczynski.toggle-hidden-1.0.2.vsix",
|
|
20
|
+
"octref.vetur@0.33.1",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import endent from "@dword-design/functions/dist/endent.js";
|
|
2
|
+
import * as personalData from '@dword-design/personal-data';
|
|
3
|
+
export default function () {
|
|
4
|
+
return {
|
|
5
|
+
image: {
|
|
6
|
+
file: '.gitpod.Dockerfile'
|
|
7
|
+
},
|
|
8
|
+
tasks: [{
|
|
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=/workspace/${this.packageConfig.name}/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
|
+
`
|
|
20
|
+
}],
|
|
21
|
+
vscode: {
|
|
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']
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -14,9 +14,8 @@ import deprecatedDependenciesIssueTemplate from "./github-deprecated-dependencie
|
|
|
14
14
|
import githubFunding from "./github-funding.js";
|
|
15
15
|
import githubLabelsConfig from "./github-labels.js";
|
|
16
16
|
import githubSyncLabelsConfig from "./github-sync-labels.js";
|
|
17
|
-
import gitpodConfig from "./gitpod.js";
|
|
18
17
|
export default function () {
|
|
19
|
-
var _babelConfig, _commitlintConfig, _commitizenConfig, _this$getGithubCodesp, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon,
|
|
18
|
+
var _babelConfig, _commitlintConfig, _commitizenConfig, _this$getGithubCodesp, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _this$getGitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _ref2, _packageConfig;
|
|
20
19
|
const packageConfig = this.getPackageConfig();
|
|
21
20
|
return {
|
|
22
21
|
'.babelrc.json': `${(_babelConfig = babelConfig, jsonToString({
|
|
@@ -55,7 +54,7 @@ export default function () {
|
|
|
55
54
|
}), yaml.stringify(_sortKeys5)),
|
|
56
55
|
'.gitignore': (_ref = (_this$getGitignoreCon = this.getGitignoreConfig(), map(entry => `${entry}\n`)(_this$getGitignoreCon)), join('')(_ref)),
|
|
57
56
|
'.gitpod.Dockerfile': this.getGitpodDockerfile(),
|
|
58
|
-
'.gitpod.yml': (
|
|
57
|
+
'.gitpod.yml': (_this$getGitpodConfig = this.getGitpodConfig(), yaml.stringify(_this$getGitpodConfig)),
|
|
59
58
|
'.releaserc.json': `${(_this$getReleaseConfi = this.getReleaseConfig(), jsonToString({
|
|
60
59
|
indent: 2
|
|
61
60
|
})(_this$getReleaseConfi))}\n`,
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import getGithubCodespacesConfig from "./get-generated-files/get-github-codespac
|
|
|
26
26
|
import getGithubSyncMetadataConfig from "./get-generated-files/get-github-sync-metadata/index.js";
|
|
27
27
|
import getGithubWorkflowConfig from "./get-generated-files/get-github-workflow/index.js";
|
|
28
28
|
import getGitignoreConfig from "./get-generated-files/get-gitignore/index.js";
|
|
29
|
+
import getGitpodConfig from "./get-generated-files/get-gitpod/index.js";
|
|
29
30
|
import getGitpodDockerfile from "./get-generated-files/get-gitpod-dockerfile.js";
|
|
30
31
|
import getLicenseString from "./get-generated-files/get-license-string.js";
|
|
31
32
|
import getPackageConfig from "./get-generated-files/get-package-config/index.js";
|
|
@@ -122,6 +123,7 @@ Object.assign(Base.prototype, {
|
|
|
122
123
|
getGithubSyncMetadataConfig,
|
|
123
124
|
getGithubWorkflowConfig,
|
|
124
125
|
getGitignoreConfig,
|
|
126
|
+
getGitpodConfig,
|
|
125
127
|
getGitpodDockerfile,
|
|
126
128
|
getLicenseString,
|
|
127
129
|
getPackageConfig,
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import endent from "@dword-design/functions/dist/endent.js";
|
|
2
|
-
import * as personalData from '@dword-design/personal-data';
|
|
3
|
-
import P from 'path';
|
|
4
|
-
export default {
|
|
5
|
-
image: {
|
|
6
|
-
file: '.gitpod.Dockerfile'
|
|
7
|
-
},
|
|
8
|
-
tasks: [{
|
|
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
|
-
`
|
|
20
|
-
}],
|
|
21
|
-
vscode: {
|
|
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']
|
|
23
|
-
}
|
|
24
|
-
};
|