0099fe
%{?nodejs_find_provides_and_requires}
0099fe
%global npm_name nodemon
0099fe
0099fe
# Disable until dependencies are met
0099fe
%global enable_tests 0
0099fe
0099fe
Name:          nodejs-%{npm_name}
0099fe
Version:       1.18.3
0099fe
Release:       1%{?dist}
0099fe
Summary:       Simple monitor script for use during development of a node.js app
0099fe
License:       MIT
0099fe
URL:           https://github.com/remy/nodemon
0099fe
Source0:       %{npm_name}-v%{version}-bundled.tar.gz
0099fe
0099fe
BuildRequires: nodejs-devel
0099fe
BuildRequires: nodejs-packaging
0099fe
BuildRequires: npm
0099fe
0099fe
ExclusiveArch: %{nodejs_arches} noarch
0099fe
BuildArch:     noarch
0099fe
0099fe
%if 0%{?enable_tests}
0099fe
BuildRequires:  npm(async)
0099fe
BuildRequires:  npm(coffee-script)
0099fe
BuildRequires:  npm(husky)
0099fe
BuildRequires:  npm(istanbul)
0099fe
BuildRequires:  npm(jscs)
0099fe
BuildRequires:  npm(mocha)
0099fe
BuildRequires:  npm(proxyquire)
0099fe
BuildRequires:  npm(semantic-release)
0099fe
BuildRequires:  npm(should)
0099fe
%endif
0099fe
0099fe
%description
0099fe
Simple monitor script for use during development of a node.js app.
0099fe
0099fe
For use during development of a node.js based application.
0099fe
0099fe
nodemon will watch the files in the directory in which nodemon 
0099fe
was started, and if any files change, nodemon will automatically 
0099fe
restart your node application.
0099fe
0099fe
nodemon does not require any changes to your code or method of 
0099fe
development. nodemon simply wraps your node application and keeps 
0099fe
an eye on any files that have changed. Remember that nodemon is a 
0099fe
replacement wrapper for node, think of it as replacing the word "node" 
0099fe
on the command line when you run your script.
0099fe
0099fe
%prep
0099fe
%setup -q -n %{npm_name}-%{version}
0099fe
0099fe
%build
0099fe
0099fe
# nothing to do
0099fe
# tarball is bundled in --production mode, so no need to prune
0099fe
0099fe
%install
0099fe
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
0099fe
cp -pr doc bin lib package.json website node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
0099fe
0099fe
mkdir -p %{buildroot}%{_bindir}
0099fe
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon
0099fe
0099fe
0099fe
#%nodejs_symlink_deps
0099fe
0099fe
%if 0%{?enable_tests}
0099fe
0099fe
%check
0099fe
%nodejs_symlink_deps --check
0099fe
npm run test
0099fe
%endif
0099fe
0099fe
%files
0099fe
%doc CODE_OF_CONDUCT.md doc faq.md README.md
0099fe
%{nodejs_sitelib}/%{npm_name}
0099fe
%{_bindir}/nodemon
0099fe
0099fe
%changelog
0099fe
* Mon Aug 13 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.18.3-1
0099fe
- Resolves: #1615413
0099fe
- Updated
0099fe
- bundled
0099fe
0099fe
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-2
0099fe
- rh-nodejs8 rebuild
0099fe
0099fe
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-1
0099fe
- Updated with script
0099fe
0099fe
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-6
0099fe
- rebuilt
0099fe
0099fe
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-5
0099fe
- Enable scl macros
0099fe
0099fe
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-2
0099fe
- Fix dependencies
0099fe
0099fe
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
0099fe
- Initial package