Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function basicPreset() {
// this adds a resolve path for the build tooling deps like TS from the scripts folder
addResolvePath(__dirname);
option('production');
// Adds an alias for 'npm-install-mode' for backwards compatibility
option('min', { alias: 'npm-install-mode' });
option('webpackConfig', { alias: 'w' });
// Build only commonjs (not other TS variants) but still run other tasks
option('commonjs');
option('cached', { default: false });
}
function basicPreset() {
// this adds a resolve path for the build tooling deps like TS from the scripts folder
addResolvePath(__dirname);
option('production');
// Adds an alias for 'npm-install-mode' for backwards compatibility
option('min', { alias: 'npm-install-mode' });
option('webpackConfig', { alias: 'w' });
// Build only commonjs (not other TS variants) but still run other tasks
option('commonjs');
option('cached', { default: false });
}
function basicPreset() {
// this adds a resolve path for the build tooling deps like TS from the scripts folder
addResolvePath(__dirname);
option('production');
// Adds an alias for 'npm-install-mode' for backwards compatibility
option('min', { alias: 'npm-install-mode' });
option('webpackConfig', { alias: 'w' });
// Build only commonjs (not other TS variants) but still run other tasks
option('commonjs');
option('cached', { default: false });
}
function basicPreset() {
// this adds a resolve path for the build tooling deps like TS from the scripts folder
addResolvePath(__dirname);
option('production');
// Adds an alias for 'npm-install-mode' for backwards compatibility
option('min', { alias: 'npm-install-mode' });
option('webpackConfig', { alias: 'w' });
// Build only commonjs (not other TS variants) but still run other tasks
option('commonjs');
option('cached', { default: false });
}
series,
condition,
option,
argv,
tscTask,
eslintTask,
apiExtractorVerifyTask,
apiExtractorUpdateTask,
cleanTask,
} = require('just-scripts');
const libPath = path.resolve(process.cwd(), 'lib');
const srcPath = path.resolve(process.cwd(), 'src');
option('production');
option('clean');
option('ci');
task('apiExtractorVerify', apiExtractorVerifyTask());
task('apiExtractorUpdate', apiExtractorUpdateTask());
task('apiDocumenter', () => {
require('child_process').execSync(
'npx @microsoft/api-documenter markdown -i temp -o docs/api',
{stdio: 'inherit'},
);
});
task('flow-check', () => {
require('child_process').execSync('npx flow check', {stdio: 'inherit'});
});
task('eslint', () => {
task,
copyTask,
series,
condition,
option,
argv,
tscTask,
eslintTask,
apiExtractorVerifyTask,
apiExtractorUpdateTask,
cleanTask,
} = require('just-scripts');
const libPath = path.resolve(process.cwd(), 'lib');
const srcPath = path.resolve(process.cwd(), 'src');
option('production');
option('clean');
option('ci');
task('apiExtractorVerify', apiExtractorVerifyTask());
task('apiExtractorUpdate', apiExtractorUpdateTask());
task('apiDocumenter', () => {
require('child_process').execSync(
'npx @microsoft/api-documenter markdown -i temp -o docs/api',
{stdio: 'inherit'},
);
});
task('eslint', () => {
return eslintTask();
});
*/
const path = require('path');
const {
task,
series,
option,
argv,
tscTask,
eslintTask,
} = require('just-scripts');
const libPath = path.resolve(process.cwd(), 'lib');
const srcPath = path.resolve(process.cwd(), 'src');
option('production');
option('clean');
task('eslint', () => {
return eslintTask();
});
task('ts', () => {
return tscTask({
pretty: true,
noEmit: true,
...(argv().production && {
inlineSources: true,
sourceRoot: path.relative(libPath, srcPath),
}),
target: 'es6',
module: 'commonjs',
});
});
series,
condition,
option,
argv,
tscTask,
eslintTask,
apiExtractorVerifyTask,
apiExtractorUpdateTask,
cleanTask,
} = require('just-scripts');
const libPath = path.resolve(process.cwd(), 'lib');
const srcPath = path.resolve(process.cwd(), 'src');
option('production');
option('clean');
option('ci');
task('apiExtractorVerify', apiExtractorVerifyTask());
task('apiExtractorUpdate', apiExtractorUpdateTask());
task('apiDocumenter', () => {
require('child_process').execSync(
'npx @microsoft/api-documenter markdown -i temp -o docs/api',
{stdio: 'inherit'},
);
});
task('eslint', () => {
return eslintTask();
});
task('copyFlowFiles', () => {
return copyTask(['src/**/*.js'], '.');
* Licensed under the MIT License.
* @format
* @ts-check
*/
const {
task,
series,
option,
argv,
tscTask,
eslintTask,
} = require('just-scripts');
const fs = require('fs');
option('production');
option('clean');
task('eslint', () => {
return eslintTask();
});
task('ts', () => {
return tscTask({
pretty: true,
...(argv().production && {
inlineSources: true,
}),
target: 'es6',
module: 'commonjs',
});
});