import { copyAll , Task } from '../lib' ; export const CopySource = { description : 'Copying source into platform-generic build directory' , async run ( config , log , build ) { await copyAll ( config . resolveFromRepo ( ) , build . resolvePath ( ) , { dot : false , select : [ 'yarn.lock' , '.npmrc' , 'src/**' , '!src/**/*.{test,test.mocks,mock}.{js,ts,tsx}' , '!src/**/mocks.ts' , '!src/**/{target,__tests__,__snapshots__,__mocks__,integration_tests,__fixtures__}/**' , '!src/core/server/core_app/assets/favicons/favicon.distribution.png' , '!src/core/server/core_app/assets/favicons/favicon.distribution.svg' , '!src/test_utils/**' , '!src/fixtures/**' , '!src/cli/repl/**' , '!src/cli*/dev.js' , '!src/functional_test_runner/**' , '!src/dev/**' , '!**/jest.config.js' , '!src/plugins/telemetry/schema/**' , '!src/setup_node_env/index.js' , '!**/public/**/*.{js,ts,tsx,json,scss}' , 'typings/**' , 'config/kibana.yml' , 'config/node.options' , 'tsconfig*.json' , '.i18nrc.json' , 'kibana.d.ts' , ] , } ) ; } , } ;