mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-22 11:40:09 +00:00
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:
parent
9cd50c2031
commit
53191447f5
4
.gitignore
vendored
4
.gitignore
vendored
@ -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*
|
||||
|
@ -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
|
||||
|
10
.travis.yml
10
.travis.yml
@ -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
|
||||
|
15
appveyor.yml
15
appveyor.yml
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,2 +1,3 @@
|
||||
engine-strict = true
|
||||
package-lock = false
|
||||
save-exact = true
|
||||
|
@ -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
11641
embark-ui/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user