[Pkg-javascript-commits] [node-raw-loader] 01/02: Imported Upstream version 0.5.1
Daniel Ring
techwolf-guest at moszumanska.debian.org
Sat May 27 22:49:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
techwolf-guest pushed a commit to branch master
in repository node-raw-loader.
commit 2b5a92ed9bc426c993035fbbcbea82d6d7f59384
Author: Techwolf <dring at g33kworld.net>
Date: Sat May 27 15:41:19 2017 -0700
Imported Upstream version 0.5.1
---
LICENSE | 20 ++++
README.md | 109 +++++++++++++++++++++
debian/changelog | 5 +
debian/compat | 1 +
debian/control | 28 ++++++
debian/copyright | 34 +++++++
debian/debhelper-build-stamp | 1 +
debian/docs | 1 +
debian/files | 2 +
debian/install | 2 +
debian/node-raw-loader.debhelper.log | 19 ++++
debian/node-raw-loader.substvars | 2 +
debian/node-raw-loader/DEBIAN/control | 18 ++++
debian/node-raw-loader/DEBIAN/md5sums | 5 +
.../usr/lib/nodejs/raw-loader/index.js | 9 ++
.../usr/lib/nodejs/raw-loader/package.json | 11 +++
.../usr/share/doc/node-raw-loader/README.md | 109 +++++++++++++++++++++
.../share/doc/node-raw-loader/changelog.Debian.gz | Bin 0 -> 160 bytes
.../usr/share/doc/node-raw-loader/copyright | 34 +++++++
debian/rules | 15 +++
debian/source/format | 1 +
debian/tests/control | 2 +
debian/tests/require | 3 +
debian/watch | 5 +
index.js | 9 ++
package.json | 11 +++
26 files changed, 456 insertions(+)
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8c11fc7
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Copyright JS Foundation and other contributors
+
+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/README.md b/README.md
new file mode 100644
index 0000000..c5cb16e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,109 @@
+[![npm][npm]][npm-url]
+[![node][node]][node-url]
+[![deps][deps]][deps-url]
+[![chat][chat]][chat-url]
+
+<div align="center">
+ <img width="200" height="200"
+ src="https://cdn3.iconfinder.com/data/icons/lexter-flat-colorfull-file-formats/56/raw-256.png">
+ <a href="https://github.com/webpack/webpack">
+ <img width="200" height="200"
+ src="https://webpack.js.org/assets/icon-square-big.svg">
+ </a>
+ <h1>Raw Loader</h1>
+ <p>A loader for webpack that lets you import files as a string.</p>
+</div>
+
+<h2 align="center">Install</h2>
+
+```bash
+npm install --save-dev raw-loader
+```
+
+<h2 align="center">Usage</h2>
+
+Use the loader either via your webpack config, CLI or inline.
+
+### Via webpack config (recommended)
+
+**webpack.config.js**
+```js
+module.exports = {
+ module: {
+ rules: [
+ {
+ test: /\.txt$/,
+ use: 'raw-loader'
+ }
+ ]
+ }
+}
+```
+
+**In your application**
+```js
+import txt from 'file.txt';
+```
+
+### CLI
+
+```bash
+webpack --module-bind 'txt=raw-loader'
+```
+
+**In your application**
+```js
+import txt from 'file.txt';
+```
+
+### Inline
+
+**In your application**
+```js
+import txt from 'raw-loader!./file.txt';
+```
+
+<h2 align="center">Maintainers</h2>
+
+<table>
+ <tbody>
+ <tr>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150">
+ </br>
+ <a href="https://github.com/bebraw">Juho Vepsäläinen</a>
+ </td>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150">
+ </br>
+ <a href="https://github.com/d3viant0ne">Joshua Wiens</a>
+ </td>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars3.githubusercontent.com/u/533616?v=3&s=150">
+ </br>
+ <a href="https://github.com/SpaceK33z">Kees Kluskens</a>
+ </td>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars3.githubusercontent.com/u/3408176?v=3&s=150">
+ </br>
+ <a href="https://github.com/TheLarkInn">Sean Larkin</a>
+ </td>
+ </tr>
+ <tbody>
+</table>
+
+[npm]: https://img.shields.io/npm/v/raw-loader.svg
+[npm-url]: https://npmjs.com/package/raw-loader
+
+[node]: https://img.shields.io/node/v/raw-loader.svg
+[node-url]: https://nodejs.org
+
+[deps]: https://david-dm.org/webpack/raw-loader.svg
+[deps-url]: https://david-dm.org/webpack/raw-loader
+
+[chat]: https://badges.gitter.im/webpack/webpack.svg
+[chat-url]: https://gitter.im/webpack/webpack
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7ad109d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-raw-loader (0.5.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #863466)
+
+ -- Daniel Ring <dring at wolfishly.me> Sat, 27 May 2017 02:49:58 -0700
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..47f9c8a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: node-raw-loader
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Daniel Ring <dring at wolfishly.me>
+Build-Depends:
+ debhelper (>= 8)
+ , dh-buildinfo
+ , nodejs
+Standards-Version: 3.9.8
+Homepage: https://github.com/webpack/raw-loader
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-raw-loader.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-raw-loader.git
+
+Package: node-raw-loader
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+Description: raw loader module for webpack
+ This library is a raw loader module for webpack.
+ .
+ This library is a dependency for webpack. Webpack takes code targeted at
+ node.js and adapts it to run in the browser. Node.js comes with an API of
+ its own that is not available in browsers. Webpack exposes this code to
+ programs that are unaware they are running in a browser.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..59816ea
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: raw-loader
+Upstream-Contact: https://github.com/webpack/raw-loader/issues
+Source: https://github.com/webpack/raw-loader
+
+Files: *
+Copyright: 2017 Tobias Koppers @sokra
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Daniel Ring <dring at wolfishly.me>
+License: Expat
+
+License: Expat
+ 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/debian/debhelper-build-stamp b/debian/debhelper-build-stamp
new file mode 100644
index 0000000..704dfff
--- /dev/null
+++ b/debian/debhelper-build-stamp
@@ -0,0 +1 @@
+node-raw-loader
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/files b/debian/files
new file mode 100644
index 0000000..47be3db
--- /dev/null
+++ b/debian/files
@@ -0,0 +1,2 @@
+node-raw-loader_0.5.1-1_all.deb web optional
+node-raw-loader_0.5.1-1_amd64.buildinfo web optional
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..1881579
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/raw-loader/
+index.js usr/lib/nodejs/raw-loader/
diff --git a/debian/node-raw-loader.debhelper.log b/debian/node-raw-loader.debhelper.log
new file mode 100644
index 0000000..73fb7fd
--- /dev/null
+++ b/debian/node-raw-loader.debhelper.log
@@ -0,0 +1,19 @@
+dh_update_autotools_config
+dh_auto_configure
+dh_auto_build
+dh_auto_test
+dh_prep
+dh_auto_install
+dh_install
+dh_installdocs
+dh_installchangelogs
+dh_perl
+dh_link
+dh_strip_nondeterminism
+dh_compress
+dh_fixperms
+dh_installdeb
+dh_gencontrol
+dh_md5sums
+dh_builddeb
+dh_builddeb
diff --git a/debian/node-raw-loader.substvars b/debian/node-raw-loader.substvars
new file mode 100644
index 0000000..978fc8b
--- /dev/null
+++ b/debian/node-raw-loader.substvars
@@ -0,0 +1,2 @@
+misc:Depends=
+misc:Pre-Depends=
diff --git a/debian/node-raw-loader/DEBIAN/control b/debian/node-raw-loader/DEBIAN/control
new file mode 100644
index 0000000..02ba8ea
--- /dev/null
+++ b/debian/node-raw-loader/DEBIAN/control
@@ -0,0 +1,18 @@
+Package: node-raw-loader
+Version: 0.5.1-1
+Architecture: all
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Installed-Size: 17
+Depends: nodejs
+Section: web
+Priority: optional
+Homepage: https://github.com/webpack/raw-loader
+Description: raw loader module for webpack
+ This library is a raw loader module for webpack.
+ .
+ This library is a dependency for webpack. Webpack takes code targeted at
+ node.js and adapts it to run in the browser. Node.js comes with an API of
+ its own that is not available in browsers. Webpack exposes this code to
+ programs that are unaware they are running in a browser.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/node-raw-loader/DEBIAN/md5sums b/debian/node-raw-loader/DEBIAN/md5sums
new file mode 100644
index 0000000..e350e74
--- /dev/null
+++ b/debian/node-raw-loader/DEBIAN/md5sums
@@ -0,0 +1,5 @@
+ec0748632841a6d208b794c210ce8451 usr/lib/nodejs/raw-loader/index.js
+44197ee51ccc25ab8ff7607f533e2be9 usr/lib/nodejs/raw-loader/package.json
+43ad55f5d0fc9410b479ad7bd16d6818 usr/share/doc/node-raw-loader/README.md
+4fe62a7f86281b20a3f0e8b02d86f28e usr/share/doc/node-raw-loader/changelog.Debian.gz
+dbf16cc6fcf2d6ff7b1e728c69e1b968 usr/share/doc/node-raw-loader/copyright
diff --git a/debian/node-raw-loader/usr/lib/nodejs/raw-loader/index.js b/debian/node-raw-loader/usr/lib/nodejs/raw-loader/index.js
new file mode 100644
index 0000000..a59e712
--- /dev/null
+++ b/debian/node-raw-loader/usr/lib/nodejs/raw-loader/index.js
@@ -0,0 +1,9 @@
+/*
+ MIT License http://www.opensource.org/licenses/mit-license.php
+ Author Tobias Koppers @sokra
+*/
+module.exports = function(content) {
+ this.cacheable && this.cacheable();
+ this.value = content;
+ return "module.exports = " + JSON.stringify(content);
+}
diff --git a/debian/node-raw-loader/usr/lib/nodejs/raw-loader/package.json b/debian/node-raw-loader/usr/lib/nodejs/raw-loader/package.json
new file mode 100644
index 0000000..a27d997
--- /dev/null
+++ b/debian/node-raw-loader/usr/lib/nodejs/raw-loader/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "raw-loader",
+ "version": "0.5.1",
+ "author": "Tobias Koppers @sokra",
+ "description": "raw loader module for webpack",
+ "repository": {
+ "type": "git",
+ "url": "git at github.com:webpack/raw-loader.git"
+ },
+ "license": "MIT"
+}
diff --git a/debian/node-raw-loader/usr/share/doc/node-raw-loader/README.md b/debian/node-raw-loader/usr/share/doc/node-raw-loader/README.md
new file mode 100644
index 0000000..c5cb16e
--- /dev/null
+++ b/debian/node-raw-loader/usr/share/doc/node-raw-loader/README.md
@@ -0,0 +1,109 @@
+[![npm][npm]][npm-url]
+[![node][node]][node-url]
+[![deps][deps]][deps-url]
+[![chat][chat]][chat-url]
+
+<div align="center">
+ <img width="200" height="200"
+ src="https://cdn3.iconfinder.com/data/icons/lexter-flat-colorfull-file-formats/56/raw-256.png">
+ <a href="https://github.com/webpack/webpack">
+ <img width="200" height="200"
+ src="https://webpack.js.org/assets/icon-square-big.svg">
+ </a>
+ <h1>Raw Loader</h1>
+ <p>A loader for webpack that lets you import files as a string.</p>
+</div>
+
+<h2 align="center">Install</h2>
+
+```bash
+npm install --save-dev raw-loader
+```
+
+<h2 align="center">Usage</h2>
+
+Use the loader either via your webpack config, CLI or inline.
+
+### Via webpack config (recommended)
+
+**webpack.config.js**
+```js
+module.exports = {
+ module: {
+ rules: [
+ {
+ test: /\.txt$/,
+ use: 'raw-loader'
+ }
+ ]
+ }
+}
+```
+
+**In your application**
+```js
+import txt from 'file.txt';
+```
+
+### CLI
+
+```bash
+webpack --module-bind 'txt=raw-loader'
+```
+
+**In your application**
+```js
+import txt from 'file.txt';
+```
+
+### Inline
+
+**In your application**
+```js
+import txt from 'raw-loader!./file.txt';
+```
+
+<h2 align="center">Maintainers</h2>
+
+<table>
+ <tbody>
+ <tr>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150">
+ </br>
+ <a href="https://github.com/bebraw">Juho Vepsäläinen</a>
+ </td>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150">
+ </br>
+ <a href="https://github.com/d3viant0ne">Joshua Wiens</a>
+ </td>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars3.githubusercontent.com/u/533616?v=3&s=150">
+ </br>
+ <a href="https://github.com/SpaceK33z">Kees Kluskens</a>
+ </td>
+ <td align="center">
+ <img width="150" height="150"
+ src="https://avatars3.githubusercontent.com/u/3408176?v=3&s=150">
+ </br>
+ <a href="https://github.com/TheLarkInn">Sean Larkin</a>
+ </td>
+ </tr>
+ <tbody>
+</table>
+
+[npm]: https://img.shields.io/npm/v/raw-loader.svg
+[npm-url]: https://npmjs.com/package/raw-loader
+
+[node]: https://img.shields.io/node/v/raw-loader.svg
+[node-url]: https://nodejs.org
+
+[deps]: https://david-dm.org/webpack/raw-loader.svg
+[deps-url]: https://david-dm.org/webpack/raw-loader
+
+[chat]: https://badges.gitter.im/webpack/webpack.svg
+[chat-url]: https://gitter.im/webpack/webpack
diff --git a/debian/node-raw-loader/usr/share/doc/node-raw-loader/changelog.Debian.gz b/debian/node-raw-loader/usr/share/doc/node-raw-loader/changelog.Debian.gz
new file mode 100644
index 0000000..eedceb2
Binary files /dev/null and b/debian/node-raw-loader/usr/share/doc/node-raw-loader/changelog.Debian.gz differ
diff --git a/debian/node-raw-loader/usr/share/doc/node-raw-loader/copyright b/debian/node-raw-loader/usr/share/doc/node-raw-loader/copyright
new file mode 100644
index 0000000..59816ea
--- /dev/null
+++ b/debian/node-raw-loader/usr/share/doc/node-raw-loader/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: raw-loader
+Upstream-Contact: https://github.com/webpack/raw-loader/issues
+Source: https://github.com/webpack/raw-loader
+
+Files: *
+Copyright: 2017 Tobias Koppers @sokra
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Daniel Ring <dring at wolfishly.me>
+License: Expat
+
+License: Expat
+ 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/debian/rules b/debian/rules
new file mode 100755
index 0000000..de57af0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+
+#override_dh_auto_build:
+
+#override_dh_auto_test:
+
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..38e8764
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-raw-loader
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..d941e15
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('raw-loader');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8e0a4bb
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*=// \
+ http://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=npmjs/raw-loader .*=raw-loader-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz))
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..a59e712
--- /dev/null
+++ b/index.js
@@ -0,0 +1,9 @@
+/*
+ MIT License http://www.opensource.org/licenses/mit-license.php
+ Author Tobias Koppers @sokra
+*/
+module.exports = function(content) {
+ this.cacheable && this.cacheable();
+ this.value = content;
+ return "module.exports = " + JSON.stringify(content);
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..a27d997
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "raw-loader",
+ "version": "0.5.1",
+ "author": "Tobias Koppers @sokra",
+ "description": "raw loader module for webpack",
+ "repository": {
+ "type": "git",
+ "url": "git at github.com:webpack/raw-loader.git"
+ },
+ "license": "MIT"
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-raw-loader.git
More information about the Pkg-javascript-commits
mailing list