Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
587324802e
!6 回退 'Pull Request !5 : Upgrade to 0.4.1'
From: @lyn1001 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2023-11-09 07:40:48 +00:00
lyn
d7c02764dc
回退 'Pull Request !5 : Upgrade to 0.4.1' 2023-11-09 06:56:18 +00:00
openeuler-ci-bot
a66b297e4e
!5 Upgrade to 0.4.1
From: @starlet-dx 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-11-03 01:31:51 +00:00
starlet-dx
b69143575b Upgrade to 0.4.1 2023-11-02 16:48:47 +08:00
openeuler-ci-bot
fbaebc7e71
!3 修复nodejs-prelude-ls升级引起nodejs-levn依赖nodejs-prelude-ls的版本发生改变
From: @cherry530 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
2022-07-06 01:51:41 +00:00
cherry530
8ca18f143d Modify prelude-ls version
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-07-05 19:41:30 +08:00
openeuler-ci-bot
ca4e4fa28d !2 package init
From: @yaokai13
Reviewed-by: @solarhu
Signed-off-by: @solarhu
2020-09-11 21:59:41 +08:00
yaokai13
632a2e8d48 package init 2020-09-08 16:25:20 +08:00
yaokai13
b9abb7b2e3 package init 2020-09-08 16:23:02 +08:00
yaokai13
e23f880662 package init 2020-08-24 10:33:01 +08:00
4 changed files with 113 additions and 0 deletions

BIN
0.3.0.tar.gz Normal file

Binary file not shown.

67
nodejs-levn.spec Normal file
View File

@ -0,0 +1,67 @@
%{?nodejs_find_provides_and_requires}
%global packagename levn
%global bootstrap 1
%global enable_tests 0
Name: nodejs-levn
Version: 0.3.0
Release: 2
Summary: Light ECMAScript Value Notation - human written, concise, typed
License: MIT
URL: https://github.com/gkz/levn
Source0: https://github.com/gkz/levn/archive/%{version}.tar.gz
Source1: https://raw.githubusercontent.com/gkz/levn/%{version}/package.json.ls
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging npm(prelude-ls) npm(type-check)
%if 0%{?enable_tests}
BuildRequires: mocha
%endif
%if !0%{?bootstrap}
BuildRequires: npm(LiveScript)
%endif
%description
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed,
flexible
%prep
%autosetup -n levn-%{version}
cp -p %{SOURCE1} .
%nodejs_fixdep prelude-ls '~1.2.0'
%build
%if !0%{?bootstrap}
%{_bindir}/echo -e "\e[102m -=#=- Building from source -=#=- \e[0m"
rm -rf ./lib/
mkdir ./lib/
%{_bindir}/lsc --compile package.json.ls
%{_bindir}/lsc --output lib --bare --compile src/*.ls
rm -rf ./node_modules/
%endif
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/levn
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/levn
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{_bindir}/mocha -R dot --ui tdd --compilers ls:livescript
%else
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md
%license LICENSE
%{nodejs_sitelib}/levn
%changelog
* Tue Jul 05 2022 xu_ping <xuping33@h-partners.com> - 0.3.0-2
- Modify prelude-ls version to 1.2.0 to compat latest nodejs-prelude-ls
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 0.3.0-1
- Package init

4
nodejs-levn.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: gkz/levn
tag_pattern: "^"
seperator: "."

42
package.json.ls Normal file
View File

@ -0,0 +1,42 @@
name: 'levn'
version: '0.3.0'
author: 'George Zahariev <z@georgezahariev.com>'
description: 'Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible'
homepage: 'https://github.com/gkz/levn'
keywords:
'levn'
'light'
'ecmascript'
'value'
'notation'
'json'
'typed'
'human'
'concise'
'typed'
'flexible'
files:
'lib'
'README.md'
'LICENSE'
main: './lib/'
bugs: 'https://github.com/gkz/levn/issues'
license: 'MIT'
engines:
node: '>= 0.8.0'
repository:
type: 'git'
url: 'git://github.com/gkz/levn.git'
scripts:
test: "make test"
dependencies:
'prelude-ls': '~1.1.2'
'type-check': '~0.3.2'
dev-dependencies:
livescript: '~1.4.0'
mocha: '~2.3.4'
istanbul: '~0.4.1'