Skip to content

Instantly share code, notes, and snippets.

@daserge
Created November 22, 2014 09:57
Show Gist options
  • Select an option

  • Save daserge/4c84e8be8bd958aaeb30 to your computer and use it in GitHub Desktop.

Select an option

Save daserge/4c84e8be8bd958aaeb30 to your computer and use it in GitHub Desktop.
Create cordova project from a template
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