mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-11 10:59:49 +08:00
Test local commands
This commit is contained in:
10
tasks/e2e.sh
10
tasks/e2e.sh
@@ -33,6 +33,16 @@ scripts_path=$PWD/`npm pack`
|
||||
# lint
|
||||
./node_modules/.bin/eslint --ignore-path .gitignore ./
|
||||
|
||||
# Test local start command
|
||||
npm start -- --smoke-test
|
||||
|
||||
# Test local build command
|
||||
npm run build
|
||||
|
||||
# Check for expected output
|
||||
test -e build/*.html || exit 1
|
||||
test -e build/*.js || exit 1
|
||||
|
||||
# Pack CLI
|
||||
cd global-cli
|
||||
npm install
|
||||
|
||||
Reference in New Issue
Block a user