Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions azure-pipelines.perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ jobs:
uniqueId: 'perfComment9424'

- script: |
yarn stats:build
yarn northstar:stats:build
condition: eq(variables.isPR, false)
displayName: Bundle Statistics (master only)

- script: |
yarn perf
yarn northstar:perf
condition: eq(variables.isPR, false)
displayName: Performance Tests (master only)

# HEADS UP: also see tag-version-prefix in fluentui-publish.js
- script: |
yarn stats:save --tag=`git tag --points-at HEAD | grep ^@fluentui/react-northstar_v | grep -o 'northstar_v.*'`
yarn northstar:stats:save --tag=`git tag --points-at HEAD | grep ^@fluentui/react-northstar_v | grep -o 'northstar_v.*'`
condition: eq(variables.isPR, false)
displayName: Save Statistics to DB (master only)
env:
Expand Down
8 changes: 3 additions & 5 deletions azure-pipelines.release-fluentui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ extends:
today=`date +%Y-%m-%d`
echo date today $today
echo "##vso[task.setvariable variable=date]$today"
yarn release:fluentui:pack-nightly
yarn northstar:release pack-nightly

- task: AzureUpload@2
displayName: '[Nightly] Upload tarballs'
Expand Down Expand Up @@ -132,9 +132,7 @@ extends:
echo "registry=https://registry.npmjs.org/" >> packages/fluentui/.npmrc
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> packages/fluentui/.npmrc

yarn release:fluentui:$(releaseVersion) --yes

yarn release:fluentui:post-validation
yarn northstar:release bump $(releaseVersion) --yes

- template: .devops/templates/cleanup.yml@self

Expand Down Expand Up @@ -203,7 +201,7 @@ extends:
inputs:
script: |
echo deployBasePath $(deployBasePath) docsiteVersion $(docsiteVersion) nightlyReleaseDate $(nightlyReleaseDate)
NODE_ENV=production yarn build:fluentui:docs
NODE_ENV=production yarn northstar:build:docs

- task: AzureUpload@2
displayName: Upload to Azure
Expand Down
24 changes: 7 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"dedupe": "npx yarn-deduplicate --strategy fewer",
"build": "lage build --verbose",
"build:codesandbox": "yarn build --to @fluentui/react --to @fluentui/react-components",
"build:fluentui:docs": "gulp build:docs",
"buildci": "lage build test lint type-check test-ssr verify-packaging --verbose",
"builddemo": "yarn build --to public-docsite-resources",
"buildto": "lage build --verbose --to",
"buildto:lerna": "node ./scripts/executors/buildTo.js",
"bundle": "lage bundle --verbose",
"change": "beachball change --no-commit",
"check:change": "beachball check",
Expand All @@ -36,30 +34,22 @@
"generate-version-files": "node -r ./scripts/ts-node/register ./scripts/generators/generate-version-files",
"lint": "lage lint --verbose",
"lint:log": "FORCE_COLOR=0 yarn lint > lint.log 2>&1",
"lint:log:lerna": "FORCE_COLOR=0 lerna run lint --stream --no-bail > lint.log 2>&1",
"perf": "yarn workspace @fluentui/perf perf:test",
"perf:debug": "yarn workspace @fluentui/perf perf:test:debug",
"postinstall": "node ./scripts/package-manager/postinstall.js",
"preinstall": "node ./scripts/package-manager/use-yarn-please.js",
"publish:beachball": "beachball publish -b origin/master --access public -y",
"rebuild": "node ./scripts/executors/invalidate-just-cache.js && yarn build --reset-cache",
"release:fluentui:canary": "node -r ./scripts/ts-node/register ./scripts/fluentui-publish publish-canary",
"release:fluentui:minor": "node -r ./scripts/ts-node/register ./scripts/fluentui-publish publish-minor",
"release:fluentui:pack-nightly": "node -r ./scripts/ts-node/register ./scripts/fluentui-publish pack-nightly",
"release:fluentui:patch": "node -r ./scripts/ts-node/register ./scripts/fluentui-publish publish-patch",
"release:fluentui:post-validation": "node -r ./scripts/ts-node/register ./scripts/fluentui-publish post-publish",
"northstar:release": "node ./scripts/fluentui-publish",
"northstar:build:docs": "yarn workspace @fluentui/docs build",
"northstar:start": "yarn workspace @fluentui/docs start",
"northstar:perf": "yarn workspace @fluentui/perf perf:test",
"northstar:stats:build": "gulp stats",
"northstar:stats:save": "gulp stats:save",
"northstar:test:circulars": "gulp test:circulars:run",
"rename-package": "node -r ./scripts/ts-node/register ./scripts/generators/rename-package.ts",
"run:published": "node ./scripts/executors/runPublished.js",
"runto:lerna": "node ./scripts/executors/runTo.js",
"scrub": "node ./scripts/executors/scrub.js",
"start": "node ./scripts/executors/start.js",
"start:northstar": "yarn workspace @fluentui/docs start",
"stats:build": "gulp stats",
"stats:save": "gulp stats:save",
"test": "lage test --verbose",
"test:fluentui:circulars": "gulp test:circulars:run",
"test:fluentui:e2e": "yarn workspace @fluentui/e2e test",
"test:fluentui:projects": "yarn workspace @fluentui/projects-test test",
"update-snapshots": "lage update-snapshots --verbose"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/fluentui/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ To contribute to packages in this folder, follow [these setup instructions](setu
From repo root:

```sh
yarn start # start doc site: choose `@fluentui/docs`
yarn northstar:start # start doc site: choose `@fluentui/docs`

yarn test # run all packages' tests once

yarn build # build all packages
yarn build:fluentui:docs # build docs
yarn northstar:build:docs # build docs

yarn lint # lint all packages

yarn prettier # run prettier on changed files
yarn format # run prettier on changed files
```

From an individual under `packages/fluentui`, such as `packages/fluentui/react-northstar`:
Expand Down
4 changes: 2 additions & 2 deletions packages/fluentui/test-a-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ Finding the right number of `iterations` is a balancing act between having a fas
Run test and watch:

```
yarn perf:test
yarn northstar:perf
```

After running `perf:test`, results can be viewed in the `packages/fluentui/perf-test-northstar/dist` folder with the main entry file being `packages/fluentui/perf-test-northstar/dist/perfCounts.html`.
After running `northstar:perf`, results can be viewed in the `packages/fluentui/perf-test-northstar/dist` folder with the main entry file being `packages/fluentui/perf-test-northstar/dist/perfCounts.html`.

There are more detailed commands as well (these must be run from `packages/fluentui/perf-test-northstar` directory):

Expand Down
31 changes: 0 additions & 31 deletions scripts/executors/buildTo.js

This file was deleted.

101 changes: 0 additions & 101 deletions scripts/executors/runTo.js

This file was deleted.

6 changes: 6 additions & 0 deletions scripts/fluentui-publish/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { joinPathFragments } = require('@nx/devkit');
const { registerTsProject } = require('nx/src/utils/register');

registerTsProject(joinPathFragments(__dirname, '.'), 'tsconfig.lib.json');

require('./index');
Loading