@microsoft/teamsfx-cli
v1.1.4-alpha.ee8f842c6.0 teamsfx teamsfx-cli
copy-files
copyfiles -u 1 src/**/*.html src/**/*.css lib/
build
rimraf lib && tsc -p ./ && npm run copy-files
watch
rimraf lib && npm run copy-files && tsc -w -p ./
package
rimraf lib && node --max-old-space-size=4096 node_modules/webpack/bin/webpack.js --mode production --config ./webpack.config.js
prepack
npm run package
test:e2e
npm run test:e2e:clean && npm run test:e2e:parallel
test:e2e:clean
NODE_OPTIONS="--unhandled-rejections=strict" ts-node tests/e2e/clean.ts
test:e2e:parallel
mocha --parallel --reporter @mochajs/json-file-reporter "tests/e2e/**/*.tests.ts"
test:e2e:smoke
mocha --reporter @mochajs/json-file-reporter "tests/e2e/smoke/*.tests.ts"
test:e2e:others
mocha --reporter @mochajs/json-file-reporter "tests/e2e/{,!(smoke)}/*.tests.ts"
test:unit
nyc --no-clean mocha "tests/unit/**/*.tests.ts"
check-format
prettier --list-different --config .prettierrc.json --ignore-path .prettierignore "{src,tests}/**/*.ts" "*.{js,json}"
format
prettier --write --config .prettierrc.json --ignore-path .prettierignore "{src,tests}/**/*.ts" "*.{js,json}"
lint:fix
eslint "src/**/*.ts" "tests/**/*.ts" --fix
lint
eslint "src/**/*.ts" "tests/**/*.ts"
check-sensitive
npx eslint --plugin 'no-secrets' --cache --ignore-pattern 'package.json' --ignore-pattern 'package-lock.json'
precommit
npm run check-sensitive && lint-staged
postinstall
node deletePS1.js
build-metrics
npm install ../metrics-ts && npm install ../eslint-metrics --save-dev && npx eslint --plugin=metrics --rule="metrics/add-metrics: warn" --ignore-pattern="src/telemetry/**/*.ts" --ignore-pattern="src/cmds/**/*.ts" "src/**/*.ts" --fix && jq '.dependencies["@microsoft/metrics-ts"]="*"' package.json > package.json.tmp && mv package.json.tmp package.json
npm i @microsoft/[email protected]
Metadata
- MIT
- >=12
- Microsoft Corporation
- released 10/28/2022