Switch to replace-x and exclude node_modules from replacement

This commit is contained in:
Renée Kooi 2018-02-05 15:23:06 +01:00
parent 64c76593a8
commit c3867f3203
No known key found for this signature in database
GPG key ID: 8CDD5F0BC448F040
2 changed files with 175 additions and 59 deletions

230
package-lock.json generated
View file

@ -4767,6 +4767,12 @@
"es6-symbol": "3.1.1"
}
},
"es5-shim": {
"version": "4.5.10",
"resolved": "https://registry.npmjs.org/es5-shim/-/es5-shim-4.5.10.tgz",
"integrity": "sha512-vmryBdqKRO8Ei9LJ4yyEk/EOmAOGIagcHDYPpTAi6pot4IMHS1AC2q5cTKPmydpijg2iX8DVmCuqgrNxIWj8Yg==",
"dev": true
},
"es6-iterator": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.1.tgz",
@ -4810,6 +4816,12 @@
"event-emitter": "0.3.5"
}
},
"es6-shim": {
"version": "0.35.3",
"resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.3.tgz",
"integrity": "sha1-m/tzY/7//4emzbbNk+QF7DxLbyY=",
"dev": true
},
"es6-symbol": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz",
@ -4832,6 +4844,23 @@
"es6-symbol": "3.1.1"
}
},
"es7-shim": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/es7-shim/-/es7-shim-6.0.0.tgz",
"integrity": "sha1-DEMLQLhQWtFVcHIajY3U6wxVMVU=",
"dev": true,
"requires": {
"array-includes": "3.0.3",
"object.entries": "1.0.4",
"object.getownpropertydescriptors": "2.0.3",
"object.values": "1.0.4",
"string-at": "1.0.1",
"string.prototype.padend": "3.0.0",
"string.prototype.padstart": "3.0.0",
"string.prototype.trimleft": "2.0.0",
"string.prototype.trimright": "2.0.0"
}
},
"escape-html": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
@ -7786,6 +7815,12 @@
"isarray": "2.0.1"
}
},
"has-color": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz",
"integrity": "sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=",
"dev": true
},
"has-cors": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz",
@ -10180,6 +10215,12 @@
"integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
"dev": true
},
"json3": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz",
"integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=",
"dev": true
},
"json5": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz",
@ -11981,22 +12022,6 @@
"integrity": "sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8=",
"dev": true
},
"nomnom": {
"version": "1.6.2",
"resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.6.2.tgz",
"integrity": "sha1-hKZqJgF0QI/Ft3oY+IjszET7aXE=",
"requires": {
"colors": "0.5.1",
"underscore": "1.4.4"
},
"dependencies": {
"colors": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/colors/-/colors-0.5.1.tgz",
"integrity": "sha1-fQAj6usVTo7p/Oddy5I9DtFmd3Q="
}
}
},
"nopt": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
@ -12385,6 +12410,18 @@
}
}
},
"object.entries": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.0.4.tgz",
"integrity": "sha1-G/mk3SKI9bM/Opk9JXZh8F0WGl8=",
"dev": true,
"requires": {
"define-properties": "1.1.2",
"es-abstract": "1.7.0",
"function-bind": "1.1.0",
"has": "1.0.1"
}
},
"object.getownpropertydescriptors": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz",
@ -12405,6 +12442,18 @@
"is-extendable": "0.1.1"
}
},
"object.values": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/object.values/-/object.values-1.0.4.tgz",
"integrity": "sha1-5STaCbT2b/Bd9FdUbscqyZ8TBpo=",
"dev": true,
"requires": {
"define-properties": "1.1.2",
"es-abstract": "1.7.0",
"function-bind": "1.1.0",
"has": "1.0.1"
}
},
"on-finished": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
@ -14328,37 +14377,6 @@
"is-finite": "1.0.2"
}
},
"replace": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/replace/-/replace-0.3.0.tgz",
"integrity": "sha1-YAgXIRiGWFlatqeU63/ty0yNOcc=",
"requires": {
"colors": "0.5.1",
"minimatch": "0.2.14",
"nomnom": "1.6.2"
},
"dependencies": {
"colors": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/colors/-/colors-0.5.1.tgz",
"integrity": "sha1-fQAj6usVTo7p/Oddy5I9DtFmd3Q="
},
"lru-cache": {
"version": "2.7.3",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz",
"integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI="
},
"minimatch": {
"version": "0.2.14",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz",
"integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=",
"requires": {
"lru-cache": "2.7.3",
"sigmund": "1.0.1"
}
}
}
},
"replace-comments-x": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/replace-comments-x/-/replace-comments-x-2.0.0.tgz",
@ -14368,6 +14386,66 @@
"to-string-x": "1.4.2"
}
},
"replace-x": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/replace-x/-/replace-x-1.5.0.tgz",
"integrity": "sha512-R/4RRt0nGH9heBl8oVz6TroGJ/gSj9NfiLSY/EveAi2mtyCd4aQkEN3dN4VJmdEVy7KmHvzcNouxMMsWw77CRg==",
"dev": true,
"requires": {
"colors": "1.1.2",
"es5-shim": "4.5.10",
"es6-shim": "0.35.3",
"es7-shim": "6.0.0",
"is-regex": "1.0.4",
"json3": "3.3.2",
"lodash.isnull": "3.0.0",
"minimatch": "3.0.4",
"nomnom": "1.8.1",
"validate.io-undefined": "1.0.3",
"xregexp": "3.2.0"
},
"dependencies": {
"ansi-styles": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz",
"integrity": "sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=",
"dev": true
},
"chalk": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz",
"integrity": "sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=",
"dev": true,
"requires": {
"ansi-styles": "1.0.0",
"has-color": "0.1.7",
"strip-ansi": "0.1.1"
}
},
"nomnom": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.8.1.tgz",
"integrity": "sha1-IVH3Ikcrp55Qp2/BJbuMjy5Nwqc=",
"dev": true,
"requires": {
"chalk": "0.4.0",
"underscore": "1.6.0"
}
},
"strip-ansi": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz",
"integrity": "sha1-OeipjQRNFQZgq+SmgIrPcLt7yZE=",
"dev": true
},
"underscore": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz",
"integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=",
"dev": true
}
}
},
"request": {
"version": "2.81.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz",
@ -15006,11 +15084,6 @@
"integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==",
"dev": true
},
"sigmund": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz",
"integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA="
},
"signal-exit": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
@ -15372,6 +15445,17 @@
"integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=",
"dev": true
},
"string-at": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/string-at/-/string-at-1.0.1.tgz",
"integrity": "sha1-c7dVrbqsPheNq+fk19ed5WAD+zc=",
"dev": true,
"requires": {
"define-properties": "1.1.2",
"es-abstract": "1.7.0",
"function-bind": "1.1.0"
}
},
"string-length": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/string-length/-/string-length-1.0.1.tgz",
@ -15403,6 +15487,17 @@
"function-bind": "1.1.0"
}
},
"string.prototype.padstart": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/string.prototype.padstart/-/string.prototype.padstart-3.0.0.tgz",
"integrity": "sha1-W8+tOfRkm7LQMSkuGbzwtRDUskI=",
"dev": true,
"requires": {
"define-properties": "1.1.2",
"es-abstract": "1.7.0",
"function-bind": "1.1.0"
}
},
"string.prototype.trim": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz",
@ -15414,6 +15509,26 @@
"function-bind": "1.1.0"
}
},
"string.prototype.trimleft": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.0.0.tgz",
"integrity": "sha1-aLaqjhYsaoDnbjqKDC50cYbicf8=",
"dev": true,
"requires": {
"define-properties": "1.1.2",
"function-bind": "1.1.0"
}
},
"string.prototype.trimright": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.0.0.tgz",
"integrity": "sha1-q0pW2AKgH75yk+EehPJNyBZGYd0=",
"dev": true,
"requires": {
"define-properties": "1.1.2",
"function-bind": "1.1.0"
}
},
"string_decoder": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.2.tgz",
@ -16244,11 +16359,6 @@
}
}
},
"underscore": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz",
"integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ="
},
"uniq": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",
@ -17903,6 +18013,12 @@
"lodash": "4.17.4"
}
},
"xregexp": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/xregexp/-/xregexp-3.2.0.tgz",
"integrity": "sha1-yzYBmHv+JpW1hAAMGPHEqMMih44=",
"dev": true
},
"xtend": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",

View file

@ -88,6 +88,7 @@
"postcss": "^6.0.16",
"pre-commit": "^1.2.2",
"redux": "^3.7.2",
"replace-x": "^1.5.0",
"sass": "0.5.0",
"tape": "^4.8.0",
"temp-write": "^3.4.0",
@ -111,7 +112,6 @@
"preact": "^8.2.7",
"prettier-bytes": "1.0.4",
"prop-types": "^15.5.10",
"replace": "0.3.0",
"socket.io-client": "^2.0.4",
"tus-js-client": "^1.4.5",
"url-parse": "^1.2.0",
@ -132,7 +132,7 @@
"release:major": "env SEMANTIC=major npm run release",
"release:minor": "env SEMANTIC=minor npm run release",
"release:patch": "env SEMANTIC=patch npm run release",
"replace:versions": "replace -r 'uppy/v\\d+\\.\\d+\\.\\d+/dist' \"uppy/v$npm_package_version/dist\" ./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/",
"replace:versions": "replace-x -r 'uppy/v\\d+\\.\\d+\\.\\d+/dist' \"uppy/v$npm_package_version/dist\" ./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/ --exclude=node_modules",
"release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && npm run replace:versions && git commit -m \"Change Uppy version references to v$npm_package_version\" ./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/ && git push && git push --tags && npm publish",
"start:server": "node bin/start-server",
"start": "npm-run-all --parallel watch start:server web:preview",