@dword-design/base 11.0.4 → 11.0.6
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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/dist/cli.js +1 -2
- package/dist/commands/check-unknown-files/common-allowed-matches.js +1 -0
- package/dist/commands/check-unknown-files/index.js +1 -4
- package/dist/commands/check-unknown-files/unknown-files-error.js +1 -6
- package/dist/commands/depcheck/index.js +1 -7
- package/dist/commands/prepare/__snapshots__/index.spec.js.snap +1 -1
- package/dist/commands/prepare/index.js +1 -2
- package/dist/commands/test-docker/index.js +1 -6
- package/dist/commands/test-raw/index.js +1 -2
- package/dist/get-generated-files/editorconfig.js +1 -1
- package/dist/get-generated-files/get-editor-ignore/index.js +1 -2
- package/dist/get-generated-files/get-github-workflow/steps/get-release.js +1 -1
- package/dist/get-generated-files/get-github-workflow/steps/get-test.js +1 -3
- package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +1 -1
- package/dist/get-generated-files/get-gitignore/index.js +1 -2
- package/dist/get-generated-files/get-gitpod/index.js +1 -1
- package/dist/get-generated-files/get-gitpod-dockerfile.js +5 -5
- package/dist/get-generated-files/get-license-string.js +1 -1
- package/dist/get-generated-files/get-package-config/index.js +1 -4
- package/dist/get-generated-files/get-readme-string/__snapshots__/index.spec.js.snap +3 -3
- package/dist/get-generated-files/get-readme-string/index.js +1 -3
- package/dist/get-generated-files/get-readme-string/replacements.js +1 -5
- package/dist/get-generated-files/get-vscode/index.js +1 -2
- package/dist/get-generated-files/gitattributes.js +1 -1
- package/dist/get-generated-files/github-deprecated-dependencies-issue-template.js +1 -1
- package/dist/get-generated-files/github-labels.js +1 -5
- package/dist/get-generated-files/index.js +1 -3
- package/dist/get-git-info/index.js +1 -2
- package/dist/index.js +2 -7
- package/dist/load-config/index.js +1 -1
- package/package.json +3 -3
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -102,6 +102,6 @@ Thanks a lot for your support! ❤️
|
|
|
102
102
|
|
|
103
103
|
## License
|
|
104
104
|
|
|
105
|
-
[MIT License](https://opensource.org/
|
|
105
|
+
[MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
|
|
106
106
|
<!-- /LICENSE -->
|
|
107
107
|
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import mapValues from
|
|
3
|
-
import values from "@dword-design/functions/dist/values.js";
|
|
2
|
+
import { mapValues, values } from '@dword-design/functions';
|
|
4
3
|
import makeCli from 'make-cli';
|
|
5
4
|
import { Base } from "./index.js";
|
|
6
5
|
import loadConfig from "./load-config/index.js";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import filter from
|
|
2
|
-
import fromPairs from "@dword-design/functions/dist/from-pairs.js";
|
|
3
|
-
import keys from "@dword-design/functions/dist/keys.js";
|
|
4
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
1
|
+
import { filter, fromPairs, keys, map } from '@dword-design/functions';
|
|
5
2
|
import { globby } from 'globby';
|
|
6
3
|
import ignore from 'ignore';
|
|
7
4
|
import commonAllowedMatches from "./common-allowed-matches.js";
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import endent from
|
|
2
|
-
import identity from "@dword-design/functions/dist/identity.js";
|
|
3
|
-
import join from "@dword-design/functions/dist/join.js";
|
|
4
|
-
import keys from "@dword-design/functions/dist/keys.js";
|
|
5
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
6
|
-
import sortBy from "@dword-design/functions/dist/sort-by.js";
|
|
1
|
+
import { endent, identity, join, keys, map, sortBy } from '@dword-design/functions';
|
|
7
2
|
import fs from 'fs-extra';
|
|
8
3
|
const packageConfig = fs.readJsonSync(new URL('../../../package.json', import.meta.url));
|
|
9
4
|
export default class extends Error {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import endent from
|
|
2
|
-
import isEmpty from "@dword-design/functions/dist/is-empty.js";
|
|
3
|
-
import join from "@dword-design/functions/dist/join.js";
|
|
4
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
5
|
-
import mapValues from "@dword-design/functions/dist/map-values.js";
|
|
6
|
-
import omit from "@dword-design/functions/dist/omit.js";
|
|
7
|
-
import values from "@dword-design/functions/dist/values.js";
|
|
1
|
+
import { endent, isEmpty, join, map, mapValues, omit, values } from '@dword-design/functions';
|
|
8
2
|
import depcheck from 'depcheck';
|
|
9
3
|
export default async function () {
|
|
10
4
|
var _this$packageConfig, _this$packageConfig2, _ref, _ref2, _result$dependencies, _ref3, _result$devDependenci, _ref4, _ref5, _result$invalidFiles;
|
|
@@ -135,7 +135,7 @@ Thanks a lot for your support! ❤️
|
|
|
135
135
|
|
|
136
136
|
## License
|
|
137
137
|
|
|
138
|
-
[MIT License](https://opensource.org/
|
|
138
|
+
[MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
|
|
139
139
|
<!-- /LICENSE -->
|
|
140
140
|
"
|
|
141
141
|
`;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import first from
|
|
2
|
-
import keys from "@dword-design/functions/dist/keys.js";
|
|
1
|
+
import { first, keys } from '@dword-design/functions';
|
|
3
2
|
import packageName from 'depcheck-package-name';
|
|
4
3
|
import { execa, execaCommand } from 'execa';
|
|
5
4
|
import fs from 'fs-extra';
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import filter from
|
|
2
|
-
import flatMap from "@dword-design/functions/dist/flat-map.js";
|
|
3
|
-
import join from "@dword-design/functions/dist/join.js";
|
|
4
|
-
import keys from "@dword-design/functions/dist/keys.js";
|
|
5
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
6
|
-
import replace from "@dword-design/functions/dist/replace.js";
|
|
1
|
+
import { filter, flatMap, join, keys, map, replace } from '@dword-design/functions';
|
|
7
2
|
import { constantCase } from 'change-case';
|
|
8
3
|
import { execa } from 'execa';
|
|
9
4
|
import { findUpSync } from 'find-up';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import endent from
|
|
2
|
-
import includes from "@dword-design/functions/dist/includes.js";
|
|
1
|
+
import { endent, includes } from '@dword-design/functions';
|
|
3
2
|
import Ajv from 'ajv';
|
|
4
3
|
import packageName from 'depcheck-package-name';
|
|
5
4
|
import { execa } from 'execa';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import identity from
|
|
2
|
-
import sortBy from "@dword-design/functions/dist/sort-by.js";
|
|
1
|
+
import { identity, sortBy } from '@dword-design/functions';
|
|
3
2
|
import commonEditorIgnore from "../common-editor-ignore.js";
|
|
4
3
|
export default function () {
|
|
5
4
|
var _ref;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import map from
|
|
1
|
+
import { map } from '@dword-design/functions';
|
|
2
2
|
import packageName from 'depcheck-package-name';
|
|
3
3
|
import parsePackagejsonName from 'parse-packagejson-name';
|
|
4
4
|
const ci = `dw-${parsePackagejsonName(packageName`@dword-design/ci`).fullName}`;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import fromPairs from
|
|
2
|
-
import keys from "@dword-design/functions/dist/keys.js";
|
|
3
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
1
|
+
import { fromPairs, keys, map } from '@dword-design/functions';
|
|
4
2
|
import { constantCase } from 'change-case';
|
|
5
3
|
import { findUpStop, findUpSync } from 'find-up';
|
|
6
4
|
import fs from 'fs-extra';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import map from
|
|
1
|
+
import { map } from '@dword-design/functions';
|
|
2
2
|
import gitHubAction from 'tagged-template-noop';
|
|
3
3
|
import cancelExistingSteps from "../steps/cancel-existing.js";
|
|
4
4
|
import checkUnknownFilesSteps from "../steps/check-unknown-files.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import identity from
|
|
2
|
-
import sortBy from "@dword-design/functions/dist/sort-by.js";
|
|
1
|
+
import { identity, sortBy } from '@dword-design/functions';
|
|
3
2
|
import commonGitignore from "../common-gitignore.js";
|
|
4
3
|
export default function () {
|
|
5
4
|
var _ref;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import endent from
|
|
1
|
+
import { endent } from '@dword-design/functions';
|
|
2
2
|
export default function () {
|
|
3
3
|
return endent`
|
|
4
4
|
# Need to add :latest, otherwise old versions (e.g. of node) are installed
|
|
5
|
-
FROM gitpod/workspace-full:latest
|
|
5
|
+
FROM gitpod/workspace-full-vnc:latest
|
|
6
6
|
|
|
7
7
|
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
|
|
8
8
|
RUN sudo apt-get install git-lfs
|
|
9
9
|
RUN git lfs install
|
|
10
10
|
|
|
11
11
|
# https://www.gitpod.io/docs/languages/javascript
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
# https://github.com/gitpod-io/gitpod/issues/945
|
|
13
|
+
RUN bash -c 'source $HOME/.nvm/nvm.sh && nvm install ${this.config.nodeVersion}'
|
|
14
|
+
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
|
|
15
15
|
|
|
16
16
|
RUN echo "\\nexport PATH=$(yarn global bin):\\$PATH" >> /home/gitpod/.bashrc
|
|
17
17
|
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import keys from
|
|
2
|
-
import mapValues from "@dword-design/functions/dist/map-values.js";
|
|
3
|
-
import pick from "@dword-design/functions/dist/pick.js";
|
|
4
|
-
import stubTrue from "@dword-design/functions/dist/stub-true.js";
|
|
1
|
+
import { keys, mapValues, pick, stubTrue } from '@dword-design/functions';
|
|
5
2
|
import packageName from 'depcheck-package-name';
|
|
6
3
|
import fs from 'fs-extra';
|
|
7
4
|
import sortKeys from 'sort-keys';
|
|
@@ -139,7 +139,7 @@ Thanks a lot for your support! ❤️
|
|
|
139
139
|
|
|
140
140
|
## License
|
|
141
141
|
|
|
142
|
-
[MIT License](https://opensource.org/
|
|
142
|
+
[MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
|
|
143
143
|
<!-- /LICENSE -->
|
|
144
144
|
"
|
|
145
145
|
`;
|
|
@@ -182,7 +182,7 @@ Thanks a lot for your support! ❤️
|
|
|
182
182
|
|
|
183
183
|
## License
|
|
184
184
|
|
|
185
|
-
[MIT License](https://opensource.org/
|
|
185
|
+
[MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
|
|
186
186
|
<!-- /LICENSE -->
|
|
187
187
|
"
|
|
188
188
|
`;
|
|
@@ -230,7 +230,7 @@ Thanks a lot for your support! ❤️
|
|
|
230
230
|
|
|
231
231
|
## License
|
|
232
232
|
|
|
233
|
-
[MIT License](https://opensource.org/
|
|
233
|
+
[MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
|
|
234
234
|
<!-- /LICENSE -->
|
|
235
235
|
"
|
|
236
236
|
`;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import endent from
|
|
2
|
-
import reduce from "@dword-design/functions/dist/reduce.js";
|
|
3
|
-
import replace from "@dword-design/functions/dist/replace.js";
|
|
1
|
+
import { endent, reduce, replace } from '@dword-design/functions';
|
|
4
2
|
import getProjectzReadmeSectionRegex from 'get-projectz-readme-section-regex';
|
|
5
3
|
import { readFileSync as safeReadFileSync } from 'safe-readfile';
|
|
6
4
|
import replacements from "./replacements.js";
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import endent from
|
|
2
|
-
import join from "@dword-design/functions/dist/join.js";
|
|
3
|
-
import last from "@dword-design/functions/dist/last.js";
|
|
4
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
5
|
-
import split from "@dword-design/functions/dist/split.js";
|
|
1
|
+
import { endent, join, last, map, split } from '@dword-design/functions';
|
|
6
2
|
import spdxParse from 'spdx-expression-parse';
|
|
7
3
|
import spdxList from 'spdx-license-list/full.js';
|
|
8
4
|
export default {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
var _ref, _ref2, _ref3, _BFD4F2$C2E0C6$EDEDED;
|
|
2
|
-
import flatten from
|
|
3
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
4
|
-
import mapValues from "@dword-design/functions/dist/map-values.js";
|
|
5
|
-
import sortBy from "@dword-design/functions/dist/sort-by.js";
|
|
6
|
-
import values from "@dword-design/functions/dist/values.js";
|
|
2
|
+
import { flatten, map, mapValues, sortBy, values } from '@dword-design/functions';
|
|
7
3
|
export default (_ref = (_ref2 = (_ref3 = (_BFD4F2$C2E0C6$EDEDED = {
|
|
8
4
|
BFD4F2: ['blocking', 'breaking', 'important'],
|
|
9
5
|
C2E0C6: ['active', 'blocked', 'maintenance', 'waiting-for'],
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import join from
|
|
2
|
-
import jsonToString from "@dword-design/functions/dist/json-to-string.js";
|
|
3
|
-
import map from "@dword-design/functions/dist/map.js";
|
|
1
|
+
import { join, jsonToString, map } from '@dword-design/functions';
|
|
4
2
|
import sortKeys from 'sort-keys';
|
|
5
3
|
import sortPackageJson from 'sort-package-json';
|
|
6
4
|
import yaml from 'yaml';
|
|
@@ -2,11 +2,10 @@ import fs from 'fs-extra';
|
|
|
2
2
|
import hostedGitInfo from 'hosted-git-info';
|
|
3
3
|
import parseGitConfig from 'parse-git-config';
|
|
4
4
|
export default (() => {
|
|
5
|
-
var _parseGitConfig$sync$;
|
|
6
5
|
if (!fs.existsSync('.git')) {
|
|
7
6
|
return undefined;
|
|
8
7
|
}
|
|
9
|
-
const gitUrl =
|
|
8
|
+
const gitUrl = parseGitConfig.sync()['remote "origin"']?.url;
|
|
10
9
|
if (gitUrl === undefined) {
|
|
11
10
|
return undefined;
|
|
12
11
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import endent from
|
|
2
|
-
import filter from "@dword-design/functions/dist/filter.js";
|
|
3
|
-
import flatMap from "@dword-design/functions/dist/flat-map.js";
|
|
4
|
-
import identity from "@dword-design/functions/dist/identity.js";
|
|
5
|
-
import mapValues from "@dword-design/functions/dist/map-values.js";
|
|
1
|
+
import { endent, filter, flatMap, identity, mapValues } from '@dword-design/functions';
|
|
6
2
|
import jitiBabelTransform from '@dword-design/jiti-babel-transform';
|
|
7
3
|
import deepmerge from 'deepmerge';
|
|
8
4
|
import depcheck from 'depcheck';
|
|
@@ -43,11 +39,10 @@ import getGitInfo from "./get-git-info/index.js";
|
|
|
43
39
|
const _require = createRequire(import.meta.url);
|
|
44
40
|
const babelConfig = _require('@dword-design/babel-config');
|
|
45
41
|
const mergeConfigs = (...configs) => {
|
|
46
|
-
var _result$eslintConfig;
|
|
47
42
|
const result = deepmerge.all(configs, {
|
|
48
43
|
customMerge: key => key === 'supportedNodeVersions' ? (a, b) => b : undefined
|
|
49
44
|
});
|
|
50
|
-
if (
|
|
45
|
+
if (result.eslintConfig?.rules?.['import/no-unresolved']?.length > 0) {
|
|
51
46
|
var _ref, _result$eslintConfig$;
|
|
52
47
|
result.eslintConfig.rules['import/no-unresolved'] = ['error', {
|
|
53
48
|
ignore: (_ref = (_result$eslintConfig$ = result.eslintConfig.rules['import/no-unresolved'], filter(setting => typeof setting === 'object')(_result$eslintConfig$)), flatMap(setting => setting.ignore)(_ref))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.6",
|
|
4
4
|
"description": "Base package for projects.",
|
|
5
5
|
"repository": "dword-design/base",
|
|
6
6
|
"funding": "https://github.com/sponsors/dword-design",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@commitlint/cli": "^18.4.4",
|
|
30
30
|
"@commitlint/config-conventional": "^18.4.4",
|
|
31
|
-
"@dword-design/babel-config": "^
|
|
31
|
+
"@dword-design/babel-config": "^4.0.0",
|
|
32
32
|
"@dword-design/base-config-node": "^2.0.0",
|
|
33
33
|
"@dword-design/ci": "^4.0.0",
|
|
34
34
|
"@dword-design/eslint-config": "^5.0.0",
|
|
35
|
-
"@dword-design/functions": "^
|
|
35
|
+
"@dword-design/functions": "^6.0.0",
|
|
36
36
|
"@dword-design/jiti-babel-transform": "^1.0.7",
|
|
37
37
|
"@dword-design/personal-data": "^2.0.3",
|
|
38
38
|
"@dword-design/pretest": "^1.0.0",
|