Giter Site home page Giter Site logo

Convert to bower component about hal-browser HOT 5 OPEN

mikekelly avatar mikekelly commented on August 22, 2024
Convert to bower component

from hal-browser.

Comments (5)

gagabla avatar gagabla commented on August 22, 2024

Please dont! This is great as is! I just came over from Collection+JSON because i was so frustrated that i was not able to use anything without learning node.js, CoffeeScript and browserify.
This is just plain old download-unzip-go, it works, no magic involved, KISS!

Maybe you can provide both, bower for the cool nerds and zip-download for old fashioned guys like me?

(i just came here so see how to tell you that this worked out of the box, couldn't find where to leave comments, and then found this issue ...)

from hal-browser.

mikekelly avatar mikekelly commented on August 22, 2024

I think this is a fair comment. I will make sure if/when we do this that we
take a middle ground that can satisfy both approaches

On Mon, Dec 23, 2013 at 12:32 PM, gagabla [email protected] wrote:

Please dont! This is great as is! I just came over from Collection+JSON
because i was so frustrated that i was not able to use anything without
learning node.js, CoffeeScript and browserify.
This is just plain old download-unzip-go, it works, no magic involved,
KISS http://en.wikipedia.org/wiki/KISS_principle!

Maybe you can provide both, bower for the cool nerds and zip-download for
old fashioned guys like me?

(i just came here so see how to tell you that this worked out of the box,
couldn't find where to leave comments, and then found this issue ...)


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-31116784
.

Mike

http://twitter.com/mikekelly85
http://github.com/mikekelly
http://linkedin.com/in/mikekelly123

from hal-browser.

joshco avatar joshco commented on August 22, 2024

+1
I look at hal-browser as a learning tool for understanding HAL and hypermedia. It's more important to me that it be easy to understand and modify without depending on a bunch of other dependencies or magic than being super efficient or "production ready"
If someone is just learning to tie their shoes with HAL + hypermedia, having to learn a bunch of other things, especially if they are not always trivial to set up on various development platforms this can be an obstacle

from hal-browser.

mdiskin avatar mdiskin commented on August 22, 2024

To ease the embedding of these into multiple module war files I did create a simple maven assembly for it. Below is the code I used if you want to release this out to the maven central at some future point.

pom.xml

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <appendAssemblyId>false</appendAssemblyId>
                    <descriptors>
                        <descriptor>src/main/assembly/assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

assembly.xml

<assembly
    xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 "
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd ">

    <includeBaseDirectory>false </includeBaseDirectory>
    <id>hal-browser</id>
    <formats>
        <format>zip</format>
    </formats>
    <fileSets>
        <fileSet>
            <includes>
                <include>README*</include>
                <include>MIT-LICENSE*</include>
                <include>browser.html</include>
                <include>styles.css</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>js</directory>
        </fileSet>
        <fileSet>
            <directory>vendor</directory>
        </fileSet>
    </fileSets>
</assembly>

from hal-browser.

gregturn avatar gregturn commented on August 22, 2024

For Java folks, you can access this project as a webjar at https://github.com/webjars/hal-browser. That gives you gradle and maven support among other things.

P.S. It's super simple with Spring Boot apps.

But for other projects, adding either a package.json or bower.json would be handy option assuming it doesn't preclude the others.

from hal-browser.

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.