6 Star 0 Fork 3

src-openEuler/nodejs-character-parser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodejs-character-parser.spec 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
雷炬 提交于 2020-09-07 18:04 . Modify Source
%{?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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nodejs-character-parser.git
git@gitee.com:src-openeuler/nodejs-character-parser.git
src-openeuler
nodejs-character-parser
nodejs-character-parser
master

搜索帮助