Skip to content

Generator Assemble 1.0 #1

@hariadi

Description

@hariadi

Generator

  • refactor index.js
  • update Yeoman and new prompt

Plugin

  • plugins already include: default check
    • assemble-contrib-anchors: true,
    • assemble-contrib-permalinks: true,
    • assemble-contrib-sitemap: true,
    • assemble-contrib-toc: true,
    • assemble-markdown-data: false,
    • assemble-related-pages: false
  • nested prompt when plugin not in list, user entered plugin name, generator fetch and npm install, save to .yo-rc.json

Helper

  • helper already include: default check
  • nested prompt when helper not in list, user entered helper name, generator fetch and npm install, save to .yo-rc.json

Boilerplate

  • default boilerplate
  • standard file/folder for boilerplate, so we can fetch external boilerplate from git endpoint instead of default boilerplate
    • yo assemble --bp assemble/awesome-boilerplate/branch
    • generator fetch and save to _cache folder
this.remote('assemble', 'awesome-boilerplate', function(err, remote) {
  remote.copy('.', 'vendors/user-repo');
});

Default template (need discussion)

See generator template

Generated:

  .
  ├── .bowerrc
  ├── .editorconfig
  ├── .gitignore
  ├── .yo-rc.json
  ├── AUTHORS
  ├── CHANGELOG
  ├── Gruntfile.js
  ├── LICENSE-MIT
  ├── package.json
  ├── README.md
  ├── dist
  │   └── assets
  │       ├── css
  │       │   ├── bootstrap-theme.css
  │       │   ├── bootstrap-theme.css.map
  │       │   ├── bootstrap-theme.min.css
  │       │   ├── bootstrap.css
  │       │   ├── bootstrap.css.map
  │       │   └── bootstrap.min.css
  │       ├── fonts
  │       │   ├── glyphicons-halflings-regular.eot
  │       │   ├── glyphicons-halflings-regular.svg
  │       │   ├── glyphicons-halflings-regular.ttf
  │       │   ├── glyphicons-halflings-regular.woff
  │       │   └── glyphicons-halflings-regular.woff
  │       └── js
  │           ├── bootstrap.js
  │           └── bootstrap.min.js
  ├── src
  │   ├── content
  │   │   └── markdown.md
  │   ├── data
  │   │   └── site.yml
  │   └── templates
  │       ├── layouts
  │       │   └── default.hbs
  │       ├── pages
  │       │   ├── index.hbs
  │       │   └── blog.hbs
  │       └── partials
  │           └── navbar-fixed-top.hbs
  └── node_modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions