Code Monkey home page Code Monkey logo

Comments (5)

davidlgj avatar davidlgj commented on May 18, 2024

Sure, making uminified versions as well won't be a problem.

schema-form.min.js is actually everything in src/ except src/directives/decorators concatenated and minified.

bootstrap-decorator.min.js is everything directly in src/directives/decorators/bootstrap concatenated and minified. That includes all the html templates as well! They are compiled to js with gulp-angular-templatecache

bootstrap-datepicker.min.js, as you might have gathered by now, is is everything directly in src/directives/decorators/bootstrap/datepicker/, templates and all.

The idea was that scema-form.min.js should be the base you add "decorators" to, and that we in time could have several to choose from. I have a branch with a half done "table-decorator" that just renders everything in a table, useful to view values inputed.

And the datepicker I choose to add in a extra file since it has so many third party dependencies.

I'll try to add non minified versions shortly, but in the mean time you can build them yourself using gulp. Just comment out row 30 and 67 (.pipe(uglify())) in gulpfile.js. And then run "gulp".

If you don't have gulp, install node, do a "npm install" to install angular-schema-form dependencies, "npm install -g gulp" to get gulp and then just "gulp" to build :)

from angular-schema-form.

dlodeprojuicer avatar dlodeprojuicer commented on May 18, 2024

I see, I was wondering where all the templates disappeared to. I will install gulp.

Maybe this could be a new issue:
You mentioned something about table-decorator, I was about to ask you about something of that sort.... I have started using ngGrid as a table, at the moment it is a side demo, I wanted to have something solid before doing a pull request. It is also half-done, I am struggling to put user inputs in the response.

Should I create a branch for it or uploading somewhere for you to run through it quick? It is not solid yet, so I am not sure....

from angular-schema-form.

dlodeprojuicer avatar dlodeprojuicer commented on May 18, 2024

I managed to use the concatenated files, due to the structure of my demo, I prefer to work with separate files in src folder.

Thanks for helping me through this.

from angular-schema-form.

davidlgj avatar davidlgj commented on May 18, 2024

No problem. Until recently the example/bootstrap-example.html just included all of the source files, the trick is to use a web server from the root of the project when viewing it so all the templates gets the correct path.

But I wanted the speed bump the concatenation gives you, doing 10 ajax requests to load small snippets of HTML isn't that great when you need them all at the same time :-)

Regarding your ng-grid demo, I'm not sure we're talking about the same thing but I love to see it when you feel comfortable, just clone the repo and put it in a branch!

from angular-schema-form.

dlodeprojuicer avatar dlodeprojuicer commented on May 18, 2024

Will do!

from angular-schema-form.

Related Issues (20)

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.