angular-cli


Generating a barrel when calling ng g component <myName>


Currently if I call ng g component user angular-cli generates
user.component.ts|html|css|spec.ts files inside teh app/user directory as one would expect.
However it doesn't generate a barrel - eg a file called index.ts that contains:
export * from "./user.component"
is there any way I can configure cli to generate barrel files?
That is not available in the angular-cli. The idea of barrels is still present, but less prominent with the introductions of NgModule for code organization.
In the future the CLI will allow for custom blueprints/generation templates which you will able to tweak to your needs.

Related Links

Error during AOT build with angular-cli 24 and Angular 2.4.1
Add importer to node-sass in angular-cli project
angular-cli#1.0.0-beta.23 (2016-12-15) NOT on npm
Angular cli for existing github project
How to pass config data to NgModule so NgModule will be compiled with AOT
Cloning a repo based on Angular CLI
How can I speed up Angular CLI Live Reload - 1-2 minutes per change
Generating a barrel when calling ng g component <myName>
Setting up tether-drop to work with angular-cli#1.0.0-beta.24
Angular CLI (AOT) gives error: ERROR in Cannot determine the module for class
Angular CLI - ng serve won't run unless I specify port
ERROR in Multistyles…Module not Found (Angular-cli.json)
Angular Cli support for inline templates and css
Angular Cli - How do I rebuild my project
How to change angular 2 port from 4200 to any other
Is autoprefixer active in angular-cli beta 19

Categories

HOME
python
tensorflow
semantic-ui
crate
drupal-7
warnings
windows-7
angular2-routing
cpu-architecture
aem
google-sheets-api
hana
apache2
hashicorp-vault
future
pdo
kitematic
nmf
logarithm
geopandas
bus-error
codelite
ab-initio
cortex-m3
ioc-container
clockwork
graph-databases
ifstream
web-audio-api
node-horseman
geomesa
hashcat
oscommerce
color-scheme
xamarin.uitest
concrete5-5.7
fltk
delphi-10.1-berlin
html-agility-pack
rkt
chunked-encoding
persistent
mcrypt
launch
jcreator
teiid
adler32
rxvt
iron.io
restivejs
objloader
alter
vst
audioqueue
nofollow
shipitjs
emokit
proxygen
difference
loose-typing
windows-vista
registrykey
built-in
cpu-cores
jazz
kallithea
suffix-array
proxies
indexing-service
visualstatemanager
localtime
sharpmap
prng
dropdownlistfor
xmlslurper
hibernate3
jquery-selectbox
nintendo
executable-format
ruby-debug
pureftpd
drawtext
j-interop
camtasia
mvvm-foundation

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App