aberlaas-init 2.18.1 → 2.20.1
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/lib/helper.js +150 -119
- package/lib/layouts/__tests__/libdocs.js +55 -58
- package/lib/layouts/__tests__/module.js +22 -20
- package/lib/layouts/__tests__/monorepo.js +54 -62
- package/lib/layouts/libdocs.js +73 -68
- package/lib/layouts/module.js +33 -22
- package/lib/layouts/monorepo.js +75 -74
- package/lib/main.js +59 -43
- package/package.json +19 -21
- package/templates/_README.template.md +5 -0
- package/templates/_editorconfig +8 -0
- package/templates/_gitignore +11 -19
- package/templates/scripts/build +4 -0
- package/templates/scripts/build-prod +4 -0
- package/templates/scripts/ci +4 -0
- package/templates/scripts/cms +4 -0
- package/templates/scripts/compress +4 -0
- package/templates/scripts/{__module/hooks → hooks}/pre-commit +1 -1
- package/templates/scripts/lint +4 -0
- package/templates/scripts/lint-fix +4 -0
- package/templates/scripts/release +4 -0
- package/templates/scripts/serve +4 -0
- package/templates/scripts/test +4 -0
- package/templates/scripts/test-watch +4 -0
- package/templates/_gitattributes +0 -4
- package/templates/lerna.json +0 -6
- package/templates/scripts/__libdocs/hooks/pre-commit +0 -11
- package/templates/scripts/__libdocs/local/build +0 -5
- package/templates/scripts/__libdocs/local/build-prod +0 -5
- package/templates/scripts/__libdocs/local/ci +0 -5
- package/templates/scripts/__libdocs/local/cms +0 -4
- package/templates/scripts/__libdocs/local/compress +0 -5
- package/templates/scripts/__libdocs/local/lint +0 -5
- package/templates/scripts/__libdocs/local/lint-fix +0 -5
- package/templates/scripts/__libdocs/local/release +0 -5
- package/templates/scripts/__libdocs/local/serve +0 -5
- package/templates/scripts/__libdocs/local/test +0 -5
- package/templates/scripts/__libdocs/local/test-watch +0 -6
- package/templates/scripts/__libdocs/meta/build +0 -4
- package/templates/scripts/__libdocs/meta/build-prod +0 -4
- package/templates/scripts/__libdocs/meta/ci +0 -4
- package/templates/scripts/__libdocs/meta/cms +0 -4
- package/templates/scripts/__libdocs/meta/compress +0 -4
- package/templates/scripts/__libdocs/meta/lint +0 -4
- package/templates/scripts/__libdocs/meta/lint-fix +0 -4
- package/templates/scripts/__libdocs/meta/release +0 -5
- package/templates/scripts/__libdocs/meta/serve +0 -4
- package/templates/scripts/__libdocs/meta/test +0 -4
- package/templates/scripts/__libdocs/meta/test-watch +0 -4
- package/templates/scripts/__module/ci +0 -6
- package/templates/scripts/__module/compress +0 -4
- package/templates/scripts/__module/lint +0 -4
- package/templates/scripts/__module/lint-fix +0 -4
- package/templates/scripts/__module/release +0 -4
- package/templates/scripts/__module/test +0 -5
- package/templates/scripts/__module/test-watch +0 -5
- package/templates/scripts/__monorepo/hooks/pre-commit +0 -11
- package/templates/scripts/__monorepo/local/build +0 -5
- package/templates/scripts/__monorepo/local/build-prod +0 -5
- package/templates/scripts/__monorepo/local/ci +0 -5
- package/templates/scripts/__monorepo/local/cms +0 -5
- package/templates/scripts/__monorepo/local/compress +0 -5
- package/templates/scripts/__monorepo/local/lint +0 -5
- package/templates/scripts/__monorepo/local/lint-fix +0 -5
- package/templates/scripts/__monorepo/local/release +0 -5
- package/templates/scripts/__monorepo/local/serve +0 -5
- package/templates/scripts/__monorepo/local/test +0 -5
- package/templates/scripts/__monorepo/local/test-watch +0 -6
- package/templates/scripts/__monorepo/meta/build +0 -4
- package/templates/scripts/__monorepo/meta/build-prod +0 -4
- package/templates/scripts/__monorepo/meta/ci +0 -4
- package/templates/scripts/__monorepo/meta/cms +0 -4
- package/templates/scripts/__monorepo/meta/compress +0 -4
- package/templates/scripts/__monorepo/meta/lint +0 -4
- package/templates/scripts/__monorepo/meta/lint-fix +0 -4
- package/templates/scripts/__monorepo/meta/release +0 -5
- package/templates/scripts/__monorepo/meta/serve +0 -4
- package/templates/scripts/__monorepo/meta/test +0 -4
- package/templates/scripts/__monorepo/meta/test-watch +0 -4
package/lib/layouts/monorepo.js
CHANGED
|
@@ -1,24 +1,52 @@
|
|
|
1
1
|
import { writeJson } from 'firost';
|
|
2
|
-
|
|
3
|
-
import helper from 'aberlaas-helper';
|
|
2
|
+
import { hostGitPath } from 'aberlaas-helper';
|
|
4
3
|
import {
|
|
5
|
-
lernaVersion,
|
|
6
4
|
nodeVersion,
|
|
7
5
|
norskaThemeDocsVersion,
|
|
8
6
|
norskaVersion,
|
|
9
7
|
yarnVersion,
|
|
10
8
|
} from 'aberlaas-versions';
|
|
11
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
addConfigFiles,
|
|
11
|
+
addDefaultScripts,
|
|
12
|
+
addDocsScripts,
|
|
13
|
+
addLibFiles,
|
|
14
|
+
addLicenseFile,
|
|
15
|
+
getAberlaasVersion,
|
|
16
|
+
getProjectAuthor,
|
|
17
|
+
getProjectName,
|
|
18
|
+
} from '../helper.js';
|
|
19
|
+
|
|
20
|
+
export let __;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Scaffold a repo:
|
|
24
|
+
* - As a monorepo
|
|
25
|
+
* - With ./libs and ./docs subfolders
|
|
26
|
+
*/
|
|
27
|
+
export async function run() {
|
|
28
|
+
await __.createRootWorkspace();
|
|
29
|
+
await __.createDocsWorkspace();
|
|
30
|
+
await __.createLibWorkspace();
|
|
31
|
+
await __.addLicenseFiles();
|
|
32
|
+
|
|
33
|
+
await addConfigFiles();
|
|
34
|
+
await addDefaultScripts();
|
|
35
|
+
await addDocsScripts();
|
|
36
|
+
await addLibFiles('./modules/lib');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
__ = {
|
|
40
|
+
// Public methods
|
|
12
41
|
|
|
13
|
-
export default {
|
|
14
42
|
/**
|
|
15
43
|
* Scaffold a repo:
|
|
16
44
|
* - As a monorepo
|
|
17
45
|
* - With ./modules holding all modules, including ./lib and ./docs
|
|
18
46
|
*/
|
|
19
47
|
async createRootWorkspace() {
|
|
20
|
-
const aberlaasVersion =
|
|
21
|
-
const sharedProjectData = await
|
|
48
|
+
const aberlaasVersion = await getAberlaasVersion();
|
|
49
|
+
const sharedProjectData = await __.getSharedProjectData();
|
|
22
50
|
const engines = {
|
|
23
51
|
node: `>=${nodeVersion}`,
|
|
24
52
|
};
|
|
@@ -47,39 +75,36 @@ export default {
|
|
|
47
75
|
dependencies: {},
|
|
48
76
|
devDependencies: {
|
|
49
77
|
aberlaas: aberlaasVersion,
|
|
50
|
-
lerna: lernaVersion,
|
|
51
78
|
},
|
|
52
79
|
|
|
53
80
|
// Scripts
|
|
54
81
|
scripts: {
|
|
55
82
|
// Docs
|
|
56
|
-
build: './scripts/
|
|
57
|
-
'build:prod': './scripts/
|
|
58
|
-
cms: './scripts/
|
|
59
|
-
serve: './scripts/
|
|
83
|
+
build: './scripts/build',
|
|
84
|
+
'build:prod': './scripts/build-prod',
|
|
85
|
+
cms: './scripts/cms',
|
|
86
|
+
serve: './scripts/serve',
|
|
60
87
|
|
|
61
88
|
// Lib
|
|
62
|
-
release: './scripts/
|
|
63
|
-
test: './scripts/
|
|
64
|
-
'test:watch': './scripts/
|
|
65
|
-
ci: './scripts/
|
|
66
|
-
compress: './scripts/
|
|
67
|
-
lint: './scripts/
|
|
68
|
-
'lint:fix': './scripts/
|
|
69
|
-
|
|
70
|
-
// Typo
|
|
71
|
-
learn: 'lerna',
|
|
89
|
+
release: './scripts/release',
|
|
90
|
+
test: './scripts/test',
|
|
91
|
+
'test:watch': './scripts/test-watch',
|
|
92
|
+
ci: './scripts/ci',
|
|
93
|
+
compress: './scripts/compress',
|
|
94
|
+
lint: './scripts/lint',
|
|
95
|
+
'lint:fix': './scripts/lint-fix',
|
|
72
96
|
},
|
|
73
97
|
};
|
|
74
|
-
await writeJson(packageContent,
|
|
98
|
+
await writeJson(packageContent, hostGitPath('./package.json'), {
|
|
75
99
|
sort: false,
|
|
76
100
|
});
|
|
77
101
|
},
|
|
102
|
+
|
|
78
103
|
/**
|
|
79
104
|
* Create the docs workspace
|
|
80
105
|
*/
|
|
81
106
|
async createDocsWorkspace() {
|
|
82
|
-
const sharedProjectData = await
|
|
107
|
+
const sharedProjectData = await __.getSharedProjectData();
|
|
83
108
|
|
|
84
109
|
const packageContent = {
|
|
85
110
|
// Name & Version
|
|
@@ -111,17 +136,18 @@ export default {
|
|
|
111
136
|
};
|
|
112
137
|
await writeJson(
|
|
113
138
|
packageContent,
|
|
114
|
-
|
|
139
|
+
hostGitPath('./modules/docs/package.json'),
|
|
115
140
|
{
|
|
116
141
|
sort: false,
|
|
117
142
|
},
|
|
118
143
|
);
|
|
119
144
|
},
|
|
145
|
+
|
|
120
146
|
/**
|
|
121
147
|
* Create the lib workspace
|
|
122
148
|
*/
|
|
123
149
|
async createLibWorkspace() {
|
|
124
|
-
const sharedProjectData = await
|
|
150
|
+
const sharedProjectData = await __.getSharedProjectData();
|
|
125
151
|
const engines = {
|
|
126
152
|
node: `>=${nodeVersion}`,
|
|
127
153
|
};
|
|
@@ -161,54 +187,43 @@ export default {
|
|
|
161
187
|
// Scripts
|
|
162
188
|
scripts: sharedProjectData.scripts,
|
|
163
189
|
};
|
|
164
|
-
await writeJson(
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
{
|
|
168
|
-
sort: false,
|
|
169
|
-
},
|
|
170
|
-
);
|
|
190
|
+
await writeJson(packageContent, hostGitPath('./modules/lib/package.json'), {
|
|
191
|
+
sort: false,
|
|
192
|
+
});
|
|
171
193
|
},
|
|
194
|
+
|
|
172
195
|
/**
|
|
173
196
|
* Add MIT license files to the repository
|
|
174
197
|
*/
|
|
175
198
|
async addLicenseFiles() {
|
|
176
199
|
// One at the repo root, for GitHub
|
|
177
|
-
await
|
|
200
|
+
await addLicenseFile('LICENSE');
|
|
178
201
|
// One in ./lib to be released with the module
|
|
179
|
-
await
|
|
202
|
+
await addLicenseFile('modules/lib/LICENSE');
|
|
180
203
|
},
|
|
181
|
-
/**
|
|
182
|
-
* Add config files
|
|
183
|
-
*/
|
|
184
|
-
async addConfigFiles() {
|
|
185
|
-
await initHelper.addConfigFiles();
|
|
186
204
|
|
|
187
|
-
// Lerna
|
|
188
|
-
await initHelper.copyTemplateToHost('lerna.json', 'lerna.json');
|
|
189
|
-
},
|
|
190
205
|
/**
|
|
191
206
|
* Returns shared project data, like name, author, scripts, etc
|
|
192
207
|
* @returns {object} Object of common keys
|
|
193
208
|
*/
|
|
194
209
|
async getSharedProjectData() {
|
|
195
|
-
const name = await
|
|
196
|
-
const author = await
|
|
210
|
+
const name = await getProjectName();
|
|
211
|
+
const author = await getProjectAuthor();
|
|
197
212
|
const homepage = `https://projects.pixelastic.com/${name}`;
|
|
198
213
|
const repository = `${author}/${name}`;
|
|
199
214
|
const license = 'MIT';
|
|
200
215
|
const scripts = {
|
|
201
|
-
build: '
|
|
202
|
-
'build:prod': '
|
|
203
|
-
cms: '
|
|
204
|
-
serve: '
|
|
205
|
-
ci: '
|
|
206
|
-
release: '
|
|
207
|
-
test: '
|
|
208
|
-
'test:watch': '
|
|
209
|
-
compress: '
|
|
210
|
-
lint: '
|
|
211
|
-
'lint:fix': '
|
|
216
|
+
build: 'cd ../.. && ./scripts/build',
|
|
217
|
+
'build:prod': 'cd ../.. && ./scripts/build-prod',
|
|
218
|
+
cms: 'cd ../.. && ./scripts/cms',
|
|
219
|
+
serve: 'cd ../.. && ./scripts/serve',
|
|
220
|
+
ci: 'cd ../.. && ./scripts/ci',
|
|
221
|
+
release: 'cd ../.. && ./scripts/release',
|
|
222
|
+
test: 'cd ../.. && ./scripts/test',
|
|
223
|
+
'test:watch': 'cd ../.. && ./scripts/test-watch',
|
|
224
|
+
compress: 'cd ../.. && ./scripts/compress',
|
|
225
|
+
lint: 'cd ../.. && ./scripts/lint',
|
|
226
|
+
'lint:fix': 'cd ../.. && ./scripts/lint-fix',
|
|
212
227
|
};
|
|
213
228
|
return {
|
|
214
229
|
author,
|
|
@@ -219,22 +234,8 @@ export default {
|
|
|
219
234
|
scripts,
|
|
220
235
|
};
|
|
221
236
|
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
*/
|
|
227
|
-
async run() {
|
|
228
|
-
await this.createRootWorkspace();
|
|
229
|
-
await this.createDocsWorkspace();
|
|
230
|
-
await this.createLibWorkspace();
|
|
231
|
-
|
|
232
|
-
await this.addLicenseFiles();
|
|
233
|
-
await this.addConfigFiles();
|
|
234
|
-
await initHelper.addScripts('__monorepo');
|
|
235
|
-
await initHelper.addLibFiles('./modules/lib');
|
|
236
|
-
},
|
|
237
|
-
__getProjectName: initHelper.getProjectName,
|
|
238
|
-
__getProjectAuthor: initHelper.getProjectAuthor.bind(initHelper),
|
|
239
|
-
__getAberlaasVersion: initHelper.getAberlaasVersion,
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export default {
|
|
240
|
+
run,
|
|
240
241
|
};
|
package/lib/main.js
CHANGED
|
@@ -1,33 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
consoleInfo,
|
|
3
|
+
firostError,
|
|
4
|
+
run as firostRun,
|
|
5
|
+
spinner,
|
|
6
|
+
write,
|
|
7
|
+
} from 'firost';
|
|
8
|
+
import { hostGitPath, hostGitRoot } from 'aberlaas-helper';
|
|
5
9
|
import { nodeVersion } from 'aberlaas-versions';
|
|
6
|
-
import
|
|
10
|
+
import Gilmore from 'gilmore';
|
|
7
11
|
import libdocsLayout from './layouts/libdocs.js';
|
|
12
|
+
import moduleLayout from './layouts/module.js';
|
|
8
13
|
import monorepoLayout from './layouts/monorepo.js';
|
|
9
14
|
|
|
10
|
-
export
|
|
15
|
+
export let __;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Copy all config files and configure the scripts
|
|
19
|
+
* @param {object} args Argument object, as passed by minimist
|
|
20
|
+
*/
|
|
21
|
+
export async function run(args = {}) {
|
|
22
|
+
const progress = __.spinner();
|
|
23
|
+
|
|
24
|
+
progress.tick('Configuring Git & Node');
|
|
25
|
+
await __.configureGit();
|
|
26
|
+
await __.configureNode();
|
|
27
|
+
|
|
28
|
+
progress.tick('Adding default files ');
|
|
29
|
+
|
|
30
|
+
// Create a different scaffolding based on if creating a monorepo or not
|
|
31
|
+
const layout = __.getLayout(args);
|
|
32
|
+
await layout.run();
|
|
33
|
+
|
|
34
|
+
progress.success('aberlaas project initialized');
|
|
35
|
+
|
|
36
|
+
__.consoleInfo('Synchronizing dependencies');
|
|
37
|
+
await __.yarnInstall();
|
|
38
|
+
|
|
39
|
+
__.consoleInfo(
|
|
40
|
+
"Don't forget to run aberlaas setup after pushing your repository",
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
__ = {
|
|
11
45
|
/**
|
|
12
46
|
* Configure git hooks to use scripts/hooks instead of .git/hooks
|
|
13
47
|
*/
|
|
14
48
|
async configureGit() {
|
|
15
|
-
const repo = new Gilmore(
|
|
49
|
+
const repo = new Gilmore(hostGitRoot());
|
|
16
50
|
await repo.setConfig('core.hooksPath', 'scripts/hooks');
|
|
17
51
|
},
|
|
52
|
+
|
|
18
53
|
/**
|
|
19
54
|
* Pin the node version through nvm
|
|
20
55
|
*/
|
|
21
56
|
async configureNode() {
|
|
22
|
-
const nvmrcPath =
|
|
57
|
+
const nvmrcPath = hostGitPath('.nvmrc');
|
|
23
58
|
await write(nodeVersion, nvmrcPath);
|
|
24
59
|
},
|
|
60
|
+
|
|
25
61
|
/**
|
|
26
62
|
* Run yarn install to install all deps
|
|
27
63
|
*/
|
|
28
64
|
async yarnInstall() {
|
|
29
|
-
await
|
|
65
|
+
await firostRun('yarn install');
|
|
30
66
|
},
|
|
67
|
+
|
|
31
68
|
/**
|
|
32
69
|
* Returns the correct layout object, based on args
|
|
33
70
|
* @param {object} args Arguments, as passed by minimist
|
|
@@ -37,54 +74,33 @@ export default {
|
|
|
37
74
|
if (args.monorepo && args.libdocs) {
|
|
38
75
|
throw firostError(
|
|
39
76
|
'ABERLAAS_INIT_LAYOUT_INCOMPATIBLE',
|
|
40
|
-
"You can't
|
|
77
|
+
"You can't specify both --monorepo and --libdocs",
|
|
41
78
|
);
|
|
42
79
|
}
|
|
43
80
|
|
|
44
81
|
if (args.monorepo) {
|
|
45
|
-
return
|
|
82
|
+
return __.monorepoLayout();
|
|
46
83
|
}
|
|
47
84
|
if (args.libdocs) {
|
|
48
|
-
return
|
|
85
|
+
return __.libdocsLayout();
|
|
49
86
|
}
|
|
50
|
-
return
|
|
87
|
+
return __.moduleLayout();
|
|
51
88
|
},
|
|
52
|
-
/**
|
|
53
|
-
* Copy all config files and configure the scripts
|
|
54
|
-
* @param {object} args Argument object, as passed by minimist
|
|
55
|
-
*/
|
|
56
|
-
async run(args = {}) {
|
|
57
|
-
const progress = this.__spinner();
|
|
58
|
-
|
|
59
|
-
progress.tick('Configuring Git & Node');
|
|
60
|
-
await this.configureGit();
|
|
61
|
-
await this.configureNode();
|
|
62
|
-
|
|
63
|
-
progress.tick('Adding default files ');
|
|
64
89
|
|
|
65
|
-
// Create a different scaffolding based on if creating a monorepo or not
|
|
66
|
-
const layout = this.getLayout(args);
|
|
67
|
-
await layout.run();
|
|
68
|
-
|
|
69
|
-
progress.success('aberlaas project initialized');
|
|
70
|
-
|
|
71
|
-
this.__consoleInfo('Synchronizing dependencies');
|
|
72
|
-
await this.yarnInstall();
|
|
73
|
-
|
|
74
|
-
this.__consoleInfo(
|
|
75
|
-
"Don't forget to run aberlaas setup after pushing your repository",
|
|
76
|
-
);
|
|
77
|
-
},
|
|
78
|
-
__consoleInfo: consoleInfo,
|
|
79
|
-
__spinner: spinner,
|
|
80
90
|
// Why the old-school getters? So we can mock which layout is returned
|
|
81
|
-
|
|
91
|
+
moduleLayout() {
|
|
82
92
|
return moduleLayout;
|
|
83
93
|
},
|
|
84
|
-
|
|
94
|
+
libdocsLayout() {
|
|
85
95
|
return libdocsLayout;
|
|
86
96
|
},
|
|
87
|
-
|
|
97
|
+
monorepoLayout() {
|
|
88
98
|
return monorepoLayout;
|
|
89
99
|
},
|
|
100
|
+
spinner,
|
|
101
|
+
consoleInfo,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export default {
|
|
105
|
+
run,
|
|
90
106
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aberlaas-init",
|
|
3
3
|
"type": "module",
|
|
4
|
+
"sideEffects": false,
|
|
4
5
|
"description": "aberlaas init command: Setup the repository with all needed config",
|
|
5
|
-
"version": "2.
|
|
6
|
+
"version": "2.20.1",
|
|
6
7
|
"repository": "pixelastic/aberlaas",
|
|
7
8
|
"homepage": "https://projects.pixelastic.com/aberlaas/",
|
|
8
9
|
"author": "Tim Carry (@pixelastic)",
|
|
@@ -19,27 +20,24 @@
|
|
|
19
20
|
"engines": {
|
|
20
21
|
"node": ">=18.18.0"
|
|
21
22
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "../../scripts/local/build",
|
|
24
|
-
"build:prod": "../../scripts/local/build-prod",
|
|
25
|
-
"cms": "../../scripts/local/cms",
|
|
26
|
-
"serve": "../../scripts/local/serve",
|
|
27
|
-
"ci": "../../scripts/local/ci",
|
|
28
|
-
"release": "../../scripts/local/release",
|
|
29
|
-
"update-dependencies": "node ../../scripts/meta/update-dependencies.js",
|
|
30
|
-
"test:meta": "../../scripts/local/test-meta",
|
|
31
|
-
"test": "../../scripts/local/test",
|
|
32
|
-
"test:watch": "../../scripts/local/test-watch",
|
|
33
|
-
"compress": "../../scripts/local/compress",
|
|
34
|
-
"lint": "../../scripts/local/lint",
|
|
35
|
-
"lint:fix": "../../scripts/local/lint-fix"
|
|
36
|
-
},
|
|
37
23
|
"dependencies": {
|
|
38
|
-
"aberlaas-helper": "
|
|
39
|
-
"aberlaas-versions": "
|
|
40
|
-
"firost": "5.
|
|
41
|
-
"gilmore": "1.
|
|
24
|
+
"aberlaas-helper": "workspace:*",
|
|
25
|
+
"aberlaas-versions": "workspace:*",
|
|
26
|
+
"firost": "5.5.1",
|
|
27
|
+
"gilmore": "1.2.0",
|
|
42
28
|
"golgoth": "3.0.0"
|
|
43
29
|
},
|
|
44
|
-
"
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "cd ../docs && yarn run build",
|
|
32
|
+
"build:prod": "cd ../docs && yarn run build:prod",
|
|
33
|
+
"cms": "cd ../docs && yarn run cms",
|
|
34
|
+
"serve": "cd ../docs && yarn run serve",
|
|
35
|
+
"release": "cd ../.. && ./scripts/release",
|
|
36
|
+
"test:meta": "cd ../.. && ./scripts/test-meta",
|
|
37
|
+
"test": "cd ../.. && ./scripts/test",
|
|
38
|
+
"test:watch": "cd ../.. && ./scripts/test-watch",
|
|
39
|
+
"compress": "cd ../.. && ./scripts/compress",
|
|
40
|
+
"lint": "cd ../.. && ./scripts/lint",
|
|
41
|
+
"lint:fix": "cd ../.. && ./scripts/lint-fix"
|
|
42
|
+
}
|
|
45
43
|
}
|
package/templates/_gitignore
CHANGED
|
@@ -1,33 +1,25 @@
|
|
|
1
|
-
#
|
|
2
|
-
.
|
|
1
|
+
# Important files that should not be committed
|
|
2
|
+
.npmrc
|
|
3
3
|
.envrc
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# Build directories
|
|
6
6
|
build/
|
|
7
7
|
dist/
|
|
8
|
-
node_modules/
|
|
9
8
|
tmp/
|
|
10
9
|
|
|
11
|
-
#
|
|
10
|
+
# Junk files
|
|
11
|
+
.DS_Store
|
|
12
12
|
Thumbs.db
|
|
13
13
|
lerna-debug.log
|
|
14
14
|
npm-debug.log
|
|
15
15
|
yarn-error.log
|
|
16
16
|
*~
|
|
17
17
|
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
.yarn/*
|
|
21
|
-
!.yarn/patches
|
|
22
|
-
!.yarn/plugins
|
|
23
|
-
!.yarn/releases
|
|
24
|
-
!.yarn/sdks
|
|
25
|
-
!.yarn/versions
|
|
26
|
-
|
|
27
|
-
# Netlify
|
|
28
|
-
.netlify
|
|
29
|
-
|
|
30
|
-
# Vibe coding
|
|
31
|
-
.claude/settings.local.json
|
|
18
|
+
# Tool directories
|
|
19
|
+
.claude/
|
|
32
20
|
.cursor/
|
|
21
|
+
.netlify/
|
|
33
22
|
.taskmaster/
|
|
23
|
+
.turbo/
|
|
24
|
+
.yarn/
|
|
25
|
+
node_modules/
|
package/templates/_gitattributes
DELETED
package/templates/lerna.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
# This script *should be* automatically triggered before each git commit.
|
|
3
|
-
#
|
|
4
|
-
# If it doesn't work, make sure your local git repo is configured to use
|
|
5
|
-
# ./scripts/hooks as the base directory for git hooks.
|
|
6
|
-
#
|
|
7
|
-
# If not, run:
|
|
8
|
-
# $ git config core.hooksPath scripts/hooks
|
|
9
|
-
set -e
|
|
10
|
-
|
|
11
|
-
yarn run aberlaas precommit
|