Skip to content
Permalink
Browse files
Update CLI-Templates.md
  • Loading branch information
csantanapr committed Nov 13, 2015
1 parent 1c07f49 commit 33de3b1de38ea2a53857f51a3248785368f16364
Showing 1 changed file with 9 additions and 3 deletions.
@@ -10,12 +10,18 @@ This proposal is to update the Cordova CLI to support the argument --template fo
- GIT ULR is a git url, similar format as adding platforms and plugins via Git
- Local Path, is a local directory

- This will allow to specify the IBM NPM Cordova Template like $cordova create myApp --template=cordova-template-mfp or $cordova create myApp --template=cordova-template-mfp@1.0.0
- This will allow to specify the IBM NPM Cordova Template like $cordova create myApp --template=cordova-app-hello-world or $cordova create myApp --template=cordova-app-hello-world@3.9.x

--template is a bit different from --copy-from, it copies everything from the template including hooks, res, config.xml, hooks, dot files (.gitignore) (it will also copy plugins and platforms but this is not recommended since templates should be small, and platforms and plugins can be specified in config.xml)

--copy-from will just be an alias to --template
--copy-from will mark deprecated and later removed

If user pass any of the optional arguments for the app ID, NAME it will put those values in config.xml even if the template contains a config.xml

--template is different from --copy-from, it copies everything from the template including hooks, res, config.xml, hooks, dot files (.gitignore) except plugins and platforms, templates should not have this folder but if they do they get ignored and not copy
if the template is missing certain files or directories it get's default ones here is the list:
config.xml a default one is created from cordoba-app-hello-world
hooks, the default hooks with readme is created
hooks/, the default hooks with readme is created
www/, is missing the default is created from cordoba-app-hello-world

### References:

0 comments on commit 33de3b1

Please sign in to comment.