!2 package init

Merge pull request !2 from yaokai13/master
This commit is contained in:
openeuler-ci-bot 2020-09-08 20:56:31 +08:00 committed by Gitee
commit 21c2952187
4 changed files with 52 additions and 0 deletions

47
nodejs-jju.spec Normal file
View File

@ -0,0 +1,47 @@
%global npm_name jju
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-jju
Version: 1.2.1
Release: 1
Summary: A set of utilities to work with JSON / JSON5 documents
Url: https://github.com/rlidwka/jju
Source0: https://github.com/rlidwka/jju/archive/v%{version}.tar.gz
Source1: package.json
License: WTFPL
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(js-yaml) mocha
%endif
%description
A set of utilities to work with JSON / JSON5 documents
%prep
%autosetup -n jju-%{version}
rm -rf test/test_parse.js
cp %{SOURCE1} ./
%nodejs_fixdep mocha
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/jju
cp -pr package.json *.js lib/ \
%{buildroot}%{nodejs_sitelib}/jju
%{nodejs_symlink_deps}
%if 0%{?enable_tests}
%check
%{nodejs_symlink_deps} --check
mocha test/*.js
%endif
%files
%{nodejs_sitelib}/jju
%doc README.md
%changelog
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.2.1-1
- Package init

4
nodejs-jju.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: rlidwka/jju
tag_pattern: "^v"
seperator: "."

1
package.json Normal file
View File

@ -0,0 +1 @@
{"name":"jju","version":"1.2.1","description":"a set of utilities to work with JSON / JSON5 documents","author":{"name":"Alex Kocharin","email":"alex@kocharin.ru"},"repository":{"type":"git","url":"git://github.com/rlidwka/jju"},"bugs":{"url":"https://github.com/rlidwka/jju/issues"},"homepage":"http://rlidwka.github.io/jju/","devDependencies":{"mocha":">=1.21.0","js-yaml":">=3.1.0","eslint":"~0.4.2"},"scripts":{"test":"mocha test/*.js","lint":"eslint -c ./.eslint.yaml ./lib"},"keywords":["json","json5","parser","serializer","data"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"license":{"type":"WTFPL","url":"http://www.wtfpl.net/txt/copying/"}}

BIN
v1.2.1.tar.gz Normal file

Binary file not shown.