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.
Files changed (79) hide show
  1. package/lib/helper.js +150 -119
  2. package/lib/layouts/__tests__/libdocs.js +55 -58
  3. package/lib/layouts/__tests__/module.js +22 -20
  4. package/lib/layouts/__tests__/monorepo.js +54 -62
  5. package/lib/layouts/libdocs.js +73 -68
  6. package/lib/layouts/module.js +33 -22
  7. package/lib/layouts/monorepo.js +75 -74
  8. package/lib/main.js +59 -43
  9. package/package.json +19 -21
  10. package/templates/_README.template.md +5 -0
  11. package/templates/_editorconfig +8 -0
  12. package/templates/_gitignore +11 -19
  13. package/templates/scripts/build +4 -0
  14. package/templates/scripts/build-prod +4 -0
  15. package/templates/scripts/ci +4 -0
  16. package/templates/scripts/cms +4 -0
  17. package/templates/scripts/compress +4 -0
  18. package/templates/scripts/{__module/hooks → hooks}/pre-commit +1 -1
  19. package/templates/scripts/lint +4 -0
  20. package/templates/scripts/lint-fix +4 -0
  21. package/templates/scripts/release +4 -0
  22. package/templates/scripts/serve +4 -0
  23. package/templates/scripts/test +4 -0
  24. package/templates/scripts/test-watch +4 -0
  25. package/templates/_gitattributes +0 -4
  26. package/templates/lerna.json +0 -6
  27. package/templates/scripts/__libdocs/hooks/pre-commit +0 -11
  28. package/templates/scripts/__libdocs/local/build +0 -5
  29. package/templates/scripts/__libdocs/local/build-prod +0 -5
  30. package/templates/scripts/__libdocs/local/ci +0 -5
  31. package/templates/scripts/__libdocs/local/cms +0 -4
  32. package/templates/scripts/__libdocs/local/compress +0 -5
  33. package/templates/scripts/__libdocs/local/lint +0 -5
  34. package/templates/scripts/__libdocs/local/lint-fix +0 -5
  35. package/templates/scripts/__libdocs/local/release +0 -5
  36. package/templates/scripts/__libdocs/local/serve +0 -5
  37. package/templates/scripts/__libdocs/local/test +0 -5
  38. package/templates/scripts/__libdocs/local/test-watch +0 -6
  39. package/templates/scripts/__libdocs/meta/build +0 -4
  40. package/templates/scripts/__libdocs/meta/build-prod +0 -4
  41. package/templates/scripts/__libdocs/meta/ci +0 -4
  42. package/templates/scripts/__libdocs/meta/cms +0 -4
  43. package/templates/scripts/__libdocs/meta/compress +0 -4
  44. package/templates/scripts/__libdocs/meta/lint +0 -4
  45. package/templates/scripts/__libdocs/meta/lint-fix +0 -4
  46. package/templates/scripts/__libdocs/meta/release +0 -5
  47. package/templates/scripts/__libdocs/meta/serve +0 -4
  48. package/templates/scripts/__libdocs/meta/test +0 -4
  49. package/templates/scripts/__libdocs/meta/test-watch +0 -4
  50. package/templates/scripts/__module/ci +0 -6
  51. package/templates/scripts/__module/compress +0 -4
  52. package/templates/scripts/__module/lint +0 -4
  53. package/templates/scripts/__module/lint-fix +0 -4
  54. package/templates/scripts/__module/release +0 -4
  55. package/templates/scripts/__module/test +0 -5
  56. package/templates/scripts/__module/test-watch +0 -5
  57. package/templates/scripts/__monorepo/hooks/pre-commit +0 -11
  58. package/templates/scripts/__monorepo/local/build +0 -5
  59. package/templates/scripts/__monorepo/local/build-prod +0 -5
  60. package/templates/scripts/__monorepo/local/ci +0 -5
  61. package/templates/scripts/__monorepo/local/cms +0 -5
  62. package/templates/scripts/__monorepo/local/compress +0 -5
  63. package/templates/scripts/__monorepo/local/lint +0 -5
  64. package/templates/scripts/__monorepo/local/lint-fix +0 -5
  65. package/templates/scripts/__monorepo/local/release +0 -5
  66. package/templates/scripts/__monorepo/local/serve +0 -5
  67. package/templates/scripts/__monorepo/local/test +0 -5
  68. package/templates/scripts/__monorepo/local/test-watch +0 -6
  69. package/templates/scripts/__monorepo/meta/build +0 -4
  70. package/templates/scripts/__monorepo/meta/build-prod +0 -4
  71. package/templates/scripts/__monorepo/meta/ci +0 -4
  72. package/templates/scripts/__monorepo/meta/cms +0 -4
  73. package/templates/scripts/__monorepo/meta/compress +0 -4
  74. package/templates/scripts/__monorepo/meta/lint +0 -4
  75. package/templates/scripts/__monorepo/meta/lint-fix +0 -4
  76. package/templates/scripts/__monorepo/meta/release +0 -5
  77. package/templates/scripts/__monorepo/meta/serve +0 -4
  78. package/templates/scripts/__monorepo/meta/test +0 -4
  79. package/templates/scripts/__monorepo/meta/test-watch +0 -4
@@ -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 initHelper from '../helper.js';
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 = this.__getAberlaasVersion();
21
- const sharedProjectData = await this.getSharedProjectData();
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/meta/build',
57
- 'build:prod': './scripts/meta/build-prod',
58
- cms: './scripts/meta/cms',
59
- serve: './scripts/meta/serve',
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/meta/release',
63
- test: './scripts/meta/test',
64
- 'test:watch': './scripts/meta/test-watch',
65
- ci: './scripts/meta/ci',
66
- compress: './scripts/meta/compress',
67
- lint: './scripts/meta/lint',
68
- 'lint:fix': './scripts/meta/lint-fix',
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, helper.hostPath('./package.json'), {
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 this.getSharedProjectData();
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
- helper.hostPath('./modules/docs/package.json'),
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 this.getSharedProjectData();
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
- packageContent,
166
- helper.hostPath('./modules/lib/package.json'),
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 initHelper.addLicenseFile('LICENSE');
200
+ await addLicenseFile('LICENSE');
178
201
  // One in ./lib to be released with the module
179
- await initHelper.addLicenseFile('modules/lib/LICENSE');
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 this.__getProjectName();
196
- const author = await this.__getProjectAuthor();
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: '../../scripts/local/build',
202
- 'build:prod': '../../scripts/local/build-prod',
203
- cms: '../../scripts/local/cms',
204
- serve: '../../scripts/local/serve',
205
- ci: '../../scripts/local/ci',
206
- release: '../../scripts/local/release',
207
- test: '../../scripts/local/test',
208
- 'test:watch': '../../scripts/local/test-watch',
209
- compress: '../../scripts/local/compress',
210
- lint: '../../scripts/local/lint',
211
- 'lint:fix': '../../scripts/local/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
- * Scaffold a repo:
224
- * - As a monorepo
225
- * - With ./libs and ./docs subfolders
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 { consoleInfo, firostError, run, spinner, write } from 'firost';
2
-
3
- import Gilmore from 'gilmore';
4
- import helper from 'aberlaas-helper';
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 moduleLayout from './layouts/module.js';
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 default {
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(helper.hostRoot());
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 = helper.hostPath('.nvmrc');
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 run('yarn install');
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 specific both --monorepo and --libdocs",
77
+ "You can't specify both --monorepo and --libdocs",
41
78
  );
42
79
  }
43
80
 
44
81
  if (args.monorepo) {
45
- return this.__monorepoLayout();
82
+ return __.monorepoLayout();
46
83
  }
47
84
  if (args.libdocs) {
48
- return this.__libdocsLayout();
85
+ return __.libdocsLayout();
49
86
  }
50
- return this.__moduleLayout();
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
- __moduleLayout() {
91
+ moduleLayout() {
82
92
  return moduleLayout;
83
93
  },
84
- __libdocsLayout() {
94
+ libdocsLayout() {
85
95
  return libdocsLayout;
86
96
  },
87
- __monorepoLayout() {
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.18.1",
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": "^2.18.1",
39
- "aberlaas-versions": "^2.15.0",
40
- "firost": "5.2.1",
41
- "gilmore": "1.0.0",
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
- "gitHead": "00b60dcf9aebab442a809ccc81942005d87d1b5c"
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
  }
@@ -0,0 +1,5 @@
1
+ ---
2
+ outputs:
3
+ - lib/README.md
4
+ ---
5
+ {file:README.md}
@@ -0,0 +1,8 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ indent_size = 2
7
+ indent_style = space
8
+ insert_final_newline = true
@@ -1,33 +1,25 @@
1
- # Hidden files
2
- .DS_Store
1
+ # Important files that should not be committed
2
+ .npmrc
3
3
  .envrc
4
4
 
5
- # Directories
5
+ # Build directories
6
6
  build/
7
7
  dist/
8
- node_modules/
9
8
  tmp/
10
9
 
11
- # Files
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
- # Yarn
19
- # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
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/
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: This should build the docs/"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: This should build the docs/ for production"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ ./node_modules/.bin/aberlaas ci "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: This should start the docs/ CMS"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ node_modules/.bin/aberlaas compress "$@"
@@ -8,4 +8,4 @@
8
8
  # $ git config core.hooksPath scripts/hooks
9
9
  set -e
10
10
 
11
- yarn run aberlaas precommit
11
+ ./node_modules/.bin/aberlaas precommit
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ node_modules/.bin/aberlaas lint "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ node_modules/.bin/aberlaas lint --fix "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ node_modules/.bin/aberlaas release "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: This should serve the docs/ locally"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ node_modules/.bin/aberlaas test "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ node_modules/.bin/aberlaas test --watch "$@"
@@ -1,4 +0,0 @@
1
- /.yarn/** linguist-vendored
2
- /.yarn/releases/* binary
3
- /.yarn/plugins/**/* binary
4
- /.pnp.* binary linguist-generated
@@ -1,6 +0,0 @@
1
- {
2
- "version": "0.0.1",
3
- "useWorkspaces": true,
4
- "packages": ["lib", "docs"],
5
- "npmClient": "yarn"
6
- }
@@ -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
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/build "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/build-prod "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/ci "$@"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- echo "TODO: Should load the CMS UI"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/compress "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/lint "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/lint-fix "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/release "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/serve "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ..
5
- ./scripts/meta/test "$@"