Inspirehep Angular JS module used in http://labs.inspirehep.net.
$ npm i
$ npm test
Check out the example/
to see how to configure your app.
For easy development of inspirehep-js
on top of inspire-next follow these steps:
-
Fork this repo and clone your personal fork.
$ cd
$VIRTUAL_ENV/src $ git clone [email protected]:/inspirehep-js.git -
Set
ASSETS_DEBUG=True
in your configuration.$ vim $VIRTUAL_ENV/var/inspirehep-instance/inspirehep.cfg
-
If you want to make sure all your assets are correctly installed in
$VIRTUAL_ENV/var/inspirehep-instance/static
, do:$ cd
$VIRTUAL_ENV/src/inspire $ ./scripts/clean_assets -
Now create a symbolic link from the
dist/
folder in your development folder to the instance folder.$ rm -rf
$VIRTUAL_ENV/var/inspirehep-instance/static/node_modules/inspirehep-js/dist $ ln -s $VIRTUAL_ENV/src/inspirehep-js/dist/ $VIRTUAL_ENV/var/inspirehep-instance/static/node_modules/inspirehep-js/ -
Start watching changes in the
inspirehep-search-js
folder. Every time a JS or HTML file is modified, tests will run and thedist/
folder will be recreated.$ cd
$VIRTUAL_ENV/src/inspirehep-js $ npm install $ gulp watch -
Every time you modify a JavaScript or HTML template, hard refresh your browser to avoid caching and see your changes.