Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Refacto more grunt #8

Merged
merged 2 commits into from
Jul 29, 2013

Conversation

douglasduteil
Copy link
Contributor

Alright
I removed my angular hack to a more standard doc generation.
Now your grunt must content a more complex view key with the demo and its dependencies into it :

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    meta: {
      view : {
        humaName : "UI <repo>",
        repoName : "<the github repo name>",
        demoHTML : grunt.file.read("demo/demo.html"),
        demoJS   : grunt.file.read("demo/demo.js"),
        css : [
          '<any required css files>'
        ],
        js : [
          '<any required script files>'
        ]
      }
    },
    copy: {
      template : {
        options : {processContent : (function(content){
          return grunt.template.process(content);
        })},
        files: [
          {src: ['out/.tmpl/index.tmpl'], dest: 'out/index.html'}
        ]
      }
    }

I'm going to update angular-ui/ui-codemirror and angular-ui/ui-ace so you can see how to use it.

douglasduteil added a commit that referenced this pull request Jul 29, 2013
@douglasduteil douglasduteil merged commit 5efbfca into angular-ui:master Jul 29, 2013
douglasduteil added a commit to angular-ui/ui-chart that referenced this pull request Aug 4, 2013
douglasduteil added a commit to angular-ui/ui-map that referenced this pull request Aug 4, 2013
@douglasduteil douglasduteil deleted the refacto-more-grunt branch August 16, 2013 22:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant