Comments (10)
template support would be great in cordova-cli. I'd also suggest adding them from npm.
from cordova-discuss.
+1 to npm. Should be similar to how we pick up platforms and plugins - from local folder, git, npm or tarball.
from cordova-discuss.
We (Ionic) love the idea and are always on board :)
from cordova-discuss.
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.
+1
from cordova-discuss.
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.
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.
@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.
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.
Closing this one as this has already been implemented.
from cordova-discuss.
Related Issues (20)
- [cordova-create] New logic for setting attributes in package.json & config.xml (§3) HOT 2
- [cordova-create] Fix event delegation (§4) HOT 4
- [cordova-create] Do not copy "missing" files from default template (§5) HOT 1
- [cordova-create] Reduce supported template layouts (§7) HOT 1
- [cordova-create] Drop support for linking (§8) HOT 1
- [cordova-windows] dealing with template/Properties/Default.rd.xml HOT 2
- TEst HOT 1
- Migrate issues to GitHub PLEASE HOT 1
- Where to report plug-in issues? HOT 1
- Breaking changes in cordova-create HOT 9
- Do not assert Apache license on generated projects HOT 1
- Merge cordova-app-hello-world and cordova-template-reference HOT 3
- Archive deprecated repos HOT 2
- Reduce JIRA issue count HOT 3
- Introduce stale bot on GitHub
- cordova-serve release needed from master HOT 8
- Rename "osx" platform in a major release? HOT 4
- JavaScript improvements for a major release
- Cordova coho "tools release" a bit confusing HOT 6
- [cordova-create] Simplify interface of main export (§1) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-discuss.