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