I just tested it in Windows. See below the errors:
npm install -g cordova
OK. No errors
npm install -g framework7-cli@beta
OK. No errors
framework7 create
√ Installing NPM Dev Dependencies \ Creating Cordova project (Please wait, it can take a while)(node:12024) UnhandledPromiseRejectionWarning: TypeError: l.trimStart is not a function
_ at str.split.map (C:\Users\super\AppData\Roaming\npm\node_modules\framework7-cli\create-app\utils\indent.js:19:53)_
_ at Array.map ()_ / Creating Cordova project (Please wait, it can take a while)
.js:4:10)
_ at Promise (C:\Users\super\AppData\Roaming\npm\node_modules\framework7-cli\create-app\templates\create-cordova.js:39:68)_
_ at _
_ at process.tickCallback (internal/process/next_tick.js:188:7)
_ an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)_
_ are not handled will terminate the Node.js process with a non-zero exit code._
framework7 create --ui
Framework7 CLI UI is running on http://localhost:3001 (CTRL + C to exit) (node:8332) UnhandledPromiseRejectionWarning: TypeError: l.trimStart is not a function
_ at str.split.map (C:\Users\super\AppData\Roaming\npm\node_modules\framework7-cli\create-app\utils\indent.js:19:53)_
_ at Array.map ()_
_ at module.exports (C:\Users\super\AppData\Roaming\npm\node_modules\framework7-cli\create-app\utils\indent.js:15:6)_
_ at module.exports (C:\Users\super\AppData\Roaming\npm\node_modules\framework7-cli\create-app\templates\generate-config-xml.js:4:10)_
_ at Promise (C:\Users\super\AppData\Roaming\npm\node_modules\framework7-cli\create-app\templates\create-cordova.js:39:68)_
_ at _
_ at process.tickCallback (internal/process/next_tick.js:188:7) (node:8332) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:8332) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I really want that function. It is a bit annoying if you use webpack to have to program the interface and not be able to test it with the plugins that your application needs. I think it’s a good thing
In latest 2.0.0-beta.8 it is also possible to generate assets (Icons and Splashscreen):
Generate assets
In created project there is an assets-src directory. It contains required icons and splash screens source images. To generate your own icons and splash screen images, you will need to replace all assets in this directory with your own images (pay attention to image size and format), and run the following command in the project directory:
$ framework7 generate-assets
That is all, script will generate all required sizes of icons and splash screens and place them automatically where they need to be.
Only one benefit. Cordova app project will be created here in subfolder and to call cordova commands you will need to cd into that folder and back for other scripts. f7 cli takes care about it and automatically cd-ing into required folder
Using framework7 create (with --UI fails with localhost error).
seems to work until near the end when this error:
Error creating Cordova project
Path already exists and is not empty: /Users/Jeff/Box/cordova
This is odd because I created the test project in /Users/Jeff/Box Sync/iPhone/PG5/Test
after the error message the created folders are all empty.
Hope this helps…
It results in repeated initialization of cordova-app.js
It causes repeated initialization of cordova – app.js, so that the backbutton event cannot be used normally. After commenting one of the initialization codes, it works normally
No, the project folder was empty (I created it just to test) and is in a different place - I suspect it may be that something in F7 does not accept folder names with a space inside; so, my actual location of /Users/Jeff/Box Sync/iPhone/PG5/Test was interpreted as /Users/Jeff/Box because of the space (between Box and Sync)???
Will try another folder without a space in the name tomorrow and report back…