How can I install the files that the developer has configured for Bower to ignore?

I use three.js and there are a number of useful files in the directory examples/that I want to include in my project. Unfortunately, examples/specified in ignorethe config.js file property bower.json.

Is there an easy way to install specific files under examples/using Bower?

+4
source share
2 answers

The idea behind the conversation is to focus on core library files only.

From my point of view you have options:

0

.

  • , threejs-examples bower . trjs-build js.

    bower install threejs-build threejs-examples
    
  • git , ( )

    bower install mrdoob/three.js
    
  • ​​, grunt-bower, packageSpecific .

    grunt

    bower: {
        dev: {
            dest: 'components/',
            options: {
                packageSpecific: {
                    'threejs': {
                        files: [
                            'examples/js/controls/OrbitControls.js'
                        ]
                    }
                }
            }
        }
    },
    
0

All Articles