Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1870

Encapsulate commands for setting up and starting dev environment in NPM

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.1
    • 3.3.0
    • Bower, Gulp, Ionic
    • Hide
      1. Clone the project in a local folder and select the integration branch.
      2. Run this command: npm run-script setup. Check that no errors are thrown. Check that, when it finishes, you have:
        • All the libs installed in www/lib
        • All the plugins installed in plugins
        • Platforms android and ios installed in platforms
        • Build files created in www/build
      3. Now run this command: npm run-script reinstall. Check that it deletes all the folders above and the node_modules folder and it reinstalls everything.
      Show
      Clone the project in a local folder and select the integration branch. git clone https://github.com/moodlehq/moodlemobile2.git MM2-1870 cd MM2-1870 git checkout integration Run this command: npm run-script setup . Check that no errors are thrown. Check that, when it finishes, you have: All the libs installed in www/lib All the plugins installed in plugins Platforms android and ios installed in platforms Build files created in www/build Now run this command: npm run-script reinstall . Check that it deletes all the folders above and the node_modules folder and it reinstalls everything.
    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • Moodle Mobile 3.3.0

    Description

      NPM allows encapsulating commands through the scripts element in project.json. Currently, developers have to execute many commands in a specific sequence in order to set up and start the project.

      By for example typing `npm setup` would run npm install, ionic state restore, bower, etc. in order to pull down the required dependencies and set up the dev environment. This issue involves enabling the following commands through NPM:

      • npm start: Starts hosting the application through ionic serve and starts the gulp watch task
      • npm setup: Sets up the development environment and pulls down the dev dependencies
      • npm reinstall: Cleans node_modules, bower packages, platform directory and runs npm setup

      Attachments

        Issue Links

          Activity

            People

              dpalou Dani Palou
              martinmine Martin Storø Nyfløtt
              Pau Ferrer Pau Ferrer
              Juan Leyva Juan Leyva
              Pau Ferrer Pau Ferrer
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                26/May/17