@pnp/cli-microsoft365
Version:
Manage Microsoft 365 and SharePoint Framework projects on any platform
174 lines (171 loc) • 12.2 kB
JavaScript
import { FN001001_DEP_microsoft_sp_core_library } from './rules/FN001001_DEP_microsoft_sp_core_library.js';
import { FN001002_DEP_microsoft_sp_lodash_subset } from './rules/FN001002_DEP_microsoft_sp_lodash_subset.js';
import { FN001003_DEP_microsoft_sp_office_ui_fabric_core } from './rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js';
import { FN001004_DEP_microsoft_sp_webpart_base } from './rules/FN001004_DEP_microsoft_sp_webpart_base.js';
import { FN001011_DEP_microsoft_sp_dialog } from './rules/FN001011_DEP_microsoft_sp_dialog.js';
import { FN001012_DEP_microsoft_sp_application_base } from './rules/FN001012_DEP_microsoft_sp_application_base.js';
import { FN001013_DEP_microsoft_decorators } from './rules/FN001013_DEP_microsoft_decorators.js';
import { FN001014_DEP_microsoft_sp_listview_extensibility } from './rules/FN001014_DEP_microsoft_sp_listview_extensibility.js';
import { FN001021_DEP_microsoft_sp_property_pane } from './rules/FN001021_DEP_microsoft_sp_property_pane.js';
import { FN001023_DEP_microsoft_sp_component_base } from './rules/FN001023_DEP_microsoft_sp_component_base.js';
import { FN001024_DEP_microsoft_sp_diagnostics } from './rules/FN001024_DEP_microsoft_sp_diagnostics.js';
import { FN001025_DEP_microsoft_sp_dynamic_data } from './rules/FN001025_DEP_microsoft_sp_dynamic_data.js';
import { FN001026_DEP_microsoft_sp_extension_base } from './rules/FN001026_DEP_microsoft_sp_extension_base.js';
import { FN001027_DEP_microsoft_sp_http } from './rules/FN001027_DEP_microsoft_sp_http.js';
import { FN001028_DEP_microsoft_sp_list_subscription } from './rules/FN001028_DEP_microsoft_sp_list_subscription.js';
import { FN001029_DEP_microsoft_sp_loader } from './rules/FN001029_DEP_microsoft_sp_loader.js';
import { FN001030_DEP_microsoft_sp_module_interfaces } from './rules/FN001030_DEP_microsoft_sp_module_interfaces.js';
import { FN001031_DEP_microsoft_sp_odata_types } from './rules/FN001031_DEP_microsoft_sp_odata_types.js';
import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_microsoft_sp_page_context.js';
import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
import { FN002004_DEVDEP_gulp } from './rules/FN002004_DEVDEP_gulp.js';
import { FN002007_DEVDEP_ajv } from './rules/FN002007_DEVDEP_ajv.js';
import { FN002021_DEVDEP_rushstack_eslint_config } from './rules/FN002021_DEVDEP_rushstack_eslint_config.js';
import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
import { FN002026_DEVDEP_typescript } from './rules/FN002026_DEVDEP_typescript.js';
import { FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3 } from './rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js';
import { FN002030_DEVDEP_microsoft_spfx_web_build_rig } from './rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js';
import { FN002031_DEVDEP_rushstack_heft } from './rules/FN002031_DEVDEP_rushstack_heft.js';
import { FN002032_DEVDEP_typescript_eslint_parser } from './rules/FN002032_DEVDEP_typescript_eslint_parser.js';
import { FN002033_DEVDEP_css_loader } from './rules/FN002033_DEVDEP_css_loader.js';
import { FN002034_DEVDEP_microsoft_spfx_heft_plugins } from './rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js';
import { FN002035_DEVDEP_types_heft_jest } from './rules/FN002035_DEVDEP_types_heft_jest.js';
import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
import { FN010011_YORC_useGulp } from './rules/FN010011_YORC_useGulp.js';
import { FN014003_CODE_launch } from './rules/FN014003_CODE_launch.js';
import { FN015005_FILE_src_index_ts } from './rules/FN015005_FILE_src_index_ts.js';
import { FN015010_FILE_gulpfile_js } from './rules/FN015010_FILE_gulpfile_js.js';
import { FN015011_FILE_tsconfig_json } from './rules/FN015011_FILE_tsconfig_json.js';
import { FN015014_FILE_config_rig_json } from './rules/FN015014_FILE_config_rig_json.js';
import { FN015015_FILE_config_typescript_json } from './rules/FN015015_FILE_config_typescript_json.js';
import { FN020001_RES_types_react } from './rules/FN020001_RES_types_react.js';
import { FN021001_PKG_main } from './rules/FN021001_PKG_main.js';
import { FN021004_PKG_scripts_build } from './rules/FN021004_PKG_scripts_build.js';
import { FN021005_PKG_scripts_test } from './rules/FN021005_PKG_scripts_test.js';
import { FN021006_PKG_scripts_clean } from './rules/FN021006_PKG_scripts_clean.js';
import { FN021007_PKG_scripts_start } from './rules/FN021007_PKG_scripts_start.js';
import { FN021008_PKG_scripts_eject_webpack } from './rules/FN021008_PKG_scripts_eject_webpack.js';
import { FN027001_OVERRIDES_rushstack_heft } from './rules/FN027001_OVERRIDES_rushstack_heft.js';
import { FN023003_GITIGNORE_libdts } from './rules/FN023003_GITIGNORE_libdts.js';
import { FN023004_GITIGNORE_libcommonjs } from './rules/FN023004_GITIGNORE_libcommonjs.js';
import { FN023005_GITIGNORE_libesm } from './rules/FN023005_GITIGNORE_libesm.js';
import { FN023006_GITIGNORE_jestoutput } from './rules/FN023006_GITIGNORE_jestoutput.js';
import { FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name } from './rules/FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name.js';
import { FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount } from './rules/FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount.js';
import { FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name } from './rules/FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name.js';
import { FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount } from './rules/FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount.js';
import { FN026001_CFG_SASS_schema } from './rules/FN026001_CFG_SASS_schema.js';
import { FN026002_CFG_SASS_extends } from './rules/FN026002_CFG_SASS_extends.js';
export default [
new FN001001_DEP_microsoft_sp_core_library({ packageVersion: '1.22.0' }),
new FN001002_DEP_microsoft_sp_lodash_subset({ packageVersion: '1.22.0' }),
new FN001003_DEP_microsoft_sp_office_ui_fabric_core({ packageVersion: '1.22.0' }),
new FN001004_DEP_microsoft_sp_webpart_base({ packageVersion: '1.22.0' }),
new FN001011_DEP_microsoft_sp_dialog({ packageVersion: '1.22.0' }),
new FN001012_DEP_microsoft_sp_application_base({ packageVersion: '1.22.0' }),
new FN001014_DEP_microsoft_sp_listview_extensibility({ packageVersion: '1.22.0' }),
new FN001021_DEP_microsoft_sp_property_pane({ packageVersion: '1.22.0' }),
new FN001023_DEP_microsoft_sp_component_base({ packageVersion: '1.22.0' }),
new FN001024_DEP_microsoft_sp_diagnostics({ packageVersion: '1.22.0' }),
new FN001025_DEP_microsoft_sp_dynamic_data({ packageVersion: '1.22.0' }),
new FN001026_DEP_microsoft_sp_extension_base({ packageVersion: '1.22.0' }),
new FN001027_DEP_microsoft_sp_http({ packageVersion: '1.22.0' }),
new FN001028_DEP_microsoft_sp_list_subscription({ packageVersion: '1.22.0' }),
new FN001029_DEP_microsoft_sp_loader({ packageVersion: '1.22.0' }),
new FN001030_DEP_microsoft_sp_module_interfaces({ packageVersion: '1.22.0' }),
new FN001031_DEP_microsoft_sp_odata_types({ packageVersion: '1.22.0' }),
new FN001032_DEP_microsoft_sp_page_context({ packageVersion: '1.22.0' }),
new FN001013_DEP_microsoft_decorators({ packageVersion: '1.22.0' }),
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base({ packageVersion: '1.22.0' }),
new FN002001_DEVDEP_microsoft_sp_build_web({ packageVersion: '1.22.0', add: false }),
new FN002002_DEVDEP_microsoft_sp_module_interfaces({ packageVersion: '1.22.0' }),
new FN002004_DEVDEP_gulp({ packageVersion: '4.0.2', add: false }),
new FN002007_DEVDEP_ajv({ packageVersion: '6.12.6', add: false }),
new FN002021_DEVDEP_rushstack_eslint_config({ packageVersion: '4.5.2' }),
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx({ packageVersion: '1.22.0' }),
new FN002023_DEVDEP_microsoft_eslint_config_spfx({ packageVersion: '1.22.0' }),
new FN002026_DEVDEP_typescript({ packageVersion: '~5.8.0' }),
new FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3({ packageVersion: '0.1.0', add: false }),
new FN002030_DEVDEP_microsoft_spfx_web_build_rig({ packageVersion: '1.22.0' }),
new FN002031_DEVDEP_rushstack_heft({ packageVersion: '1.1.2' }),
new FN002032_DEVDEP_typescript_eslint_parser({ packageVersion: '8.46.2' }),
new FN002033_DEVDEP_css_loader({ packageVersion: '7.1.2' }),
new FN002034_DEVDEP_microsoft_spfx_heft_plugins({ packageVersion: '1.22.0' }),
new FN002035_DEVDEP_types_heft_jest({ packageVersion: '1.0.2' }),
new FN010001_YORC_version({ version: '1.22.0' }),
new FN010011_YORC_useGulp({ useGulp: false }),
new FN014003_CODE_launch({
contents: `{
"version": "0.2.0",
"configurations": [
{
"name": "Hosted workbench",
"type": "msedge",
"request": "launch",
"url": "https://{tenantDomain}/_layouts/workbench.aspx",
"webRoot": "$\{workspaceRoot}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "$\{webRoot}/src/*",
"webpack:///../../../src/*": "$\{webRoot}/src/*",
"webpack:///../../../../src/*": "$\{webRoot}/src/*",
"webpack:///../../../../../src/*": "$\{webRoot}/src/*"
},
"runtimeArgs": [
"--remote-debugging-port=9222",
"-incognito"
]
}
]
}`
}),
new FN015005_FILE_src_index_ts({ add: false }),
new FN015010_FILE_gulpfile_js({ add: false }),
new FN015011_FILE_tsconfig_json({
add: true, contents: `{
"extends": "./node_modules/@microsoft/spfx-web-build-rig/profiles/default/tsconfig-base.json"
}
`
}),
new FN015014_FILE_config_rig_json({
add: true, contents: `{
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@microsoft/spfx-web-build-rig"
}
`
}),
new FN015015_FILE_config_typescript_json({
add: true, contents: `{
"extends": "@microsoft/spfx-web-build-rig/profiles/default/config/typescript.json",
"staticAssetsToCopy": {
"fileExtensions": [".resx", ".jpg", ".png", ".woff", ".eot", ".ttf", ".svg", ".gif"],
"includeGlobs": ["webparts/*/loc/*.js"]
}
}
`
}),
new FN020001_RES_types_react({ packageVersion: '17.0.45' }),
new FN021001_PKG_main({ add: false }),
new FN021004_PKG_scripts_build({ script: 'heft test --clean --production && heft package-solution --production' }),
new FN021005_PKG_scripts_test({ script: 'gulp test', add: false }),
new FN021006_PKG_scripts_clean({ script: 'heft clean' }),
new FN021007_PKG_scripts_start({ script: 'heft start --clean' }),
new FN021008_PKG_scripts_eject_webpack({ script: 'heft eject-webpack' }),
new FN027001_OVERRIDES_rushstack_heft({ version: '1.1.2' }),
new FN023003_GITIGNORE_libdts(),
new FN023004_GITIGNORE_libcommonjs(),
new FN023005_GITIGNORE_libesm(),
new FN023006_GITIGNORE_jestoutput(),
new FN025002_ESLINTRCJS_rushstack_import_requires_chunk_name(),
new FN025003_ESLINTRCJS_rushstack_pair_react_dom_render_unmount(),
new FN025004_ESLINTRCJS_microsoft_spfx_import_requires_chunk_name(),
new FN025005_ESLINTRCJS_microsoft_spfx_pair_react_dom_render_unmount(),
new FN026001_CFG_SASS_schema({ schema: 'https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json' }),
new FN026002_CFG_SASS_extends({ _extends: '@microsoft/spfx-web-build-rig/profiles/default/config/sass.json' })
];
//# sourceMappingURL=upgrade-1.22.0.js.map