Skip to content

Commit de98a64

Browse files
authored
chore: remove systemjs (#1376)
1 parent 18318a2 commit de98a64

File tree

6 files changed

+1
-143
lines changed

6 files changed

+1
-143
lines changed

addon/ng2/blueprints/component/index.js

+1-14
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,7 @@ module.exports = {
115115
}
116116

117117
if (!options.flat) {
118-
var filePath = path.join(this.project.ngConfig.defaults.sourceDir, 'system-config.ts');
119-
var barrelUrl = this.appDir.replace(/\\/g, '/');
120-
if (barrelUrl[0] === '/') {
121-
barrelUrl = barrelUrl.substr(1);
122-
}
123-
124-
return addBarrelRegistration(this, this.generatePath)
125-
.then(() => {
126-
return this.insertIntoFile(
127-
filePath,
128-
` '${barrelUrl}',`,
129-
{ before: ' /** @cli-barrel */' }
130-
);
131-
});
118+
return addBarrelRegistration(this, this.generatePath);
132119
} else {
133120
return addBarrelRegistration(
134121
this,

addon/ng2/blueprints/ng2/files/__path__/system-config.ts

-60
This file was deleted.

addon/ng2/blueprints/ng2/files/config/karma-test-shim.js

-56
This file was deleted.

addon/ng2/blueprints/ng2/files/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@angular/router": "3.0.0-beta.2",
2424
"core-js": "^2.4.0",
2525
"rxjs": "5.0.0-beta.6",
26-
"systemjs": "0.19.26",
2726
"ts-helpers": "^1.1.1",
2827
"zone.js": "0.6.12"
2928
},

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"stylus": "^0.54.5",
9090
"stylus-loader": "^2.1.0",
9191
"symlink-or-copy": "^1.0.3",
92-
"systemjs-builder": "0.15.17",
9392
"ts-helpers": "^1.1.1",
9493
"ts-loader": "^0.8.2",
9594
"tslint": "^3.11.0",

tests/acceptance/generate-component.spec.js

-11
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,4 @@ describe('Acceptance: ng generate component', function () {
178178
expect(existsSync(testPath)).to.equal(false);
179179
});
180180
});
181-
182-
it('ng generate component my-comp --dry-run does not register a barrel in system-config.ts', () => {
183-
var configPath = path.join(root, 'tmp', 'foo', 'src', 'system-config.ts');
184-
var unmodifiedFile = fs.readFileSync(configPath, 'utf8');
185-
186-
return ng(['generate', 'component', 'my-comp', '--dry-run']).then(() => {
187-
var afterGenerateFile = fs.readFileSync(configPath, 'utf8');
188-
189-
expect(afterGenerateFile).to.equal(unmodifiedFile);
190-
});
191-
});
192181
});

0 commit comments

Comments
 (0)