Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grunt Task issues when running locally. #5

Open
sandyrayblr opened this issue Apr 2, 2015 · 0 comments
Open

Grunt Task issues when running locally. #5

sandyrayblr opened this issue Apr 2, 2015 · 0 comments

Comments

@sandyrayblr
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant