Skip to content

Grunt Task issues when running locally.  #5

@sandyrayblr

Description

@sandyrayblr

The issue with git clone of openshift instance running locally. The server runs fine. Once I add couple of additional angular modules and update assets.json, I try to build for production using grunt, I encounter errors. I am simply setting the ENV variable to production and running grunt. Perhaps there is a better way. See details of the problem below

Problem with running grunt for default task. It applies to both cssmin and uglify. I have installed load-grunt-tasks. When I run grunt default I get the error Task "cssmin" not found. This happened after I installed grunt-contrib-clean to get rid to "clear" Task not found. I do have a css file as well added to assets.json. Also I am running the openshift edition (https://github.com/linnovate/mean-on-openshift) and version details are

mean@0.4.0 /home/.......
└── meanio@0.5.17 

Contents of my assets.json file

{
  "core": {
    "css": {
      "bower_components/build/css/dist.min.css": [
        "bower_components/angular-material/angular-material.css"
      ]
    },
    "js": {
      "bower_components/build/js/dist.min.js": [
        "bower_components/jquery/dist/jquery.min.js",
        "bower_components/angular/angular.js",
        "bower_components/angular-mocks/angular-mocks.js",
        "bower_components/angular-cookies/angular-cookies.js",
        "bower_components/angular-resource/angular-resource.js",
        "bower_components/angular-ui-router/release/angular-ui-router.js",
        "bower_components/angular-aria/angular-aria.js",
        "bower_components/angular-animate/angular-animate.js",
        "bower_components/angular-material/angular-material.js"
      ]
    }
  }
}

Anyways I tried with the mean project locally and that seems to have shifted to using gulp , but that too is running into module dependency issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions