File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -12,32 +12,6 @@ const rollup = require('rollup').rollup;
1212const 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 ( / ^ .* \/ @ a n g u l a r \/ m a t e r i a l / , 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-
4115task ( ':watch:components' , ( ) => {
4216 watch ( path . join ( componentsDir , '**/*.ts' ) , [ ':build:components:ts' ] ) ;
4317 watch ( path . join ( componentsDir , '**/*.scss' ) , [ ':build:components:scss' ] ) ;
You can’t perform that action at this time.
0 commit comments