mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-16 12:11:55 -06:00
deploy: specify files to include when copying packages for dist
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"test": "gulp test"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@cypress/bower-kendo-ui": "0.0.2",
|
||||
"angular": "^1.3.1",
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
"bin": {
|
||||
"cypress-electron": "./bin/cypress-electron"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@cypress/releaser": "0.1.12",
|
||||
"chai": "^3.5.0",
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
"lint": "$(bin-up eslint) --fix *.js bin/*.js lib/*.js test/*.js",
|
||||
"pretest": "npm run lint"
|
||||
},
|
||||
"files": [
|
||||
"cypress",
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@cypress/releaser": "0.1.12",
|
||||
"bin-up": "^1.0.1",
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
"https": "node https.js",
|
||||
"release": "releaser"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@cypress/releaser": "0.1.12",
|
||||
"chai": "^3.5.0",
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
"lint-coffee": "../coffee/node_modules/.bin/coffeelint test/*.coffee test/**/*.coffee",
|
||||
"format-ts": "prettier --no-semi --single-quote --write lib/*.ts lib/**/*.ts"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@cypress/releaser": "0.1.12",
|
||||
"@types/bluebird": "^3.5.3",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "@packages/reporter",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"main": "lib/reporter",
|
||||
"main": "lib/reporter.js",
|
||||
"browser": "src/main",
|
||||
"scripts": {
|
||||
"postinstall": "echo '@packages/reporter needs: npm run build'",
|
||||
@@ -14,6 +14,10 @@
|
||||
"test": "node ./scripts/test.js",
|
||||
"lint": "$(bin-up eslint) --fix lib/*.js scripts/*.js src/*.js* src/**/*.js*"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"dist"
|
||||
],
|
||||
"browserify": {
|
||||
"transform": [
|
||||
[
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"lib/runner.js"
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@cypress/react-tooltip": "^0.2.4",
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
"coveralls": "cat ./coverage/lcov.info | coveralls",
|
||||
"lint": "../coffee/node_modules/.bin/coffeelint test/*.coffee test/unit/*.coffee test/integration/*.coffee"
|
||||
},
|
||||
"files": [
|
||||
"config",
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"body-parser": "1.12.4",
|
||||
"chokidar-cli": "^1.2.0",
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"test-watch": "NODE_ENV=test mocha --watch",
|
||||
"clean-deps": "rm -rf node_modules"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"dependencies": {
|
||||
"socket.io": "1.4.5",
|
||||
"socket.io-client": "1.4.5"
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"build": "gulp build",
|
||||
"test": "echo 'Nothing to test yet'"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@cypress/icons": "0.5.4",
|
||||
"gulp": "^3.9.1"
|
||||
|
||||
@@ -60,12 +60,12 @@ module.exports = (platform, version) ->
|
||||
|
||||
Promise
|
||||
.bind(@)
|
||||
.then(cleanupPlatform)
|
||||
.then(buildPackages)
|
||||
# .then(cleanupPlatform)
|
||||
# .then(buildPackages)
|
||||
.then(copyPackages)
|
||||
.then(npmInstallPackages)
|
||||
.then(createRootPackage)
|
||||
.then(symlinkPackages)
|
||||
# .then(npmInstallPackages)
|
||||
# .then(createRootPackage)
|
||||
# .then(symlinkPackages)
|
||||
# .then(@convertCoffeeToJs)
|
||||
# .then(@obfuscate)
|
||||
# .then(@cleanupSrc)
|
||||
|
||||
@@ -47,6 +47,7 @@ copyAllToDist = (distDir) ->
|
||||
## and convert to relative paths
|
||||
DEFAULT_PATHS
|
||||
.concat(json.files or [])
|
||||
.concat(json.main or [])
|
||||
.map (file) ->
|
||||
path.join(pkg, file)
|
||||
.map(copyRelativePathToDist, {concurrency: 1})
|
||||
@@ -70,7 +71,6 @@ copyAllToDist = (distDir) ->
|
||||
.map(copyPackage, {concurrency: 1})
|
||||
.then ->
|
||||
console.log("Finished Copying", new Date() - started)
|
||||
.delay(10000)
|
||||
|
||||
npmInstallAll = (pathToPackages) ->
|
||||
## 1,060,495,784 bytes (1.54 GB on disk) for 179,156 items
|
||||
|
||||
Reference in New Issue
Block a user