@microsoft/teamsfx-cli
v2.0.1-alpha.09fb224aa.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
npx eslint --plugin=@microsoft/eslint-plugin-teamsfx --rule="@microsoft/teamsfx/metrics: warn" --ignore-pattern="src/telemetry/**/*.ts" --ignore-pattern="src/cmds/**/*.ts" "src/**/*.ts" --fix
npm i @microsoft/[email protected]
Metadata
- MIT
- >=12
- Microsoft Corporation
- released 7/4/2023