2020-05-13 09:22:16 +00:00
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
%global npm_name nodemon
|
|
|
|
|
2021-01-12 15:31:21 +00:00
|
|
|
# Disable until dependencies are bundled
|
2020-05-13 09:22:16 +00:00
|
|
|
%global enable_tests 0
|
|
|
|
|
|
|
|
Name: nodejs-%{npm_name}
|
2023-10-11 13:27:14 +00:00
|
|
|
Version: 3.0.1
|
2023-10-11 13:25:12 +00:00
|
|
|
Release: %autorelease
|
2020-05-13 09:22:16 +00:00
|
|
|
Summary: Simple monitor script for use during development of a node.js app
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/remy/nodemon
|
|
|
|
Source0: %{npm_name}-v%{version}-bundled.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: nodejs-devel
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
BuildRequires: npm
|
|
|
|
|
2023-08-09 11:16:04 +00:00
|
|
|
# Let the nodemon work with any nodejs version available
|
|
|
|
%global __requires_exclude ^\/usr\/bin\/node
|
|
|
|
Requires: nodejs(engine)
|
2023-08-09 12:04:46 +00:00
|
|
|
Suggests: nodejs
|
2023-08-09 11:16:04 +00:00
|
|
|
|
2020-05-13 09:22:16 +00:00
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Simple monitor script for use during development of a node.js app.
|
|
|
|
|
|
|
|
For use during development of a node.js based application.
|
|
|
|
|
2023-10-11 13:27:14 +00:00
|
|
|
nodemon will watch the files in the directory in which nodemon
|
|
|
|
was started, and if any files change, nodemon will automatically
|
2020-05-13 09:22:16 +00:00
|
|
|
restart your node application.
|
|
|
|
|
2023-10-11 13:27:14 +00:00
|
|
|
nodemon does not require any changes to your code or method of
|
|
|
|
development. nodemon simply wraps your node application and keeps
|
|
|
|
an eye on any files that have changed. Remember that nodemon is a
|
|
|
|
replacement wrapper for node, think of it as replacing the word "node"
|
2020-05-13 09:22:16 +00:00
|
|
|
on the command line when you run your script.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{npm_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
# nothing to do
|
|
|
|
# tarball is bundled in --production mode, so no need to prune
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
|
cp -pr doc bin lib package.json website node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon
|
|
|
|
|
|
|
|
|
|
|
|
#%%nodejs_symlink_deps
|
|
|
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
%check
|
|
|
|
%nodejs_symlink_deps --check
|
|
|
|
npm run test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CODE_OF_CONDUCT.md doc faq.md README.md
|
|
|
|
%{nodejs_sitelib}/%{npm_name}
|
|
|
|
%{_bindir}/nodemon
|
|
|
|
|
|
|
|
%changelog
|
2023-10-11 13:25:12 +00:00
|
|
|
%autochangelog
|