diff --git a/package.json b/package.json index 3fd74da17f343..5b3087f9ecf66 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "buildfast": "npm run _rushBuild", "code-style": "node common/scripts/install-run-rush.js code-style", "change": "node common/scripts/install-run-rush.js change", - "rush-update": "npm run _rushInstall && node common/scripts/install-run-rush.js update", + "rush-update": "node common/scripts/install-run-rush.js update", "generate": "npm run rush-update", "bundlesize": "cd scripts && npm run bundlesize", "bundlesizecollect": "cd scripts && npx just-scripts bundle-size-collect", diff --git a/scripts/create-package.js b/scripts/create-package.js index c12b59852ccd6..4d60d9864f7fd 100644 --- a/scripts/create-package.js +++ b/scripts/create-package.js @@ -59,8 +59,8 @@ const steps = [ { template: 'License', output: 'LICENSE' }, { template: 'Readme', output: 'README.md' }, { template: 'IndexHtml', output: 'index.html' }, + { template: 'JustConfig', output: 'just.config.js' }, { template: 'JestConfig', output: 'jest.config.js' }, - { template: 'JestDomConfig', output: 'jest.dom.config.js' }, { template: 'JsConfig', output: 'jsconfig.json' }, { template: 'PackageJson', output: 'package.json' }, { template: 'PrettierConfig', output: 'prettier.config.js' }, diff --git a/scripts/templates/create-package/EmptyJustConfig.mustache b/scripts/templates/create-package/EmptyJustConfig.mustache new file mode 100644 index 0000000000000..8e468e33d56c6 --- /dev/null +++ b/scripts/templates/create-package/EmptyJustConfig.mustache @@ -0,0 +1,3 @@ +const { preset } = require('@uifabric/build'); + +preset(); diff --git a/scripts/templates/create-package/EmptyPackageJson.mustache b/scripts/templates/create-package/EmptyPackageJson.mustache index 6108ce4a4df0a..e39c63c4e7384 100644 --- a/scripts/templates/create-package/EmptyPackageJson.mustache +++ b/scripts/templates/create-package/EmptyPackageJson.mustache @@ -20,7 +20,7 @@ "start": "npx just-scripts dev", "start-test": "npx just-scripts jest-watch", "update-snapshots": "npx just-scripts jest -u", - "just": "npx just-scripts", + "just": "npx just-scripts" }, "devDependencies": { "@types/enzyme": "{{{typesEnzyme}}}", @@ -31,6 +31,7 @@ "@types/react-dom": "{{{typesReactDom}}}", "@types/react-test-renderer": "{{{typesReactTestRenderer}}}", "@types/webpack-env": "{{{typesWebpackEnv}}}", + "@uifabric/build": "{{{uifabricBuild}}}", "@uifabric/example-app-base": "{{{uifabricExampleAppBase}}}", "@uifabric/jest-serializer-merge-styles": "{{{uifabricJestSerializerMergeStyles}}}", "@uifabric/prettier-rules": "{{{uifabricPrettierRules}}}",