@dword-design/base 9.3.0 → 9.4.0
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.
- package/dist/commands/prepare/__snapshots__/index.spec.js.snap +1 -0
- package/dist/get-generated-files/__snapshots__/index.spec.js.snap +1 -0
- package/dist/get-generated-files/common-editor-ignore.js +1 -1
- package/dist/get-generated-files/get-editor-ignore/__snapshots__/index.spec.js.snap +2 -0
- package/dist/get-generated-files/get-github-codespaces/__snapshots__/index.spec.js.snap +11 -0
- package/dist/get-generated-files/get-github-codespaces/index.js +9 -0
- package/dist/get-generated-files/get-gitpod-dockerfile.js +0 -1
- package/dist/get-generated-files/get-vscode/__snapshots__/index.spec.js.snap +2 -0
- package/dist/get-generated-files/index.js +4 -1
- package/dist/index.js +2 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ['.babelrc.json', '.commitlintrc.json', '.cz.json', '.editorconfig', '.eslintrc.json', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.nyc_output', '.releaserc.json', '.renovaterc.json', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'yarn.lock'];
|
|
1
|
+
export default ['.babelrc.json', '.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', '.eslintrc.json', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'yarn.lock'];
|
|
@@ -5,6 +5,7 @@ Array [
|
|
|
5
5
|
".babelrc.json",
|
|
6
6
|
".commitlintrc.json",
|
|
7
7
|
".cz.json",
|
|
8
|
+
".devcontainer",
|
|
8
9
|
".editorconfig",
|
|
9
10
|
".eslintrc.json",
|
|
10
11
|
".gitattributes",
|
|
@@ -16,6 +17,7 @@ Array [
|
|
|
16
17
|
".nyc_output",
|
|
17
18
|
".releaserc.json",
|
|
18
19
|
".renovaterc.json",
|
|
20
|
+
".vscode",
|
|
19
21
|
"CHANGELOG.md",
|
|
20
22
|
"LICENSE.md",
|
|
21
23
|
"coverage",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`index works 1`] = `
|
|
4
|
+
Object {
|
|
5
|
+
"features": Object {
|
|
6
|
+
"ghcr.io/devcontainers/features/docker-in-docker:2": Object {},
|
|
7
|
+
},
|
|
8
|
+
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18",
|
|
9
|
+
"updateContentCommand": "yarn --frozen-lockfile",
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
@@ -12,7 +12,6 @@ export default function () {
|
|
|
12
12
|
RUN bash -c 'VERSION="${this.config.nodeVersion}" \
|
|
13
13
|
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
|
|
14
14
|
&& nvm use $VERSION && nvm alias default $VERSION'
|
|
15
|
-
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
|
|
16
15
|
|
|
17
16
|
RUN echo "\\nexport PATH=$(yarn global bin):\\$PATH" >> /home/gitpod/.bashrc
|
|
18
17
|
|
|
@@ -8,6 +8,7 @@ Object {
|
|
|
8
8
|
".babelrc.json": true,
|
|
9
9
|
".commitlintrc.json": true,
|
|
10
10
|
".cz.json": true,
|
|
11
|
+
".devcontainer": true,
|
|
11
12
|
".editorconfig": true,
|
|
12
13
|
".eslintrc.json": true,
|
|
13
14
|
".gitattributes": true,
|
|
@@ -19,6 +20,7 @@ Object {
|
|
|
19
20
|
".nyc_output": true,
|
|
20
21
|
".releaserc.json": true,
|
|
21
22
|
".renovaterc.json": true,
|
|
23
|
+
".vscode": true,
|
|
22
24
|
"CHANGELOG.md": true,
|
|
23
25
|
"LICENSE.md": true,
|
|
24
26
|
"bar": true,
|
|
@@ -16,7 +16,7 @@ import githubLabelsConfig from "./github-labels.js";
|
|
|
16
16
|
import githubSyncLabelsConfig from "./github-sync-labels.js";
|
|
17
17
|
import gitpodConfig from "./gitpod.js";
|
|
18
18
|
export default function () {
|
|
19
|
-
var _babelConfig, _commitlintConfig, _commitizenConfig, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _gitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _ref2, _packageConfig;
|
|
19
|
+
var _babelConfig, _commitlintConfig, _commitizenConfig, _this$getGithubCodesp, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _gitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _ref2, _packageConfig;
|
|
20
20
|
const packageConfig = this.getPackageConfig();
|
|
21
21
|
return {
|
|
22
22
|
'.babelrc.json': `${(_babelConfig = babelConfig, jsonToString({
|
|
@@ -28,6 +28,9 @@ export default function () {
|
|
|
28
28
|
'.cz.json': `${(_commitizenConfig = commitizenConfig, jsonToString({
|
|
29
29
|
indent: 2
|
|
30
30
|
})(_commitizenConfig))}\n`,
|
|
31
|
+
'.devcontainer/devcontainer.json': `${(_this$getGithubCodesp = this.getGithubCodespacesConfig(), jsonToString({
|
|
32
|
+
indent: 2
|
|
33
|
+
})(_this$getGithubCodesp))}\n`,
|
|
31
34
|
'.editorconfig': editorconfigConfig,
|
|
32
35
|
'.eslintrc.json': `${(_this$getEslintConfig = this.getEslintConfig(), jsonToString({
|
|
33
36
|
indent: 2
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import testRaw from "./commands/test-raw/index.js";
|
|
|
22
22
|
import getDepcheckSpecialBase from "./get-depcheck-special-base/index.js";
|
|
23
23
|
import getEditorIgnoreConfig from "./get-generated-files/get-editor-ignore/index.js";
|
|
24
24
|
import getEslintConfig from "./get-generated-files/get-eslint/index.js";
|
|
25
|
+
import getGithubCodespacesConfig from "./get-generated-files/get-github-codespaces/index.js";
|
|
25
26
|
import getGithubSyncMetadataConfig from "./get-generated-files/get-github-sync-metadata/index.js";
|
|
26
27
|
import getGithubWorkflowConfig from "./get-generated-files/get-github-workflow/index.js";
|
|
27
28
|
import getGitignoreConfig from "./get-generated-files/get-gitignore/index.js";
|
|
@@ -118,6 +119,7 @@ Object.assign(Base.prototype, {
|
|
|
118
119
|
getEditorIgnoreConfig,
|
|
119
120
|
getEslintConfig,
|
|
120
121
|
getGeneratedFiles,
|
|
122
|
+
getGithubCodespacesConfig,
|
|
121
123
|
getGithubSyncMetadataConfig,
|
|
122
124
|
getGithubWorkflowConfig,
|
|
123
125
|
getGitignoreConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "Base package for projects.",
|
|
5
5
|
"repository": "dword-design/base",
|
|
6
6
|
"funding": "https://github.com/sponsors/dword-design",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"depcheck-package-name": "^3.0.0",
|
|
56
56
|
"depcheck-parser-babel": "^3.0.1",
|
|
57
57
|
"eslint": "~7.32.0",
|
|
58
|
-
"execa": "^
|
|
58
|
+
"execa": "^7.0.0",
|
|
59
59
|
"find-up": "^6.3.0",
|
|
60
60
|
"fs-extra": "^11.1.0",
|
|
61
61
|
"get-projectz-readme-section-regex": "^3.0.0",
|