angular-cli


Angular cli for existing github project


I'm new to Angular 2 CLI. As per tutorial, there is command provided called. "ng create ". my scenario is creating project in existing directory.
it throw error like below
Directory 'angular-basic' already exists.
Try ng init will create project inside your existing directory then do ng serve.
ng init <project-name> [options]
Creates a new Angular project in the current folder.
Options:
--dry-run only output the files created and operations performed, do
not actually create the project.
Alias: 'd'.
--verbose output more information.
Alias: 'v'.
--skip-npm do not run any npm command once the project is created.
--name The name of the project to create.
For New Angular 2.x Project
ng new foo
cd foo
npm link angular-cli
ng serve
Refer:
https://cli.angular.io/reference.pdf
Since the ng init command is removed from the CLI commands what you can do is specify the directory. You might have to do some overwrites and modifications by yourself for some of the existing files.
You can pull it off with
ng new [app_name] --directory=directory_path_from_wherever_command_goes]
Example assume that your terminal is opened in angular-basic directory and you have to add the cli to angular-basic project, ng new angular-basic --directory ./../angular-basic would do better.

Related Links

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
Access to -aot parameter in code
Missing peer dependencies after installing latest angular-cli: What to do?
angular-cli ng serve : Error: No errors
Getting error after Angular cli update
Does angular-cli uses rollup to do ahead-of-time compilation and adding all into one file?
Angular CLI install error
Using glob for assets in angular-cli throws error
Importing Global SCSS into Component SCSS with Angular-CLI
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

Categories

HOME
vb6
jasmine
rfc
triggers
pygame
i2c
ng-admin
desktop
netflix-feign
deeplearning4j
pjsip
cockroachdb
wordpress-theming
symfony2-easyadmin
glpk
spring-cloud-config
ng-show
nsmenuitem
richfaces
memsql
csh
samsung-mobile
net-snmp
guile
image-quality
pentaho-report-designer
system.data.sqlite
google-api-dotnet-client
pygooglechart
lmdb
piecewise
fractals
canvasjs
rhino
broadleaf-commerce
sonarqube-scan
soundjs
wcf-security
distributed-transactions
fqdn
web-deployment-project
jenkins-jira-trigger
rollback
chrome-remote-desktop
photon-controller
qos
android-navigationview
mailcatcher
tomcat5
jackson-databind
supportmapfragment
axes
asp.net-mvc-2
approval-tests
galaxy
servlet-3.0
self-hosting
apigee-baas
anti-patterns
webhdfs
base32
urn
digits
findcontrol
robocode
sysfs
omnifocus
sid
emma
bsp
smartystreets
magic-numbers
circos
bfd
fogbugz-api
ng-pattern
redirectstandardoutput
caliper
signals2
nsindexpath
newsstand-kit
paintcomponent
pivotal-crm
audiostreamer
loadui
sitemappath
boost-date-time
windows-controls
winsnmp
configurable
standardized
self-reference

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