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,CAAC,WAAW,EAAE,iBAAS,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport {\r\n CopyTask,\r\n copyStaticAssets,\r\n jest,\r\n task,\r\n watch,\r\n serial,\r\n parallel,\r\n IExecutable,\r\n setConfig\r\n} from '@microsoft/gulp-core-build';\r\nimport { tscCmd, tslintCmd, apiExtractor } from '@microsoft/gulp-core-build-typescript';\r\nimport { instrument, mocha } from '@microsoft/gulp-core-build-mocha';\r\n\r\nexport * from '@microsoft/gulp-core-build';\r\nexport * from '@microsoft/gulp-core-build-typescript';\r\nexport * from '@microsoft/gulp-core-build-mocha';\r\n\r\n// pre copy and post copy allows you to specify a map of dest: [sources] to copy from one place to another.\r\n/**\r\n * @public\r\n */\r\nexport const preCopy: CopyTask = new CopyTask();\r\npreCopy.name = 'pre-copy';\r\n\r\n/**\r\n * @public\r\n */\r\nexport const postCopy: CopyTask = new CopyTask();\r\npostCopy.name = 'post-copy';\r\n\r\nconst PRODUCTION: boolean = process.argv.indexOf('--production') !== -1 || process.argv.indexOf('--ship') !== -1;\r\nsetConfig({\r\n production: PRODUCTION,\r\n shouldWarningsFailBuild: PRODUCTION\r\n});\r\n\r\nconst buildSubtask: IExecutable = serial(\r\n preCopy,\r\n parallel(tslintCmd, tscCmd, copyStaticAssets),\r\n apiExtractor,\r\n postCopy\r\n);\r\n\r\n/**\r\n * @public\r\n */\r\nexport const buildTasks: IExecutable = task('build', buildSubtask);\r\n\r\n/**\r\n * @public\r\n */\r\nexport const testTasks: IExecutable = task('test', serial(buildSubtask, mocha, jest));\r\n\r\n/**\r\n * @public\r\n */\r\nexport const defaultTasks: IExecutable = task('default', serial(buildSubtask, instrument, mocha, jest));\r\n\r\ntask('watch', watch('src/**.ts', testTasks));\r\n"]}
\No newline at end of file