Giter Site home page Giter Site logo

Comments (10)

stevengill avatar stevengill commented on June 1, 2024

template support would be great in cordova-cli. I'd also suggest adding them from npm.

from cordova-discuss.

axemclion avatar axemclion commented on June 1, 2024

+1 to npm. Should be similar to how we pick up platforms and plugins - from local folder, git, npm or tarball.

from cordova-discuss.

mlynch avatar mlynch commented on June 1, 2024

We (Ionic) love the idea and are always on board :)

from cordova-discuss.

mmocny avatar mmocny commented on June 1, 2024

npm idea is interesting, though begs the question of bootstrapping (where does the npm package go? Into global, into local, or into temp?).

For git, I've always thought the process should be git clone && cd && cordova prepare and not cordova create --copy-from git-url.

from cordova-discuss.

cfjedimaster avatar cfjedimaster commented on June 1, 2024

+1

from cordova-discuss.

axemclion avatar axemclion commented on June 1, 2024

I think the idea of npm is to make alternate templates available, just like cordova-app-hello-world.

Today, we pick up the default template as it is a Cordova dependency - maybe we treat the cordova-app-hello-world like platforms and plugins, and place it in the cordova cache.

After the git clone, cordova prepare, you may also have to change your git remote (or use another source control system) - was just hoping to make all of that simpler.

I was hoping we could mirror where templates can be picked up similar to the locations where platforms/plugins can be picked up. Ideally, all "dependency loaders" in cordova should share the same logic.

from cordova-discuss.

cfjedimaster avatar cfjedimaster commented on June 1, 2024

Agreed - while using a npm asset via create is cool, having Cordova "sign
off" on some would be nice for new users. I've been asking for a "blank"
template forever. :) (To be clear, not empty, but blank like Ionic's blank

  • just the core basics.)

On Wed, Apr 29, 2015 at 3:59 PM, Parashuram N [email protected]
wrote:

I think the idea of npm is to make alternate templates available, just
like cordova-app-hello-world
https://www.npmjs.com/package/cordova-app-hello-world.

Today, we pick up the default template as it is a Cordova dependency
https://github.com/apache/cordova-lib/blob/cc596a37d77a92665292a5370d660a898217e0cb/cordova-lib/src/cordova/create.js#L99

  • maybe we treat the cordova-app-hello-world like platforms and plugins,
    and place it in the cordova cache.

After the git clone, cordova prepare, you may also have to change your git
remote (or use another source control system) - was just hoping to make all
of that simpler.

I was hoping we could mirror where templates can be picked up similar to
the locations where platforms/plugins can be picked up. Ideally, all
"dependency loaders" in cordova should share the same logic.


Reply to this email directly or view it on GitHub
#5 (comment)
.

Raymond Camden, Developer Advocate for MobileFirst at IBM

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden

from cordova-discuss.

axemclion avatar axemclion commented on June 1, 2024

@cfjedimaster Not sure what "sign off" by Cordova means ? The templates would be created by folks in the community, and rated/tested by them.
The template signed off by Cordova would be the hello-world-app that we use now. Do we need to sign off and support more ?

from cordova-discuss.

cfjedimaster avatar cfjedimaster commented on June 1, 2024

Oh I was kinda thinking about how Ionic's CLI will mention their templates.
Not really important - just thinking out loud.

On Wed, Apr 29, 2015 at 5:51 PM, Parashuram N [email protected]
wrote:

@cfjedimaster https://github.com/cfjedimaster Not sure what "sign off"
by Cordova means ? The templates would be created by folks in the
community, and rated/tested by them.

The template signed off by Cordova would be the hello-world-app that we
use now. Do we need to sign off and support more ?


Reply to this email directly or view it on GitHub
#5 (comment)
.

Raymond Camden, Developer Advocate for MobileFirst at IBM

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden

from cordova-discuss.

nikhilkh avatar nikhilkh commented on June 1, 2024

Closing this one as this has already been implemented.

from cordova-discuss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.