Created
November 22, 2014 09:57
-
-
Save daserge/4c84e8be8bd958aaeb30 to your computer and use it in GitHub Desktop.
Create cordova project from a template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create project, add platforms and plugin, copy www contents from template, run different platforms: | |
| cdv create test | |
| cd test | |
| cdv platform add windows | |
| cdv platform add wp8 | |
| cdv plugin add "..\cordova-plugin-globalization" | |
| rmdir /s /q www | |
| echo d | xcopy /e /v ..\template\www www | |
| cdv run windows | |
| cdv run wp8 | |
| cdv run windows -- --phone | |
| Reinstall plugin: | |
| cordova plugin rm org.apache.cordova.globalization && cordova plugin add "..\cordova-plugin-globalization" | |
| Re-run platforms: | |
| cordova run windows && cordova run wp8 && cordova run windows -- --phone | |
| cordova create test && cd test && cordova platform add windows && cordova platform add wp8 && cordova plugin add "..\cordova-plugin-globalization" && rmdir /s /q www && echo d | xcopy /e /v ..\template\www www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment