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

Angular CLI (ng) use single instead of double quotes
can't install angular cli on ubuntu 16.04
How to solve No 'Access-Control-Allow-Origin' header is present on the requested resource with angular 2 service written with angular-cli?
Usage of watch parameter in eject command of Angular CLI
Serving and testing a bundle after ng build
routerLink stopped working in #angular/cli
How to run Angularcli project with https
what is npm i bootstrap#next?
Angular-Cli Best way to manage notices
Puzzling angular-cli AOT error
Create Project with Angular 4 Release using angularcli
addons removed in angular-cli.json whats the replacement
angular-cli: ng serve command with config error
Augury Angular-cli When I installed the augury .Error is as follows
Teamcity for building Angular cli app
angular cli update issue on local folder

Categories

HOME
xbox-live
plsql
ssas-2012
pug
admin-on-rest
mql4
project-management
memory-leaks
playframework
recyclerview
hyperledger-fabric
filter
tizen-wearable-sdk
bro
proguard
currency
getorgchart
x11
store
alfresco-share
ng2-dragula
tortoisegit
scalaz7
epicor
piwik
extractor
npm-install
badge
croppic
rhmap
mayavi
dpi
pcre
referenceerror
backup-strategies
shapes
hawtio
qtablewidget
node-horseman
von-neumann
matlab-cvst
bids
double-buffering
decompress
tcserver
unity3d-editor
polar-coordinates
rstudio-server
json-schema-validator
spatial-query
picking
financial
fortran90
git-rebase
license-key
zuora
site-prism
jericho-html-parser
prezto
leadtools-sdk
findcontrol
es2015
pl-i
jcr-sql2
inputaccessoryview
qtestlib
and-operator
sortable
sthttprequest
adaptive-compression
joox
chrome-for-android
document-database
jqmobi
gridworld
fluidsynth
sametime
transitive-closure-table
cgpath
mozart-mvc
moq-3
radchart
icefaces-3
caliper
gjs
applicationcontext
visual-web-gui
maven-ant-tasks
hobo
selectonemenu
webkit-transform
curljs
easygui
cookieless
boost-date-time
kpi
lazy-c++

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