Coder Social home page Coder Social logo

grunt-aglio's People

Contributors

blech75 avatar chesleybrown avatar fridus avatar jsteunou avatar loicmahieu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

grunt-aglio's Issues

Compatibility with `grunt-available-tasks` and Node `0.12`

nvm current // system - v0.10.30
grunt aglio:apiManual  // Works
``

Trying with 0.12:

nvm use 0.12.7 // Now using node v0.12.7 (npm v2.11.3)
sudo rm -rf node_modules/
sudo npm i

grunt aglio:apiManual
Loading "aglio.js" tasks...ERROR

Error: Module did not self-register.
Warning: Task "aglio:apiManual" not found. Use --force to continue.
Aborted due to warnings.

I am using

"grunt-available-tasks": "^0.6.0"

and

"grunt-aglio": "^0.4.0",

Serve to localhost

Any plans of incorporation this feature:

aglio -t flatly-multi --full-width -i Docs/Blueprint.md -s

Basically provide an option to render the blueprint to the browser.

install failed

[root@VM_11_225_centos grunt-aglio-0.4.1]# npm install grunt-aglio --save-dev
npm ERR! Linux 3.10.0-229.el7.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-aglio" "--save-dev"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ENOSELF

npm ERR! Refusing to install grunt-aglio as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /root/grunt-aglio-0.4.1/npm-debug.log
[root@VM_11_225_centos grunt-aglio-0.4.1]#

Use grunt options

Grunt tasks options should not be at the same level of files / src.

Grunt also have a helper to get per target options with fallback to default, see http://gruntjs.com/api/inside-tasks#this.options

Instead of

grunt.initConfig({
  aglio: {
    your_target:{
      files:{
        "dest/api.html": ["src/docs/section1.md", "src/docs/section2.md"]
      },
      theme: "default",
      seperator: "\n"
    }
  },
})

you should have

grunt.initConfig({
  aglio: {
    your_target:{
      files:{
        "dest/api.html": ["src/docs/section1.md", "src/docs/section2.md"]
      },
      options: {
        theme: "default",
        seperator: "\n"
      }
    }
  },
})

So options will work in target or at global level for all target. see http://gruntjs.com/configuring-tasks#options

Add filter output

It will be nice to be able to filter the output, after call to aglio, like we can filter the input.

Use aglioOptions in task options

Move all aglio specific options into aglioOptions to be more resilient to aglio updates and separate aglio options from task options.

If there are multiple tasks, only the first one completes

Example:

Running "aglio:api" (aglio) task
>> Written to docs-dist/api/counter_details.html
>> Written to docs-dist/api/observation_details.html
>> Written to docs-dist/api/api.html

Running "aglio:internal" (aglio) task

Running "aglio:guides" (aglio) task

If I run the additional tasks separately, they compile file. If I just run the grunt aglio task, then no files are written for the additional tasks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.