Guest User

Untitled

a guest
Jun 22nd, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. -- last stable version
  2.  
  3. npm install -g ionic@rc
  4.  
  5. git config --global --list
  6.  
  7. ionic --help
  8.  
  9. ionic help
  10.  
  11. ionic login
  12. ionic logout
  13.  
  14. md \ionic
  15. cd \ionic
  16.  
  17. ionic start {Entrer}
  18. ? Project name my-first-app
  19.  
  20. ? Install the free Ionic Pro SDK and connect your app ?
  21. > npm i --save -E @ionic/pro
  22.  
  23. ? Please enter a name for your new app : MyFirstApp
  24. ? Host Github or Ionic pro
  25.  
  26. SSH
  27. >ionic config set pro_id "xxxxxx" -json
  28.  
  29. >ionic git remote
  30. >git remote add ionic git@git.ionicjs.cod:mmoisei/myfirstapp.get
  31. >git add -A
  32. >git commit -m "Initial commit" --no-gpg-sign
  33.  
  34. // Example
  35. npm install -E rxjs
  36.  
  37. ionic serve
  38.  
  39. Stop
  40. Ctrl+c
  41.  
  42. ionic start --help
  43. ionic start --list
  44. --nogit --nolink
  45.  
  46. ionic start arhiblank blank --nogit --nolink
  47.  
  48. npm install
  49.  
  50. ionic serve --address 192.168.12.222 --port 24601
  51.  
  52. ionic serve --address 192.168.12.222 --port 24601 --noopen
  53.  
  54. Ionic DevApp
  55. Drifty
  56.  
  57. ionic generate --list
  58.  
  59. use --export always
  60.  
  61. git init
  62.  
  63. // staging the commit
  64. git add .
  65.  
  66. git commit -m "Initial commit"
  67. ionic g pg Plan --flat --styleext=css --spec=false --route-path=plan --dry-run --prefix=cont
  68.  
  69. In VS code (control source) M-modified file U-untracked file(new)
  70. click on M - and seen changes
  71.  
  72. ionic g i IWord
  73. ionic g s Word --spec false --flat false
  74. ionic g c randomWord --inline-style --inline-template --dry-run
  75. ionic g c randomWord --inline-style --inline-template --export
  76.  
  77. npx ng doc component
  78.  
  79. npx ng doc -s component
  80.  
  81. npx ng lint
  82. click on error to modify
  83.  
  84. // run all test
  85. npx ng test
  86.  
  87. // test
  88. npx ng e2e
  89.  
  90.  
  91. // script name xxxx can be
  92.  
  93. prexxxx
  94. xxxx
  95. postscript
  96.  
  97. Ex:
  98. "pretest" : "npm run lint",
  99. "test":"ng test"
  100. Ex:
  101. "prestart": "npm run lint",
  102. "start":"ionic serve --no-open",
  103.  
  104. On Windows use
  105. npm install -D npm-run-all
  106.  
  107. then use
  108. run-s = run sequential
  109. run-p = run parallel
  110.  
  111. "alltest": 'run-s test e2e'
  112.  
  113. ionic doctor check
  114.  
  115. then if find something
  116.  
  117. ionic doctor treat
  118.  
  119.  
  120. ionic config get pro_id
  121. ionc confog get npmClient --global
Add Comment
Please, Sign In to add comment