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