build: use yarn for reproducible builds and CI

yarn.lock files are generated for embark and embark-ui, and their package.json
files and other npm related files are updated to support and require using yarn
for development of embark itself and for embark's CI.
This commit is contained in:
Michael Bradley, Jr 2018-11-15 17:36:13 -06:00 committed by Michael Bradley
parent 9cd50c2031
commit 53191447f5
10 changed files with 27187 additions and 11 deletions

4
.gitignore vendored
View File

@ -7,8 +7,10 @@ TODO
dist
embark-*.tgz
node_modules
npm-debug.log
npm-debug.log*
npm-shrinkwrap.json
package
package-lock.json
src/test/cli_shim/.cid
yarn-debug.log*
yarn-error.log*

View File

@ -3,6 +3,7 @@
.github
.travis.yml
.vscode
.yarnrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
appveyor.yml
@ -10,9 +11,13 @@ babel.config.js
dist/test
header.png
logo.png
npm-debug.log*
npm-shrinkwrap.json
package-lock.json
src
test_apps
tsconfig.json
tslint.json
yarn-debug.log*
yarn-error.log*
yarn.lock

View File

@ -3,8 +3,18 @@ os:
- linux
- osx
node_js:
- "8.11.3"
- "8"
- "10"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.12.3
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
cache:
yarn: true
install:
- yarn install
- cd embark-ui && yarn install && cd ..
- git status && test -z "$(git status --porcelain)"
script:
- npm run build:node
- npm test

View File

@ -1,15 +1,20 @@
environment:
matrix:
- nodejs_version: "8.11.3"
- nodejs_version: "8"
- nodejs_version: "10"
cache:
- "%LOCALAPPDATA%\\Yarn"
install:
# get the latest version of Node.js in a release series
- ps: Install-Product node $env:nodejs_version
# output useful info for debugging
- ps: Start-FileDownload 'https://github.com/yarnpkg/yarn/releases/download/v1.12.3/yarn-1.12.3.msi'
- cmd /c start /wait msiexec.exe /i yarn-1.12.3.msi /quiet /qn /norestart
- rm yarn-1.12.3.msi
- node --version
- npm --version
# install modules
- npm install
- yarn --version
- yarn install
- cd embark-ui && yarn install && cd ..
- git status && node -e "process.exit(require('child_process').execSync('git status --porcelain').toString().trim()===''?0:1)"
test_script:
- npm run build:node
- npm test

View File

@ -1,10 +1,15 @@
.env
.env.*
.eslintrc
.yarnrc
config
node_modules
npm-debug.log*
npm-shrinkwrap.json
package-lock.json
public
scripts
src
yarn-debug.log*
yarn-error.log*
yarn.lock

View File

@ -1,2 +1,3 @@
engine-strict = true
package-lock = false
save-exact = true

View File

@ -84,8 +84,9 @@
"workbox-webpack-plugin": "3.6.3"
},
"scripts": {
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"lint": "eslint src/",
"start": "node scripts/start.js",
"test": "node scripts/test.js"
},
"homepage": "http://localhost:8000/embark",
@ -146,5 +147,10 @@
"presets": [
"react-app"
]
},
"engines": {
"node": ">=8.11.3",
"npm": ">666",
"yarn": ">=1.12.3"
}
}

11641
embark-ui/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@ -34,11 +34,13 @@
"build:ui": "cd embark-ui && npm run build",
"clean": "rimraf dist embark-*.tgz package embark-ui/build",
"eslint": "eslint",
"install:core": "npm install",
"install:ui": "cd embark-ui && npm install",
"install:core": "yarn install",
"install:ui": "cd embark-ui && yarn install",
"install_all": "npm-run-all install:*",
"lint": "npm-run-all lint:*",
"lint:js": "eslint babel.config.js bin/embark embark-ui/src/ src/bin/ src/lib/",
"lint:js": "npm-run-all lint:js:*",
"lint:js:core": "eslint babel.config.js bin/embark src/bin/ src/lib/",
"lint:js:ui": "cd embark-ui && npm run lint",
"lint:ts": "tslint -c tslint.json 'src/**/*.ts'",
"prepublishOnly": "npm-run-all clean build test",
"test": "npm-run-all lint test:*",
@ -182,6 +184,7 @@
},
"engines": {
"node": ">=8.11.3",
"npm": ">=6.4.1"
"npm": ">666",
"yarn": ">=1.12.3"
}
}

15498
yarn.lock Normal file

File diff suppressed because it is too large Load Diff