-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
159 lines (159 loc) · 6.22 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"name": "tailor-react-webpack",
"version": "1.0.0",
"description": "Frontend Microservices with Tailor, Webpack and React",
"main": "src/app.js",
"repository": "git@github.com:iilei/tailor-react-webpack.git",
"scripts": {
"babel-env": "node --require 'dotenv/config' --require 'babel-register' ",
"build": "NODE_ENV=production webpack -p",
"conf:dump": "npm run -s babel-env -- --eval \"const lastArg = process.argv[process.argv.length -1]; const module = (['appConfig', 'localeMap', 'localeList'].includes(lastArg) ? lastArg : 'index'); settingsObj = require('./config/' + module); console.log(JSON.stringify({[module]: settingsObj}, null, 2))\"",
"conf:dump:all": "npm run -s conf:dump | jq .",
"conf:dump:appConfig": "npm run -s conf:dump appConfig | jq .",
"conf:dump:localeList": "npm run -s conf:dump localeList | jq .",
"conf:dump:localeMap": "npm run -s conf:dump localeMap | jq .",
"cs": "npm run lint",
"cs:fix": "npm run lint:fix",
"fixable": "git status --porcelain | awk 'match($1, /A|M/){print $2}' | awk 'match($1, /\\.jsx?$/){print $1}' ",
"intl": "npm run intl:aggregate",
"intl:add-cache-bust": ". ./bin/add_cache_bust.sh",
"intl:aggregate": "npm run babel-env scripts/intl/aggregate-intl-messages.js",
"intl:build-language-select": "npm run babel-env scripts/intl/build-language-select",
"postintl:build-language-select": "npm run prettier:w -s -- src/intl-message/intl-language-select/generated.js",
"intl:build-locale-data": "npm run babel-env scripts/intl/build-locale-data",
"intl:fetch-meta": "npm run intl:mkdirs && phraseapp locales list > build/i18n/metadata.json",
"intl:mkdirs": "bash -c 'mkdir -p build/i18n/{remote,local,locale-data}'",
"intl:pull": "npm run phraseapp:pull && npm run intl:add-cache-bust",
"intl:purge": "rm -rf build/i18n",
"intl:push": "npm run intl:aggregate && echo \"\nIntl-Keys to be synced: $(cat build/i18n/__authoring__.json | jq length)\n\" && [[ $(cat build/i18n/__authoring__.json | jq length) -gt 1 ]] && phraseapp push || exit 0",
"lint": "./node_modules/eslint/bin/eslint.js --ext js,jsx .",
"lint:fix": "./node_modules/eslint/bin/eslint.js --fix --ext js,jsx .",
"phraseapp:pull": "phraseapp pull",
"x-postinstall": "npm run -s intl:build-locale-data",
"postintl:build-locale-data": "npm run -s prettier:w -- 'build/i18n/locale-data/*.js'",
"postintl:fetch-meta": "jq . -M build/i18n/metadata.json | awk 'BEGIN{RS=\"\";getline<\"-\";print>ARGV[1]}' build/i18n/metadata.json",
"preintl:pull": "npm run -s intl:mkdirs",
"prephraseapp:pull": "npm run -s intl:mkdirs && npm run intl:fetch-meta",
"prettier": "prettier --single-quote --trailing-comma --print-width=100",
"prettier:w": "npm run -s prettier -- --write",
"relative-iso-date": "./scripts/relativeIsoDate.js",
"start": "NODE_ENV=development webpack-dev-server",
"tdd": "npm test -- --watch",
"test": "jest"
},
"pre-push": [
"lint",
"test"
],
"keywords": [
"Webpack",
"Yarn",
"React"
],
"author": "iilei",
"license": "MIT",
"devDependencies": {
"assets-webpack-plugin": "^3.5.1",
"babel-cli": "^6.22.2",
"babel-core": "^6.22.1",
"babel-eslint": "^7.1.1",
"babel-jest": "^18.0.0",
"babel-loader": "6.2.10",
"babel-plugin-module-resolver": "^2.3.0",
"babel-plugin-react-intl": "2.3.1",
"babel-plugin-transform-class-properties": "^6.22.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-require-ignore": "^0.0.2",
"babel-polyfill": "^6.22.0",
"babel-preset-airbnb": "2.2.1",
"babel-preset-env": "^1.1.8",
"babel-preset-react": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"babel-register": "6.22.0",
"chalk": "^1.1.3",
"change-case": "^3.0.1",
"chunk-manifest-webpack-plugin": "^1.0.0",
"css-loader": "^0.26.1",
"dotenv": "4.0.0",
"enzyme": "^2.7.1",
"enzyme-to-json": "^1.4.5",
"eslint": "3.14.1",
"eslint-config-airbnb": "14.0.0",
"eslint-import-resolver-babel-module": "2.2.1",
"eslint-plugin-getsentry": "^2.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-inflection": "^1.1.1",
"eslint-plugin-jsx-a11y": "^3.0.2",
"eslint-plugin-react": "^6.9.0",
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "v2.0.0-rc.2",
"file-loader": "0.10.0",
"formatjs-extract-cldr-data": "^3.0.0",
"fs": "0.0.1-security",
"glob": "7.1.1",
"html-webpack-exclude-assets-plugin": "^0.0.3",
"html-webpack-inline-chunk-plugin": "^1.0.0",
"html-webpack-plugin": "^2.28.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^18.1.0",
"json-loader": "0.5.4",
"jsonfile": "^2.4.0",
"language-tags": "1.0.5",
"mkdirp": "0.5.1",
"node-sass": "^3.4.0",
"null-loader": "0.1.1",
"parameterize": "^0.0.7",
"postcss": "^5.2.11",
"postcss-cssnext": "^2.9.0",
"postcss-loader": "^1.2.2",
"pre-push": "0.1.1",
"prettier": "^0.15.0",
"react-addons-test-utils": "^15.4.2",
"react-hot-loader": "^3.0.0-beta.6",
"react-test-renderer": "^15.4.2",
"sass-loader": "^v4.1.1",
"script-ext-html-webpack-plugin": "^1.5.0",
"serialize-javascript": "1.3.0",
"style-loader": "^0.13.1",
"svg-url-loader": "^1.1.1",
"svgo": "^0.7.2",
"svgo-loader": "^1.1.2",
"webpack": "^2.2.1",
"webpack-dev-middleware": "1.9.0",
"webpack-dev-server": "^2.2.1",
"webpack-hot-middleware": "2.16.1",
"webpack-md5-hash": "^0.0.5",
"webpack-node-externals": "1.5.4",
"yamljs": "0.2.8",
"yargs": "^6.6.0"
},
"dependencies": {
"humps": "^2.0.0",
"intl": "^1.2.5",
"moment": "^2.17.1",
"moment-timezone": "^0.5.11",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-helmet": "^4.0.0",
"react-intl": "^2.2.3",
"react-redux": "^5.0.2",
"react-router": "4.0.0-alpha.6",
"redux": "^3.6.0"
},
"jest": {
"setupFiles": [
"<rootDir>/../jestsetup.js"
],
"snapshotSerializers": [
"<rootDir>/../node_modules/enzyme-to-json/serializer"
],
"moduleNameMapper": {
"^.+\\.(css|scss)$": "identity-obj-proxy"
},
"collectCoverage": false,
"collectCoverageFrom": [
"**/*.{js,jsx}"
],
"rootDir": "./src"
}
}