@dword-design/base 9.4.1 → 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,11 @@
|
|
|
1
1
|
import endent from "@dword-design/functions/dist/endent.js";
|
|
2
2
|
import includes from "@dword-design/functions/dist/includes.js";
|
|
3
|
-
import packageJsonSchema from '@dword-design/package-json-schema';
|
|
4
3
|
import Ajv from 'ajv';
|
|
5
4
|
import packageName from 'depcheck-package-name';
|
|
6
5
|
import { execa } from 'execa';
|
|
7
6
|
import { createRequire } from 'module';
|
|
8
7
|
import isCI from "./is-ci.js";
|
|
8
|
+
import packageJsonSchema from "./package-json-schema.js";
|
|
9
9
|
const _require = createRequire(import.meta.url);
|
|
10
10
|
const ajv = new Ajv({
|
|
11
11
|
allowUnionTypes: true
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import packageNameRegex from 'package-name-regex';
|
|
2
|
+
export default {
|
|
3
|
+
properties: {
|
|
4
|
+
baseConfig: {
|
|
5
|
+
properties: {
|
|
6
|
+
depcheckConfig: {
|
|
7
|
+
type: 'object'
|
|
8
|
+
},
|
|
9
|
+
name: {
|
|
10
|
+
type: 'string'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
type: ['string', 'object']
|
|
14
|
+
},
|
|
15
|
+
bin: {
|
|
16
|
+
additionalProperties: {
|
|
17
|
+
pattern: /^\.\/dist\//.source,
|
|
18
|
+
type: 'string'
|
|
19
|
+
},
|
|
20
|
+
type: 'object'
|
|
21
|
+
},
|
|
22
|
+
dependencies: {
|
|
23
|
+
additionalProperties: {
|
|
24
|
+
type: 'string'
|
|
25
|
+
},
|
|
26
|
+
type: 'object'
|
|
27
|
+
},
|
|
28
|
+
description: {
|
|
29
|
+
type: 'string'
|
|
30
|
+
},
|
|
31
|
+
devDependencies: {
|
|
32
|
+
additionalProperties: {
|
|
33
|
+
type: 'string'
|
|
34
|
+
},
|
|
35
|
+
type: 'object'
|
|
36
|
+
},
|
|
37
|
+
keywords: {
|
|
38
|
+
items: {
|
|
39
|
+
type: 'string'
|
|
40
|
+
},
|
|
41
|
+
type: 'array'
|
|
42
|
+
},
|
|
43
|
+
name: {
|
|
44
|
+
pattern: packageNameRegex.source,
|
|
45
|
+
type: 'string'
|
|
46
|
+
},
|
|
47
|
+
version: {
|
|
48
|
+
type: 'string'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
type: 'object'
|
|
52
|
+
};
|
|
@@ -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']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.3",
|
|
4
4
|
"description": "Base package for projects.",
|
|
5
5
|
"repository": "dword-design/base",
|
|
6
6
|
"funding": "https://github.com/sponsors/dword-design",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"@dword-design/ci": "^3.0.0",
|
|
34
34
|
"@dword-design/eslint-config": "^3.0.6",
|
|
35
35
|
"@dword-design/functions": "^4.0.0",
|
|
36
|
-
"@dword-design/package-json-schema": "^2.0.0",
|
|
37
36
|
"@dword-design/personal-data": "^1.0.1",
|
|
38
37
|
"@dword-design/pretest": "^1.0.0",
|
|
39
38
|
"@dword-design/setup-test": "^1.0.2",
|
|
@@ -71,6 +70,7 @@
|
|
|
71
70
|
"mocha-ui-exports-auto-describe": "^2.0.0",
|
|
72
71
|
"nyc": "^15.0.0",
|
|
73
72
|
"output-files": "^2.0.0",
|
|
73
|
+
"package-name-regex": "^2.0.6",
|
|
74
74
|
"parse-git-config": "^3.0.0",
|
|
75
75
|
"parse-packagejson-name": "^1.0.1",
|
|
76
76
|
"plugin-name-to-package-name": "npm:@dword-design/plugin-name-to-package-name",
|