Skip to content

Commit 837c378

Browse files
committed
Clean up and reduce NPM footprint
1 parent 06b309f commit 837c378

File tree

9 files changed

+19
-10
lines changed

9 files changed

+19
-10
lines changed

.lvimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Project overrides for Vim
22
" See: http://www.vim.org/scripts/script.php?script_id=441
33
" I use it with: let g:localvimrc_persistent=2
4-
if &filetype =~ 'javascript'
4+
if &filetype =~ 'javascript' || &filetype =~ 'json'
55
setlocal expandtab
66
setlocal tabstop=2
77
setlocal shiftwidth=2

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build: gettext-pythonic.min.js
1616

1717
lint:
1818
$(JSLINT) gettext-pythonic.js
19-
$(JSLINT) --global phantom test.js
19+
$(JSLINT) test.js
2020

2121
test: test.browser.js
2222
$(ISTANBUL) cover --print none --report lcov -x test.js test.js |$(TAP)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# gettext-pythonic v1.1.0
1+
# gettext-pythonic v1.1.1
22

3-
[![Build Status](https://travis-ci.org/vphantom/gettext-pythonic.svg?branch=v1.1.0)](https://travis-ci.org/vphantom/gettext-pythonic) [![Coverage Status](https://coveralls.io/repos/github/vphantom/gettext-pythonic/badge.svg?branch=v1.1.0)](https://coveralls.io/github/vphantom/gettext-pythonic?branch=v1.1.0)
3+
[![Build Status](https://travis-ci.org/vphantom/gettext-pythonic.svg?branch=v1.1.1)](https://travis-ci.org/vphantom/gettext-pythonic) [![Coverage Status](https://coveralls.io/repos/github/vphantom/gettext-pythonic/badge.svg?branch=v1.1.1)](https://coveralls.io/github/vphantom/gettext-pythonic?branch=v1.1.1)
44

55
Tiny [po2json](https://github.com/mikeedwards/po2json)-compatible gettext with variable substitution.
66

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gettext-pythonic",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Tiny po2json-compatible gettext with variable substitution",
55
"main": "gettext-pythonic.js",
66
"authors": [

gettext-pythonic.browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.gettext = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2-
/*! gettext-pythonic v1.1.0
2+
/*! gettext-pythonic v1.1.1
33
* <https://github.com/vphantom/gettext-pythonic>
44
* Copyright 2016 Stéphane Lavergne
55
* Free software under <http://www.gnu.org/licenses/lgpl-3.0.txt> */

gettext-pythonic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! gettext-pythonic v1.1.0
1+
/*! gettext-pythonic v1.1.1
22
* <https://github.com/vphantom/gettext-pythonic>
33
* Copyright 2016 Stéphane Lavergne
44
* Free software under <http://www.gnu.org/licenses/lgpl-3.0.txt> */

gettext-pythonic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
{
22
"name": "gettext-pythonic",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Tiny po2json-compatible gettext with variable substitution",
55
"main": "gettext-pythonic.js",
66
"scripts": {
7-
"test": "echo Please use make test instead"
7+
"test": "echo Please use make test instead && exit 1"
88
},
99
"repository": {
1010
"type": "git",
1111
"url": "git+https://github.com/vphantom/gettext-pythonic.git"
1212
},
1313
"author": "Stéphane Lavergne <[email protected]> (https://github.com/vphantom)",
1414
"license": "GPL-3.0",
15+
"files": [
16+
"LICENSE",
17+
"README.md",
18+
"gettext-pythonic.js",
19+
"gettext-pythonic.browser.js",
20+
"gettext-pythonic.min.js",
21+
"gettext-pythonic.min.js.map"
22+
],
1523
"bugs": {
1624
"url": "https://github.com/vphantom/gettext-pythonic/issues"
1725
},

test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ test("Plural forms validity", function(t) {
373373

374374
test.onFinish(function() {
375375
if (typeof phantom !== "undefined") {
376+
/* global phantom: true */
376377
phantom.exit();
377378
}
378379
});

0 commit comments

Comments
 (0)