nvbn / django-bower

Easy way to use bower with your django project
https://django-bower.readthedocs.io/
518 stars 74 forks source link

Allow options for bower install #4

Closed scardine closed 10 years ago

scardine commented 10 years ago

I think it would be nice if we could pass any remaining options straight to the bower executable.

For example, if you have to run as root against the bower's patronising advice:

./manage.py bower_install -- --allow-root 

If you try to run as root without --allow-root you get:

# ./manage.py bower_install
bower ESUDO         Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes
learning more about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option
coveralls commented 10 years ago

Coverage Status

Coverage decreased (-0.47%) when pulling 230ca1899f872fb7325f73dc1b4fb61742e0b688 on scardine:master into 3b3c73f5c509bf3f4b7acd23bb5bbf841c9026d5 on nvbn:master.

coviolations commented 10 years ago

pep8:
0 violations found.

py_unittest:

Total tests count

0

Failures

0

Errors

0

sloccount:

Total Physical Source Lines of Code (SLOC)

394

Development Effort Estimate, Person-Years (Person-Months)

0.08 (0.90)

Schedule Estimate, Years (Months)

0.20 (2.40)

Estimated Average Number of Developers (Effort/Schedule)

0.38

Total Estimated Cost to Develop

$ 10,160

nvbn commented 10 years ago

Thank you.

coviolations commented 10 years ago

pep8:
0 violations found.

py_unittest:

Total tests count

0

Failures

0

Errors

0

sloccount:

Total Physical Source Lines of Code (SLOC)

394

Development Effort Estimate, Person-Years (Person-Months)

0.08 (0.90)

Schedule Estimate, Years (Months)

0.20 (2.40)

Estimated Average Number of Developers (Effort/Schedule)

0.38

Total Estimated Cost to Develop

$ 10,160