microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
gulpfile.js
45lines · modeblame
b8ecee4ddigeff10 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
8ba55f4cJimmy Thomson10 years ago | 3 | |
74dba829Yuri Skorokhodov7 years ago | 4 | const gulp = require("gulp"); |
5fd423caYuri Skorokhodov7 years ago | 5 | const log = require("fancy-log"); |
74dba829Yuri Skorokhodov7 years ago | 6 | const path = require("path"); |
eda0f700EzioLi3 years ago | 7 | const { series } = require("gulp"); |
8ba55f4cJimmy Thomson10 years ago | 8 | |
c29f0740benjaminbi3 years ago | 9 | global.appRoot = path.resolve(__dirname); |
74dba829Yuri Skorokhodov7 years ago | 10 | |
589d9b66benjaminbi3 years ago | 11 | const getFormatter = require("./gulp_scripts/formatter"); |
b7b3768bbenjaminbi3 years ago | 12 | const getWebpackBundle = require("./gulp_scripts/webpackBundle"); |
| 13 | const getCleaner = require("./gulp_scripts/cleaner"); | |
| 14 | const getBuilder = require("./gulp_scripts/builder"); | |
c29f0740benjaminbi3 years ago | 15 | const getTester = require("./gulp_scripts/tester"); |
| 16 | const getWatcher = require("./gulp_scripts/watcher"); | |
a7fed1bdbenjaminbi3 years ago | 17 | const getPacker = require("./gulp_scripts/packager"); |
c29f0740benjaminbi3 years ago | 18 | const getRelease = require("./gulp_scripts/release"); |
| 19 | const getTranslator = require("./gulp_scripts/translator"); | |
a655d364benjaminbi3 years ago | 20 | |
| 21 | module.exports = { | |
589d9b66benjaminbi3 years ago | 22 | "format:prettier": getFormatter.formatPrettier, |
| 23 | "format:eslint": getFormatter.formatEslint, | |
| 24 | format: getFormatter.format, | |
| 25 | "lint:prettier": getFormatter.lintPrettier, | |
| 26 | "lint:eslint": getFormatter.lintEslint, | |
| 27 | lint: getFormatter.lint, | |
b7b3768bbenjaminbi3 years ago | 28 | "webpack-bundle": getWebpackBundle.webpackBundle, |
| 29 | clean: getCleaner.clean, | |
| 30 | build: getBuilder.buildTask, | |
| 31 | "build-dev": getBuilder.buildDev, | |
| 32 | "quick-build": gulp.series(getBuilder.buildDev), | |
c29f0740benjaminbi3 years ago | 33 | watch: getWatcher.watch, |
b7b3768bbenjaminbi3 years ago | 34 | "prod-build": getBuilder.buildProd, |
| 35 | default: gulp.series(getBuilder.buildProd), | |
c29f0740benjaminbi3 years ago | 36 | test: getTester.test, |
| 37 | "test-no-build": getTester.test, | |
| 38 | "test:coverage": getTester.testCoverage, | |
| 39 | "watch-build-test": getWatcher.watchBuildTest, | |
| 40 | package: getPacker.package, | |
| 41 | release: getRelease.release, | |
| 42 | "add-i18n": getTranslator.addi18n, | |
| 43 | "translations-export": getTranslator.translationsExport, | |
| 44 | "translations-import": getTranslator.translationImport, | |
1150f3f4EzioLi3 years ago | 45 | }; |