diff --git a/gruntfile.js b/gruntfile.js new file mode 100644 index 0000000..4045acb --- /dev/null +++ b/gruntfile.js @@ -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']); +}; diff --git a/license b/license new file mode 100644 index 0000000..654d0bf --- /dev/null +++ b/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (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. diff --git a/load-grunt-tasks-3.5.0.tgz b/load-grunt-tasks-3.5.0.tgz new file mode 100644 index 0000000..b030a44 Binary files /dev/null and b/load-grunt-tasks-3.5.0.tgz differ diff --git a/nodejs-load-grunt-tasks.spec b/nodejs-load-grunt-tasks.spec new file mode 100644 index 0000000..582c313 --- /dev/null +++ b/nodejs-load-grunt-tasks.spec @@ -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 - 3.5.0-1 +- Package init diff --git a/nodejs-load-grunt-tasks.yaml b/nodejs-load-grunt-tasks.yaml new file mode 100644 index 0000000..ad4e217 --- /dev/null +++ b/nodejs-load-grunt-tasks.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: sindresorhus/load-grunt-tasks +tag_prefix: "^v" +seperator: "."