commit
032d1398d7
17
gruntfile.js
Normal file
17
gruntfile.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
'use strict';
|
||||||
|
module.exports = function (grunt) {
|
||||||
|
require('./')(grunt, {
|
||||||
|
pattern: ['grunt*'],
|
||||||
|
config: require('./package'),
|
||||||
|
scope: 'devDependencies',
|
||||||
|
requireResolution: true
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.initConfig({
|
||||||
|
svgmin: {
|
||||||
|
noop: {}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.registerTask('default', ['svgmin']);
|
||||||
|
};
|
||||||
21
license
Normal file
21
license
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
BIN
load-grunt-tasks-3.5.0.tgz
Normal file
BIN
load-grunt-tasks-3.5.0.tgz
Normal file
Binary file not shown.
54
nodejs-load-grunt-tasks.spec
Normal file
54
nodejs-load-grunt-tasks.spec
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-load-grunt-tasks
|
||||||
|
Version: 3.5.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Load multiple grunt tasks using globbing patterns
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/sindresorhus/load-grunt-tasks
|
||||||
|
Source0: http://registry.npmjs.org/load-grunt-tasks/-/load-grunt-tasks-%{version}.tgz
|
||||||
|
Source1: https://raw.githubusercontent.com/sindresorhus/load-grunt-tasks/v%{version}/gruntfile.js
|
||||||
|
Source2: https://raw.githubusercontent.com/sindresorhus/load-grunt-tasks/v%{version}/license
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging npm(multimatch) npm(resolve-pkg) npm(pkg-up)
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(arrify) npm(grunt-cli) npm(grunt-contrib-clean) npm(grunt-simple-mocha)
|
||||||
|
BuildRequires: npm(grunt-svgmin)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
cp -p %{SOURCE1} .
|
||||||
|
cp -p %{SOURCE2} .
|
||||||
|
%nodejs_fixdep findup-sync
|
||||||
|
%nodejs_fixdep resolve-pkg
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/load-grunt-tasks
|
||||||
|
cp -pr package.json *.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/load-grunt-tasks
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{_bindir}/grunt
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc readme.md
|
||||||
|
%license license
|
||||||
|
%{nodejs_sitelib}/load-grunt-tasks
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 3.5.0-1
|
||||||
|
- Package init
|
||||||
4
nodejs-load-grunt-tasks.yaml
Normal file
4
nodejs-load-grunt-tasks.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: sindresorhus/load-grunt-tasks
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user