forked from fnando/i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
60 lines (60 loc) · 2.18 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
{
"author": "Nando Vieira <me@fnando.com>",
"dependencies": {
"bignumber.js": "*",
"lodash": "*",
"make-plural": "*"
},
"description": "A small library to provide I18n on JavaScript.",
"devDependencies": {
"@fnando/codestyle": "*",
"@fnando/eslint-config-codestyle": "*",
"@types/jest": "*",
"@types/lodash": "*",
"@typescript-eslint/eslint-plugin": "*",
"@typescript-eslint/parser": "*",
"esbuild": "*",
"eslint": "*",
"eslint-config-prettier": "*",
"eslint-plugin-prettier": "*",
"jest": "*",
"jest-filename-transform": "*",
"jest-hud-reporter": "*",
"prettier": "*",
"ts-jest": "*",
"typedoc": "*",
"typescript": "*",
"webpack": "*",
"webpack-cli": "*"
},
"files": [
"dist/**/*",
"json/**/*",
"typings/**/*",
"src/**/*"
],
"license": "MIT",
"main": "./dist/require/index.js",
"module": "./dist/import/index.js",
"name": "i18n-js",
"repository": "https://github.com/fnando/i18n",
"scripts": {
"build": "yarn clean && yarn build:js && yarn docs",
"build:browser": "webpack --output-path ./dist/browser/ --output-filename index.js --mode production --entry ./dist/import/index.js --output-library-type var --output-library-name I18n --devtool source-map",
"build:import": "tsc --outDir ./dist/import --module ESNext && yarn build:lodash && yarn build:make-plural && yarn build:bignumber",
"build:lodash": "esbuild --bundle src/lodash.ts --outfile=dist/import/lodash.js",
"build:make-plural": "cp node_modules/make-plural/plurals.mjs dist/import/make-plural.js",
"build:bignumber": "cp node_modules/bignumber.js/bignumber.mjs dist/import/bignumber.js",
"build:js": "yarn build:import && yarn build:require && yarn build:browser",
"build:require": "tsc --outDir ./dist/require --module commonjs",
"clean": "rm -rf ./dist",
"docs": "./bin/docs",
"lint": "yarn lint:typescript && yarn lint:eslint",
"lint:eslint": "eslint --config .eslintrc.js --max-warnings 0 'src/**/*'",
"lint:typescript": "tsc --noEmit",
"test": "jest --watch --coverage",
"test:ci": "jest --ci --coverage --verbose"
},
"typings": "./typings",
"version": "4.4.3"
}