Skip to content

Commit 5be71ef

Browse files
committed
.
1 parent 2beb41d commit 5be71ef

File tree

4 files changed

+1
-30
lines changed

4 files changed

+1
-30
lines changed

src/lib/module.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/lib/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
"target": "es5",
1616
"inlineSources": true,
1717
"stripInternal": true,
18-
"baseUrl": "",
19-
"paths": {
20-
},
2118
"typeRoots": [
2219
"../../node_modules/@types"
2320
],

src/lib/typings.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare const module: {id: string};

tools/gulp/tasks/components.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,6 @@ const rollup = require('rollup').rollup;
1212
const componentsDir = path.join(SOURCE_ROOT, 'lib');
1313

1414

15-
function camelCase(str: string) {
16-
return str.replace(/-(\w)/g, (_: any, letter: string) => {
17-
return letter.toUpperCase();
18-
})
19-
}
20-
21-
22-
class ResourceInliner {
23-
constructor() {}
24-
get name() { return 'resource-inliner'; }
25-
26-
transform(source: string, id: any) {
27-
const code = inlineResources.inlineResourcesFromString(source, (url: string) => {
28-
let dir = path.dirname(id);
29-
if (url.endsWith('.html')) {
30-
dir = dir.replace(/^.*\/@angular\/material/, path.join(__dirname, '../../../src/lib'));
31-
}
32-
return path.join(dir, url);
33-
});
34-
const map = JSON.parse(readFileSync(`${id}.map`, 'utf8'));
35-
36-
return {code, map};
37-
}
38-
}
39-
40-
4115
task(':watch:components', () => {
4216
watch(path.join(componentsDir, '**/*.ts'), [':build:components:ts']);
4317
watch(path.join(componentsDir, '**/*.scss'), [':build:components:scss']);

0 commit comments

Comments
 (0)