[nodejs-grunt-cli] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Mon Jan 13 19:10:31 UTC 2014


commit 05ff28962a47c4c15f83ab1805b4abee80ee8650
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Jan 13 19:10:33 2014 +0000

    Initial import

 .gitignore            |    1 +
 grunt.1               |   55 ++++++++++++++++++++++++++++++++
 nodejs-grunt-cli.spec |   83 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 4 files changed, 140 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5bd8330 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-cli-0.1.11.tgz
diff --git a/grunt.1 b/grunt.1
new file mode 100644
index 0000000..4657bee
--- /dev/null
+++ b/grunt.1
@@ -0,0 +1,55 @@
+.TH GRUNT-CLI "1" "June 2013" "grunt-cli v0.1.9" "User Commands"
+.SH NAME
+grunt-cli \- The grunt command-line interface
+.SH SYNOPSIS
+Usage: grunt [options] [task [task ...]]
+.SH OPTIONS
+.TP
+\fB\-\-help\fR, \fB\-h\fR
+Display this help text.
+.TP
+\fB\-\-base\fR
+Specify an alternate base path. By default, all file paths are
+relative to the Gruntfile. (grunt.file.setBase) *
+.TP
+\fB\-\-no\-color\fR
+Disable colored output.
+.TP
+\fB\-\-gruntfile\fR
+Specify an alternate Gruntfile. By default, grunt looks in the
+current or parent directories for the nearest Gruntfile.js or
+Gruntfile.coffee file.
+.TP
+\fB\-\-debug\fR, \fB\-d\fR
+Enable debugging mode for tasks that support it.
+.TP
+\fB\-\-stack\fR
+Print a stack trace when exiting with a warning or fatal error.
+.TP
+\fB\-\-force\fR, \fB\-f\fR
+A way to force your way past warnings. Want a suggestion? Don't
+use this option, fix your code.
+.TP
+\fB\-\-tasks\fR
+Additional directory paths to scan for task and "extra" files.
+(grunt.loadTasks) *
+.TP
+\fB\-\-npm\fR
+Npm\-installed grunt plugins to scan for task and "extra" files.
+(grunt.loadNpmTasks) *
+.TP
+\fB\-\-no\-write\fR
+Disable writing files (dry run).
+.TP
+\fB\-\-verbose\fR, \fB\-v\fR
+Verbose mode. A lot more information output.
+.TP
+\fB\-\-version\fR, \fB\-V\fR
+Print the grunt version. Combine with \fB\-\-verbose\fR for more info.
+.TP
+\fB\-\-completion\fR
+Output shell auto\-completion rules. See the grunt\-cli
+documentation for more information.
+.PP
+Options marked with * have methods exposed via the grunt API and should
+instead be specified inside the Gruntfile wherever possible.
diff --git a/nodejs-grunt-cli.spec b/nodejs-grunt-cli.spec
new file mode 100644
index 0000000..5d769bf
--- /dev/null
+++ b/nodejs-grunt-cli.spec
@@ -0,0 +1,83 @@
+%{?nodejs_find_provides_and_requires}
+
+Name:       nodejs-grunt-cli
+Version:    0.1.11
+Release:    1%{?dist}
+Summary:    Command-line interface for Grunt, the JavaScript testing framework
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/gruntjs/grunt-cli
+Source0:    http://registry.npmjs.org/grunt-cli/-/grunt-cli-%{version}.tgz
+# Add custom man page based on output from help2man.
+Source20:   grunt.1
+
+BuildArch:  noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires:  nodejs-packaging
+Requires:       npm(grunt)
+
+%description
+Grunt is the JavaScript task runner.
+
+Grunt-cli gives you access to the grunt command-line interface anywhere on
+your system, which is useful when running a locally installed Grunt for your
+project.
+
+
+%prep
+%setup -q -n package
+%nodejs_fixdep findup-sync '~0.1'
+%nodejs_fixdep nopt '~2.0'
+%nodejs_fixdep resolve '~0.3'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-cli
+cp -pr package.json lib/ \
+    %{buildroot}%{nodejs_sitelib}/grunt-cli
+
+install -p -D -m0755 bin/grunt \
+    %{buildroot}%{nodejs_sitelib}/grunt-cli/bin/grunt-cli
+mkdir -p %{buildroot}%{_bindir}
+ln -sf %{nodejs_sitelib}/grunt-cli/bin/grunt-cli \
+    %{buildroot}%{_bindir}/grunt
+
+# Bash completion
+mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
+sed '1{\@^#!/bin/bash at d}' completion/bash \
+    > %{buildroot}%{_datadir}/bash-completion/completions/grunt
+chmod 0644 %{buildroot}%{_datadir}/bash-completion/completions/grunt
+touch -r completion/bash %{buildroot}%{_datadir}/bash-completion/completions/grunt
+
+# Custom man page.
+install -p -D -m0644 %{SOURCE20} \
+    %{buildroot}%{_mandir}/man1/grunt.1
+
+%nodejs_symlink_deps
+
+
+%files
+%doc AUTHORS LICENSE-MIT README.md
+%{nodejs_sitelib}/grunt-cli
+%{_bindir}/grunt
+%{_datadir}/bash-completion/completions/grunt
+%{_mandir}/man1/grunt.1*
+
+
+%changelog
+* Sat Jan 11 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.1.11-1
+- update to upstream release 0.1.11
+- improve description and summary
+- install bash-completion file in the correct place
+
+* Fri Jun 21 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.1.9-1
+- initial package
diff --git a/sources b/sources
index e69de29..c4c3732 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2459ff2815b3f139d608aebb4c38d2e0  grunt-cli-0.1.11.tgz


More information about the scm-commits mailing list