mean-on-openshift icon indicating copy to clipboard operation
mean-on-openshift copied to clipboard

Grunt Task issues when running locally.

Open sandyrayblr opened this issue 9 years ago • 0 comments

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

[email protected] /home/.......
└── [email protected] 

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.

sandyrayblr avatar Apr 02 '15 14:04 sandyrayblr