Skip to content

Commit 80a4135

Browse files
committed
Moved fake-addon modules into the lib directory
package.json will reference the modules in the lib directory
1 parent dd490d6 commit 80a4135

File tree

10 files changed

+33
-2
lines changed

10 files changed

+33
-2
lines changed

.vscode/launch.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Mocha Tests",
11+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
12+
"args": [
13+
"-u",
14+
"tdd",
15+
"--timeout",
16+
"999999",
17+
"--colors",
18+
"${workspaceFolder}/test"
19+
],
20+
"internalConsoleOptions": "openOnSessionStart"
21+
},
22+
{
23+
"type": "node",
24+
"request": "launch",
25+
"name": "Launch Program",
26+
"program": "${workspaceFolder}/serve"
27+
}
28+
]
29+
}

test/package-json-test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,11 @@ describe('generating package.json', function() {
277277
});
278278

279279
function addFastBootDeps(app) {
280+
let pathName = app.path;
281+
280282
return app.editPackageJSON(pkg => {
281-
pkg['devDependencies']['fake-addon'] = '*';
282-
pkg['devDependencies']['fake-addon-2'] = '*';
283+
pkg['devDependencies']['fake-addon'] = `${pathName}/lib/fake-addon`;
284+
pkg['devDependencies']['fake-addon-2'] = `${pathName}/lib/fake-addon-2`;
283285
pkg['fastbootDependencies'] = ["rsvp"];
284286
pkg['dependencies'] = {
285287
rsvp: '3.2.1',

0 commit comments

Comments
 (0)