代码拉取完成,页面将自动刷新
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-character-parser
Version: 1.2.0
Release: 1
Summary: Parse JavaScript one character at a time to look for snippets in templates
License: MIT
URL: https://github.com/ForbesLindesay/character-parser
Source0: https://github.com/ForbesLindesay/character-parser/archive/%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: mocha npm(better-assert)
%endif
%description
Parse JavaScript one character at a time to look for snippets in templates.
This is not a validator, it's just designed to allow you to have sections
of JavaScript delimited by brackets robustly.
%prep
%autosetup -n character-parser-%{version}
for i in LICENSE README.md; do
sed -i -e 's/\r$//' "${i}"
done
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/character-parser
cp -pr package.json index.js \
%{buildroot}%{nodejs_sitelib}/character-parser
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
/usr/bin/mocha -R spec
%endif
%files
%doc LICENSE README.md
%{nodejs_sitelib}/character-parser
%changelog
* Fri Aug 21 2020 leiju <leiju4@huawei.com> - 1.2.0-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。