package init

This commit is contained in:
wang_yue111 2020-08-20 11:34:24 +08:00
parent a74c77946b
commit 77fe755a8d
3 changed files with 47 additions and 0 deletions

42
nodejs-runforcover.spec Normal file
View File

@ -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 <wangyue92@huawei.com> - 0.0.2-1
- Package init

5
nodejs-runforcover.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/chrisdickinson/node-runforcover
version_control: github
src_repo: chrisdickinson/node-runforcover
tag_prefix: "^"
seperator: ""

BIN
runforcover-0.0.2.tgz Normal file

Binary file not shown.