aberlaas-init 2.14.0 → 2.14.2
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 +1 -4
- package/lib/layouts/__tests__/module.js +17 -1
- package/package.json +4 -4
package/lib/helper.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { glob, readJson, remove, tmpDirectory } from 'firost';
|
|
1
|
+
import { glob, read, readJson, remove, tmpDirectory } from 'firost';
|
|
2
2
|
import helper from 'aberlaas-helper';
|
|
3
3
|
import { nodeVersion, yarnVersion } from 'aberlaas-versions';
|
|
4
4
|
import current from '../module.js';
|
|
@@ -126,5 +126,21 @@ describe('init > module', () => {
|
|
|
126
126
|
'vite.config.js',
|
|
127
127
|
]);
|
|
128
128
|
});
|
|
129
|
+
|
|
130
|
+
it('should write a correct circleCI file', async () => {
|
|
131
|
+
await current.run();
|
|
132
|
+
|
|
133
|
+
const circleciConfig = await read(
|
|
134
|
+
helper.hostPath('.circleci/config.yml'),
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
// Should not contain literal template placeholders
|
|
138
|
+
expect(circleciConfig).not.toContain('{nodeVersion}');
|
|
139
|
+
expect(circleciConfig).not.toContain('{yarnVersion}');
|
|
140
|
+
|
|
141
|
+
// Should contain actual versions
|
|
142
|
+
expect(circleciConfig).toContain(`cimg/node:${nodeVersion}`);
|
|
143
|
+
expect(circleciConfig).toContain(`yarn set version ${yarnVersion}`);
|
|
144
|
+
});
|
|
129
145
|
});
|
|
130
146
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "aberlaas-init",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "aberlaas init command: Setup the repository with all needed config",
|
|
5
|
-
"version": "2.14.
|
|
5
|
+
"version": "2.14.2",
|
|
6
6
|
"repository": "pixelastic/aberlaas",
|
|
7
7
|
"homepage": "https://projects.pixelastic.com/aberlaas/",
|
|
8
8
|
"author": "Tim Carry (@pixelastic)",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"lint:fix": "../../scripts/local/lint-fix"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"aberlaas-helper": "^2.14.
|
|
38
|
+
"aberlaas-helper": "^2.14.1",
|
|
39
39
|
"aberlaas-versions": "^2.14.0",
|
|
40
|
-
"firost": "5.
|
|
40
|
+
"firost": "5.1.0",
|
|
41
41
|
"gilmore": "1.0.0",
|
|
42
42
|
"golgoth": "3.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "254bd7b2315ece4809de5d7a5faf8fada5e5ed66"
|
|
45
45
|
}
|