Skip to content

Commit

Permalink
Merge pull request #247 from patw0929/feature/remove-libphonenumber
Browse files Browse the repository at this point in the history
Removed libphonenumber.js
  • Loading branch information
patw0929 committed Dec 17, 2018
2 parents 3b70c5d + 35cce22 commit 375c6bc
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 977 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
dist/**
example/**
test/**
src/libphonenumber.js
node_modules/*
package.json
webpack.*.js
Expand Down
4 changes: 0 additions & 4 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

const webpack = require('webpack');
const paths = require('./paths');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
Expand Down Expand Up @@ -59,7 +58,6 @@ module.exports = {
loader: 'eslint-loader',
enforce: 'pre',
include: paths.appSrc,
exclude: /libphonenumber\.js/,
},
{
exclude: [
Expand All @@ -80,7 +78,6 @@ module.exports = {
{
test: /\.(js|jsx)$/,
include: paths.appSrc,
exclude: /libphonenumber\.js/,
loader: 'babel-loader',
},
{
Expand Down Expand Up @@ -118,7 +115,6 @@ module.exports = {
/^\.\/main\.css$/,
'../dist/main.css'
),
new CopyWebpackPlugin([{ from: 'src/libphonenumber.js', to: './' }]),
new HtmlWebpackPlugin({
inject: true,
template: paths.appHtml,
Expand Down
4 changes: 0 additions & 4 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const webpack = require('webpack');
const paths = require('./paths');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
Expand Down Expand Up @@ -85,7 +84,6 @@ module.exports = {
loader: 'eslint-loader',
enforce: 'pre',
include: paths.appSrc,
exclude: /libphonenumber\.js/,
},
{
exclude: [
Expand All @@ -106,7 +104,6 @@ module.exports = {
{
test: /\.(js|jsx)$/,
include: paths.appSrc,
exclude: /libphonenumber\.js/,
loader: 'babel-loader',
},
{
Expand Down Expand Up @@ -196,7 +193,6 @@ module.exports = {
new MiniCssExtractPlugin({
filename: 'main.css',
}),
new CopyWebpackPlugin([{ from: 'src/libphonenumber.js', to: './' }]),
],
node: {
fs: 'empty',
Expand Down
2 changes: 1 addition & 1 deletion example/example.js

Large diffs are not rendered by default.

446 changes: 0 additions & 446 deletions example/libphonenumber.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/main.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"babel-plugin-dynamic-import-node": "^2.2.0",
"case-sensitive-paths-webpack-plugin": "^2.1.2",
"chalk": "1.1.3",
"copy-webpack-plugin": "^4.6.0",
"coveralls": "^2.11.9",
"css-loader": "^1.0.1",
"css-modules-require-hook": "^4.0.1",
Expand Down Expand Up @@ -137,8 +136,7 @@
"src/**/*.js",
"!**/__mocks__/**",
"!**/__tests__/**",
"!src/example.js",
"!src/libphonenumber.js"
"!src/example.js"
],
"setupFiles": [
"<rootDir>/config/polyfills.js",
Expand Down
446 changes: 0 additions & 446 deletions src/libphonenumber.js

This file was deleted.

74 changes: 3 additions & 71 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1843,25 +1843,6 @@ bytes@3.0.0:
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=

cacache@^10.0.4:
version "10.0.4"
resolved "https://registry.yarnpkg.com/cacache/-/cacache-10.0.4.tgz#6452367999eff9d4188aefd9a14e9d7c6a263460"
integrity sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==
dependencies:
bluebird "^3.5.1"
chownr "^1.0.1"
glob "^7.1.2"
graceful-fs "^4.1.11"
lru-cache "^4.1.1"
mississippi "^2.0.0"
mkdirp "^0.5.1"
move-concurrently "^1.0.1"
promise-inflight "^1.0.1"
rimraf "^2.6.2"
ssri "^5.2.4"
unique-filename "^1.1.0"
y18n "^4.0.0"

cacache@^11.0.2, cacache@^11.2.0:
version "11.3.1"
resolved "https://registry.yarnpkg.com/cacache/-/cacache-11.3.1.tgz#d09d25f6c4aca7a6d305d141ae332613aa1d515f"
Expand Down Expand Up @@ -2423,20 +2404,6 @@ copy-descriptor@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"

copy-webpack-plugin@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-4.6.0.tgz#e7f40dd8a68477d405dd1b7a854aae324b158bae"
integrity sha512-Y+SQCF+0NoWQryez2zXn5J5knmr9z/9qSQt7fbL78u83rxmigOy8X5+BFn8CFSuX+nKT8gpYwJX68ekqtQt6ZA==
dependencies:
cacache "^10.0.4"
find-cache-dir "^1.0.0"
globby "^7.1.1"
is-glob "^4.0.0"
loader-utils "^1.1.0"
minimatch "^3.0.4"
p-limit "^1.0.0"
serialize-javascript "^1.4.0"

core-js@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
Expand Down Expand Up @@ -4621,18 +4588,6 @@ globby@^6.1.0:
pify "^2.0.0"
pinkie-promise "^2.0.0"

globby@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680"
integrity sha1-+yzP+UAfhgCUXfral0QMypcrhoA=
dependencies:
array-union "^1.0.1"
dir-glob "^2.0.0"
glob "^7.1.2"
ignore "^3.3.5"
pify "^3.0.0"
slash "^1.0.0"

globule@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/globule/-/globule-1.1.0.tgz#c49352e4dc183d85893ee825385eb994bb6df45f"
Expand Down Expand Up @@ -6697,7 +6652,7 @@ lru-cache@^4.0.1:
pseudomap "^1.0.1"
yallist "^2.0.0"

lru-cache@^4.1.1, lru-cache@^4.1.3:
lru-cache@^4.1.3:
version "4.1.5"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd"
integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==
Expand Down Expand Up @@ -6966,22 +6921,6 @@ minizlib@^1.1.0:
dependencies:
minipass "^2.2.1"

mississippi@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-2.0.0.tgz#3442a508fafc28500486feea99409676e4ee5a6f"
integrity sha512-zHo8v+otD1J10j/tC+VNoGK9keCuByhKovAvdn74dmxJl9+mWHnx6EMsDN4lgRoMI/eYo2nchAxniIbUPb5onw==
dependencies:
concat-stream "^1.5.0"
duplexify "^3.4.2"
end-of-stream "^1.1.0"
flush-write-stream "^1.0.0"
from2 "^2.1.0"
parallel-transform "^1.1.0"
pump "^2.0.1"
pumpify "^1.3.3"
stream-each "^1.1.0"
through2 "^2.0.0"

mississippi@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022"
Expand Down Expand Up @@ -7675,7 +7614,7 @@ p-is-promise@^1.1.0:
resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-1.1.0.tgz#9c9456989e9f6588017b0434d56097675c3da05e"
integrity sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=

p-limit@^1.0.0, p-limit@^1.1.0:
p-limit@^1.1.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
dependencies:
Expand Down Expand Up @@ -8504,7 +8443,7 @@ public-encrypt@^4.0.0:
parse-asn1 "^5.0.0"
randombytes "^2.0.1"

pump@^2.0.0, pump@^2.0.1:
pump@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909"
integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==
Expand Down Expand Up @@ -9714,13 +9653,6 @@ sshpk@^1.7.0:
jsbn "~0.1.0"
tweetnacl "~0.14.0"

ssri@^5.2.4:
version "5.3.0"
resolved "https://registry.yarnpkg.com/ssri/-/ssri-5.3.0.tgz#ba3872c9c6d33a0704a7d71ff045e5ec48999d06"
integrity sha512-XRSIPqLij52MtgoQavH/x/dU1qVKtWUAAZeOHsR9c2Ddi4XerFy3mc1alf+dLJKl9EUIm/Ht+EowFkTUOA6GAQ==
dependencies:
safe-buffer "^5.1.1"

ssri@^6.0.0:
version "6.0.1"
resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8"
Expand Down

0 comments on commit 375c6bc

Please sign in to comment.