datagrok-tools 4.7.6 → 4.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/commands/add.js +1 -18
- package/package.json +1 -1
package/bin/commands/add.js
CHANGED
|
@@ -375,29 +375,12 @@ function add(args) {
|
|
|
375
375
|
Object.assign(packageObj.dependencies, {
|
|
376
376
|
'@datagrok-libraries/utils': 'latest'
|
|
377
377
|
});
|
|
378
|
-
Object.assign(packageObj.devDependencies, {
|
|
379
|
-
'jest-html-reporter': '^3.5.0',
|
|
380
|
-
'jest': '^27.0.0',
|
|
381
|
-
'@types/jest': '^27.0.0',
|
|
382
|
-
'js-yaml': '^4.1.0',
|
|
383
|
-
'@types/js-yaml': "^4.0.5",
|
|
384
|
-
'@types/node-fetch': '^2.6.2',
|
|
385
|
-
'node-fetch': '^2.6.7'
|
|
386
|
-
}, ts ? {
|
|
387
|
-
'ts-jest': '^27.0.0',
|
|
388
|
-
'puppeteer': '^13.7.0'
|
|
389
|
-
} : {});
|
|
390
378
|
Object.assign(packageObj.scripts, {
|
|
391
|
-
'test': '
|
|
379
|
+
'test': 'grok test'
|
|
392
380
|
});
|
|
393
381
|
|
|
394
382
|
_fs["default"].writeFileSync(packagePath, JSON.stringify(packageObj, null, 2), 'utf8');
|
|
395
383
|
|
|
396
|
-
if (!_fs["default"].existsSync(_path["default"].join(curDir, 'jest.config.js'))) _fs["default"].writeFileSync(_path["default"].join(curDir, 'jest.config.js'), _fs["default"].readFileSync(_path["default"].join(templateDir, 'package-template', 'jest.config.js')));
|
|
397
|
-
if (!_fs["default"].existsSync(_path["default"].join(srcDir, '__jest__'))) _fs["default"].mkdirSync(_path["default"].join(srcDir, '__jest__'));
|
|
398
|
-
if (!_fs["default"].existsSync(_path["default"].join(srcDir, '__jest__', 'remote.test.ts'))) _fs["default"].writeFileSync(_path["default"].join(srcDir, '__jest__', 'remote.test.ts'), _fs["default"].readFileSync(_path["default"].join(templateDir, 'package-template', 'src', '__jest__', 'remote.test.ts')));
|
|
399
|
-
if (!_fs["default"].existsSync(_path["default"].join(srcDir, '__jest__', 'test-node.ts'))) _fs["default"].writeFileSync(_path["default"].join(srcDir, '__jest__', 'test-node.ts'), _fs["default"].readFileSync(_path["default"].join(templateDir, 'package-template', 'src', '__jest__', 'test-node.ts')));
|
|
400
|
-
|
|
401
384
|
var packageTestPath = _path["default"].join(srcDir, 'package-test.ts');
|
|
402
385
|
|
|
403
386
|
if (!_fs["default"].existsSync(packageTestPath)) _fs["default"].writeFileSync(packageTestPath, _fs["default"].readFileSync(_path["default"].join(templateDir, 'package-template', 'src', 'package-test.ts')));
|
package/package.json
CHANGED