Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidemoro/build_commands
Setuptools based commands for npm, bower and gulp project initialization
https://github.com/davidemoro/build_commands
Last synced: about 2 months ago
JSON representation
Setuptools based commands for npm, bower and gulp project initialization
- Host: GitHub
- URL: https://github.com/davidemoro/build_commands
- Owner: davidemoro
- Created: 2015-08-03T13:09:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-11T22:32:25.000Z (over 9 years ago)
- Last Synced: 2024-11-11T07:45:27.861Z (2 months ago)
- Language: Python
- Size: 131 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
Awesome Lists containing this project
README
build_commands
==============|build status|_
|code coverage|_.. |build status| image:: https://secure.travis-ci.org/davidemoro/build_commands.png?branch=master
.. _build status: http://travis-ci.org/davidemoro/build_commands
.. |code coverage| image:: http://codecov.io/github/davidemoro/build_commands/coverage.svg?branch=master
.. _code coverage: http://codecov.io/github/davidemoro/build_commands?branch=masterThis package provides common setuptools command utilities if you
need to initialize your package with ``npm``, ``bower``
or ``gulp`` commands.Usage
-----You are supposed to create in your own package a ``Yeoman`` like
project folder (for example: ``your_package/templates``).Add the ``build_commands`` dependency to your pretend ``your_package``.
Update your ``setup.cfg`` adding the following::
[aliases]
npm = npm -i your_package/templates
bower = bower
gulp = gulp -i your_package/templates -g gulpfile.babel.jsIf you are using bower you can add a ``.bowerrc`` file to your
package root (where your ``setup.cfg`` file lives) with the
following (see http://bower.io/docs/config/#cwd)::{
"directory": "bower_components",
"cwd": "./your_package/templates/"
}And update your setup.py entry points distutils commands::
entry_points="""\
[distutils.commands]
npm = build_commands:NpmCommand
bower = build_commands:BowerCommand
gulp = build_commands:GulpCommand
""",This way once installed your ``your_package`` you can initialize your
Yeoman project with::$ python setup.py install/develop
$ python setup.py npm
$ python setup.py bower
$ python setup.py gulpAnd all your frontend stuff will be processed automatically (SASS, minification,
uglyfication, etc).Authors
=======* Davide Moro