mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 06:29:45 -06:00
Move deploy scripts (#205)
* root: move deploy scripts from server to top level scripts * remove postinstall download stop variable * deploy: list all dev dependencies * working on deploy run * WIP comment out obsolete run-sequence * add cypress-io/cypress-example-recipes * root: enable run all to skip package or packages by name * deploy: move coffee lint to root * deploy: make bump async * deploy: WIP update deploy + build processes for monorepo * Add cypress-io/cypress-example-module-api project build to bump * remove commas * Add project cypress-io/cypress-test-ci-environments to list of projects to test * deploy: WIP refactor classes -> functional * deploy: don't copy node_modules or prune -> just npm install * cli: consolidate important fields into monorepo root, pull out and build * all: cleanup package.json, remove versions, license, repo information -move some deps to devDeps * all: convert es5 -> es6 + fix linting * deploy: specify files to include when copying packages for dist * deploy: convert coffee script in place + remove coffee files
This commit is contained in:
@@ -5,7 +5,15 @@ const Promise = require('bluebird')
|
||||
const fs = Promise.promisifyAll(require('fs-extra'))
|
||||
|
||||
// grab the current version from the root monorepo package.json
|
||||
const { version, description } = require('../../package.json')
|
||||
const {
|
||||
version,
|
||||
description,
|
||||
author,
|
||||
homepage,
|
||||
license,
|
||||
bugs,
|
||||
repository,
|
||||
} = require('../../package.json')
|
||||
|
||||
const packageJsonSrc = path.join('package.json')
|
||||
const packageJsonDest = path.join('build', 'package.json')
|
||||
@@ -19,6 +27,11 @@ function preparePackageForNpmRelease (json) {
|
||||
_.extend(json, {
|
||||
version,
|
||||
description,
|
||||
author,
|
||||
homepage,
|
||||
license,
|
||||
bugs,
|
||||
repository,
|
||||
scripts: {
|
||||
postinstall: 'node index.js --exec install',
|
||||
size: 't=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";',
|
||||
|
||||
Reference in New Issue
Block a user