Ninja Programmers Mindmeld

    generator-spm

    0.1.0 • Public • Published

    generator-spm

    A SPM Project generator for Yeoman.

    Install

    $ npm install yo -g
    $ npm install generator-spm -g

    Usage

    Init project

    $ yo spm

    If choosing complex Project Type, you can add mod and page seperatly.

    # add mod 
    $ yo spm:mod foo
     
    # add page 
    $ yo spm:page bar

    Run

    $ npm install spm-server -g
    $ spm-server

    Options

    Include Mode

    • relative
    • all
    • standalone

    Notice: seajs will be included in mode relative and all.

    Project Type

    Simple

    - index.js
    - index.css
    - index.html
    - package.json
    

    Complex

    + mods
        + modA
            - index.js
            - index.css
        + modB
            - index.js
    + pages
        - pageA.html
        - pageA.js
        - pageA.css
    - package.json
    

    Install

    npm i generator-spm

    DownloadsWeekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • sorrycc