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

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
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)

Categories

HOME
crate
angular-cli
boost-thread
translation
fparsec
concourse
csvhelper
couchdb-2.0
defragmentation
tumblr
xcode8.3
google-spreadsheet-api
cortex-a
intellij-plugin
informatica-powercenter
jacoco
uicollectionview
mule-studio
redux-observable
thumbnails
ng2-dragula
sonarqube-msbuild-runner
avplayeritem
azure-servicebus-queues
searchbar
csh
tampermonkey
codelite
getjson
receipt
body-parser
pmwiki
swagger-editor
socketpair
meta-raspberrypi
freetts
deepstream.io
soundjs
android-preferences
cgo
fastq
facebook-chatbot
python-idle
double-buffering
range-v3
data-integration
broadcast
greenhills
butterknife
emgu
pdfkit
manifest.mf
activeweb
handlebars.java
git-rebase
acm
asymptote
android-viewholder
paypal-nvp
viper-architecture
adobe-indesign
orientation-changes
django-1.6
symfony-2.6
jquery-autocomplete
ultrawingrid
em
libssh2
level
lumx
opendata
installshield-2011
nimrod
ruboto
sharpmap
resgen
magickwand
fieldset
wpdb
returnurl
moq-3
blockingqueue
wcf-web-api
responsetext
isolatedstorage
msgbox
nsindexpath
associative
drawtext
google-instant
lazy-c++
writing

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