File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ The installation of 3rd party libraries are well described at our [Wiki Page](ht
240
240
This project is currently a prototype so there are many known issues. Just to mention a few:
241
241
242
242
- All blueprints/scaffolds are in TypeScript only, in the future blueprints in all dialects officially supported by Angular will be available.
243
- - On Windows you need to run the ` build ` and ` serve ` commands with Admin permissions.
243
+ - On Windows you need to run the ` build ` and ` serve ` commands with Admin permissions, otherwise the performance is not good .
244
244
- The initial installation as well as ` ng new ` take too long because of lots of npm dependencies.
245
245
- Many existing ember addons are not compatible with Angular apps built via angular-cli.
246
246
- When you ` ng serve ` remember that the generated project has dependencies that require ** Node 4 or greater** .
Original file line number Diff line number Diff line change @@ -78,7 +78,12 @@ class BroccoliTypeScriptCompiler extends Plugin {
78
78
this . _fileRegistry [ tsFilePath ] . outputs . forEach ( absoluteFilePath => {
79
79
const outputFilePath = absoluteFilePath . replace ( this . cachePath , this . outputPath ) ;
80
80
fse . mkdirsSync ( path . dirname ( outputFilePath ) ) ;
81
- fs . symlinkSync ( absoluteFilePath , outputFilePath ) ;
81
+ try {
82
+ fs . symlinkSync ( absoluteFilePath , outputFilePath ) ;
83
+ } catch ( e ) {
84
+ const conentStr = fs . readFileSync ( absoluteFilePath ) ;
85
+ fs . writeFileSync ( outputFilePath , conentStr ) ;
86
+ }
82
87
} ) ;
83
88
} else {
84
89
this . _fileRegistry [ tsFilePath ] . version = entry . mtime ;
@@ -203,7 +208,12 @@ class BroccoliTypeScriptCompiler extends Plugin {
203
208
fs . writeFileSync ( absoluteFilePath , content , FS_OPTS ) ;
204
209
205
210
fse . mkdirsSync ( path . dirname ( outputFilePath ) ) ;
206
- fs . symlinkSync ( absoluteFilePath , outputFilePath ) ;
211
+ try {
212
+ fs . symlinkSync ( absoluteFilePath , outputFilePath ) ;
213
+ } catch ( e ) {
214
+ const conentStr = fs . readFileSync ( absoluteFilePath ) ;
215
+ fs . writeFileSync ( outputFilePath , conentStr ) ;
216
+ }
207
217
}
208
218
209
219
_addNewFileEntry ( entry , checkDuplicates /* = true */ ) {
You can’t perform that action at this time.
0 commit comments