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