Giter VIP home page Giter VIP logo

generator-angular-schema-form-add-on's Introduction

Angular Schema Form Add-on Generator

A Yeoman generator to scaffold a Angular Schema Form Add-on.

Install

npm install -g yo gulp bower generator-angular-schema-form-add-on

Usage

First create a directory

mkdir your-add-on && cd your-add-on

Run yo and select Angular Schema Form Add On

OR

Run yo angular-schema-form-add-on

When yeoman is done, gulp default will minify and start a livereload server for you to test the add-on.

Under development

Right now we have support for one starting form type input.. You can also choose empty which doesnt give you any example, just all the dependencies you need

generator-angular-schema-form-add-on's People

Contributors

kornosaurus avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pronebel ejmvar

generator-angular-schema-form-add-on's Issues

Is the test folder misleading?

I opened the folder expecting spec file examples and found what the main ASF repo puts in a folder called example, would it make more sense to call it demo or example rather than test?

A standard best practise way to write jasmine tests could be included in a test folder instead perhaps.

Fix gulp minification order.

If you have more js files they're all just being globbed by alphabetic order. This means that the "module" file can come after a directive or service and then you get no module errors.

Default to having a directive

I'd love that if there was an example/code in there where a directive was present and the sf-field-model was on that, would remove initial friction.

Add option to pick decorator

Ideally this would allow for multiple decorators, or even an option to add to all decorators, but that would require updates to the builder to support monitoring new decorators so that it could be added as new decorators are defined.

At the least being able to pick an alternate decorator would be an awesome start.

Cannot generate an add-on

Hi,

I have:

yo (1.8.3)
npm (2.14.2)
node (v4.0.0)
ubuntu 14.04

I cannot easily upgrade the above since I have other projects depending on them.

When I run yo inside my add-on directory, I choose the add-on option and provide a name. Once I get to choose Input or Empty I get the error below:

TypeError: Cannot set property 'name' of undefined
    at null.<anonymous> (/usr/lib/node_modules/generator-angular-schema-form-add-on/app/index.js:48:23)
    at null.<anonymous> (/usr/lib/node_modules/generator-angular-schema-form-add-on/node_modules/yeoman-generator/lib/base.js:233:7)

Any help is greatly appreciated.

Filename mismatch

gulp minify creates a file called /dist/asf-addon.js, but /demo/index.html requests /dist/<addon-name>.js.

Wrong key name on form type!

Right now we get the wrong type on $scope.form in test/index.html

This is because i've been stupid and totally forgot this was hardcoded.

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.