diff --git a/nodejs-runforcover.spec b/nodejs-runforcover.spec new file mode 100644 index 0000000..4131805 --- /dev/null +++ b/nodejs-runforcover.spec @@ -0,0 +1,42 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-runforcover +Version: 0.0.2 +Release: 1 +Summary: Require plugin for JS code coverage +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +License: BSD +URL: https://github.com/chrisdickinson/node-runforcover +Source0: https://registry.npmjs.org/runforcover/-/runforcover-%{version}.tgz +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(bunker) +%endif +%description +Runforcover hooks into the `require()` function and uses nodejs-bunker to +provide code coverage data for your unit test library, whatever it might be. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/runforcover +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/runforcover +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%__nodejs test/index.js +%endif + +%files +%{nodejs_sitelib}/runforcover +%doc README.markdown + +%changelog +* Fri Aug 14 2020 wangyue - 0.0.2-1 +- Package init diff --git a/nodejs-runforcover.yaml b/nodejs-runforcover.yaml new file mode 100644 index 0000000..366e130 --- /dev/null +++ b/nodejs-runforcover.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/chrisdickinson/node-runforcover +version_control: github +src_repo: chrisdickinson/node-runforcover +tag_prefix: "^" +seperator: "" diff --git a/runforcover-0.0.2.tgz b/runforcover-0.0.2.tgz new file mode 100644 index 0000000..a1b370f Binary files /dev/null and b/runforcover-0.0.2.tgz differ