fluentui-react-native/scripts/just.config.js

44 строки
1.3 KiB
JavaScript
Исходник Обычный вид История

// @ts-check
const { task, series, parallel, option, argv, tscTask, cleanTask, eslintTask, prettierTask, prettierCheckTask } = require('just-scripts');
const path = require('path');
const srcPath = path.join(process.cwd(), 'src');
const libPath = path.join(process.cwd(), 'lib');
const checkPublishing = () => {
const { checkPublishingTask } = require('./lib/tasks/checkPublishingTask');
return checkPublishingTask();
};
const checkForModifiedFiles = () => {
const { checkForModifiedFiles } = require('./lib/tasks/checkForModifiedFilesTask');
return checkForModifiedFiles();
};
module.exports = function preset() {
option('production');
task(
'ts',
tscTask({
pretty: true,
allowJs: true,
target: 'es6',
outDir: 'lib',
module: 'commonjs',
...(argv().production && { inlineSources: true, sourceRoot: path.relative(libPath, srcPath) }),
}),
Bundling, jest improvements, adding windows tester (#145) * add initial windows template * minor updates to configuration * rename tester package * update fluent-tester deps * pull experiments/tester out of the compilation * move tester sources to fluent-tester * more file changes * switch the bin name from just-script to fluent-scripts to disambiguate names * get bundling working in fluent-tester for win32 * unhoist RN to unblock win32 * move last few files from experiments/tester * Change files * add .DS_Store to root gitignore * more config and babel updates * fix build/bundling errors after syncing master * fixed metro bundling and start to build rn tools package * restore checkbox test * move checkbox test to match pattern from other components * clean up unused files in scripts * fix build errors from merge and script transfer * fix final bundling issues * Change files * more updates to fix configurations * remove demo and experimental web controls * add pressability from RN 0.63 and rework interactive hooks * remove win32 references from the tester * move metro task to build tools * rename file * fix windows and win32 bundles * improve overall bundling task workflow * fix some win32 build errors * add some configuration versatility * add server option to metro task * add postinstall script to update caches * attempts to make XAML version reference the right bundle * enable jest tests for Text and Separator * Change files * update yarn.lock * write windows bundle to dist
2020-04-03 23:21:30 +03:00
);
task('depcheck', checkPublishing);
task('lint', eslintTask({ files: ['src/'] }));
task('prettier', () => (argv().fix ? prettierTask : prettierCheckTask));
task('cleanlib', cleanTask([libPath]));
task('checkForModifiedFiles', checkForModifiedFiles);
task('build', series('cleanlib', parallel('lint', 'ts')));
Bundling, jest improvements, adding windows tester (#145) * add initial windows template * minor updates to configuration * rename tester package * update fluent-tester deps * pull experiments/tester out of the compilation * move tester sources to fluent-tester * more file changes * switch the bin name from just-script to fluent-scripts to disambiguate names * get bundling working in fluent-tester for win32 * unhoist RN to unblock win32 * move last few files from experiments/tester * Change files * add .DS_Store to root gitignore * more config and babel updates * fix build/bundling errors after syncing master * fixed metro bundling and start to build rn tools package * restore checkbox test * move checkbox test to match pattern from other components * clean up unused files in scripts * fix build errors from merge and script transfer * fix final bundling issues * Change files * more updates to fix configurations * remove demo and experimental web controls * add pressability from RN 0.63 and rework interactive hooks * remove win32 references from the tester * move metro task to build tools * rename file * fix windows and win32 bundles * improve overall bundling task workflow * fix some win32 build errors * add some configuration versatility * add server option to metro task * add postinstall script to update caches * attempts to make XAML version reference the right bundle * enable jest tests for Text and Separator * Change files * update yarn.lock * write windows bundle to dist
2020-04-03 23:21:30 +03:00
task('no-op', () => {});
task('clean', 'no-op');
};