-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
104 lines (104 loc) · 3.09 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "messageformat",
"version": "0.0.1",
"description": "i18n message formating, all inclusive",
"author": "Adrien Gibrat <adrien.gibrat@gmail.com>",
"license": "(WTFPL OR MIT)",
"main": "dist/messageformat.js",
"jsnext:main": "src/index.js",
"bin": {
"messageformat": "dist/bin/messageformat",
"plural": "dist/bin/plural",
"currency": "dist/bin/currency",
"list": "dist/bin/list"
},
"repository": {
"type": "git",
"url": "git@github.com:adriengibrat/messageformat.git"
},
"keywords": [
"browser",
"messageformat",
"i18n"
],
"engines": {
"npm": ">= 2.0.0"
},
"eslintConfig": {
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"semi": [
"warn",
"never"
],
"comma-style": [
"warn",
"first"
],
"operator-linebreak": [
"warn",
"before",
{
"overrides": {
"?": "after"
}
}
],
"curly": [
"warn",
"multi",
"consistent"
],
"yoda": [
"warn",
"always"
],
"quotes": [
"warn",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"no-new-func": "off"
}
},
"scripts": {
"start": "npm run build -- --watch",
"test": "./dist/bin/messageformat --locale en-US --currency --debug < test/messages.json | uglifyjs --beautify > test/i18n.js",
"build": "rollup --config",
"build:bin": "npm run build -- --format cjs --banner '#!/usr/bin/env node'",
"postinstall": "npm run bin && npm run data && npm run build",
"bin": "npm run bin:messageformat && npm run bin:plural && npm run bin:currency && npm run bin:list",
"bin:messageformat": "npm run build:bin -- --input src/bin.js --file dist/bin/messageformat && chmod +x dist/bin/messageformat",
"bin:plural": "npm run build:bin -- --input src/cldr/plural/index.js --file dist/bin/plural && chmod +x dist/bin/plural",
"bin:currency": "npm run build:bin -- --input src/cldr/currency/index.js --file dist/bin/currency && chmod +x dist/bin/currency",
"bin:list": "npm run build:bin -- --input src/cldr/list/index.js --file dist/bin/list && chmod +x dist/bin/list",
"data": "npm run data:plural && npm run data:currency && npm run data:list",
"data:plural": "dist/bin/plural | uglifyjs --beautify > dist/plurals.js && dist/bin/plural --ordinal | uglifyjs --beautify > dist/ordinals.js",
"data:currency": "dist/bin/currency | uglifyjs --beautify > dist/currencies.js",
"data:list": "dist/bin/list | uglifyjs --beautify > dist/lists.js"
},
"dependencies": {
"cldr-core": "^37.0.0",
"cldr-misc-modern": "^37.0.0"
},
"devDependencies": {
"eslint": "^7.16.0",
"rollup": "^3.29.5",
"rollup-plugin-buble": "^0.19.8",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-includepaths": "^0.2.4",
"uglify-js": "^3.12.3"
}
}