Would be awesome to have a .gitignore file added. The CLI creates a big structure, and I am not sure what should be in git or not, particularly after I built a bunch of stuff.
This is really awesome! especially for us Designer there need to go into dev
I quick question, that the CLI doesnt answer for me:
Is it right that if you wanna work with FW7 + Cordova, you need to install them in two different folder and then merge your FW7 www into the cordova project?
Really dont get the logic of the workflow. I thought the CLI would merge them together but no luck, they overwrite. And when i follow the docs i get:
“Looks like cordova project is not set up”
Yeah, also check readme file in created project folder, it should explain some things. But in overall, you shouldn’t touch Cordova/www folder and work only with src folder (if you have bundler) or root www folder (if you haven’t). And when you run Cordova related scripts it should automatically put correct content into Cordova/www
Подскажите, правильно ли я понимаю оптимальный режим работы с CLI при использовании Cordova (возможно еще кому-то понадобиться):
Весь исходный код мы кладем в src
Для запуска локального сервера нужно выполнить npm start, раньше было npm run dev. Система следит за изменениями файлов и автоматически обновляет страницу. Это очень удобный способ разработки.
Кода нам нужно сделать сборку в один файл мы выполняем npm run build-prod или npm run build-dev Данные команды делают один app.js, который содержит в себе все страницы. Собирать в один файл нужно для веб (так будет гораздо быстрее и удобнее) и для Cordova. Если мы используем современный WKWebView, то стандартный плагин Cordova не умеет загружать локальные файлы, нужно использовать плагин от Ionic или компилировать все в один файл. Разница между двумя командами в том, что последняя не минифицирует и не оптимизирует код, т.е. запуск происходит быстрее.
Для создание приложений на ios и android используются две команды npm run build-cordova-dev и npm run build-cordova-prod Разница между ними такая же, как и написано выше. Есть также еще четыре команды, которые могут делать сборку конкретно для ios или android.
Даже если у нас стоит Android Studio, нам нужно все равно установить отдельно Grandle.
При создании приложения на ios, создается проект для Xcode, которые можно открыть из самого Xcode и сделать сборку. Также создается файл *.app Как здесь поступить оптимальнее для тестирования в симуляторе и создание подписанных приложений?
При создании приложения для Android, создается *.apk, которые можно запустить на эмуляторе. Также вопрос, как оптимальнее запустить в эмуляторе и как удобнее делать подписанные сборки?
I’ll answer in English as it maybe useful for others.
Actually CLI installs other WKWebView plugin if Webpack is NOT selected - cordova-plugin-wkwebview-file-xhr assuming you don’t need local requests in this case. Probably it should be installed anyway, will revise it. And i personally prefer this plugin over Ionic’s one as this cordova-plugin-wkwebview-file-xhr plugin doesn’t use so many hacks and virtual server like in Ionic’s plugin.
I am not sure (don’t remember) here. I thing when we install Android studio, it also installs Gradle, no?
I believe you can launch simulator and run app on it with just a single command cordova run ios --emulator command.
For iOS apps signing, i always use XCode directly, it manages all code signing automatically.
Если выполнить так: framework7 cordova plugin add https://github.com/iRapoo/cordova-vk-auth --variable VK_APP_ID=6972823
То будет ошибка: error: unknown option–variable’`
Чтобы установить плагин, нужно перейти в папку cordova и выполнить то, что и указано в инструкции: cordova plugin add https://github.com/iRapoo/cordova-vk-auth --variable VK_APP_ID=1234567