Skip to content

Commit

Permalink
chore: usre @babel/register
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Apr 5, 2020
1 parent ec40a52 commit 64c4960
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 19 deletions.
8 changes: 7 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
* SOFTWARE.
*/

require('@babel/register')({
ignore: [
/node_modules/,
],
});

const gulp = require('gulp');
const clean = require('./scripts/clean');
const lint = require('./scripts/lint');
Expand All @@ -39,7 +45,7 @@ module.exports = {
'lint': lint,
'build': gulp.series(prebuild, build),
'test': gulp.series(pretest, test.test),
'tdd': gulp.series(clean, build, test.tdd),
'tdd': gulp.series(pretest, test.tdd),
'changelog': changelog,
'release:patch': gulp.series(prerelease, release.patch),
'release:minor': gulp.series(prerelease, release.minor),
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"devDependencies": {
"@babel/core": "7.9.0",
"@babel/preset-env": "7.9.0",
"@babel/register": "7.9.0",
"eslint": "6.8.0",
"eslint-config-google": "0.14.0",
"fancy-log": "1.3.3",
Expand Down
4 changes: 1 addition & 3 deletions scripts/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
const path = require('path');
const gulp = require('gulp');
const jasmine = require('gulp-jasmine');
const build = require('../build');
const config = require('../config');

/**
Expand All @@ -49,8 +48,7 @@ function test() {
* @return {void}
*/
function tdd(done) {
gulp.watch(path.join(config.dist, '**', '*.js'), test);
gulp.watch(path.join(config.src, '**', '*.js'), build);
gulp.watch(path.join(config.src, '**', '*.js'), test);
gulp.watch(path.join(config.test, '**', '*.js'), test);

done();
Expand Down
4 changes: 2 additions & 2 deletions test/base.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/

const _ = require('lodash');
const Dependency = require('../dist/dependency.js');
const Person = require('../dist/person.js');
const Dependency = require('../src/dependency.js');
const Person = require('../src/person.js');

beforeEach(() => {
jasmine.addCustomEqualityTester((first, second) => {
Expand Down
2 changes: 1 addition & 1 deletion test/dependency.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

const join = require('./utils/join.js');
const Dependency = require('../dist/dependency.js');
const Dependency = require('../src/dependency.js');

describe('Dependency', () => {
it('should should extract package fields', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/format-path.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

'use strict';

const formatPath = require('../dist/format-path.js');
const formatPath = require('../src/format-path.js');

describe('formatPath', () => {
it('should format path of object', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/generate-block-comment.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

const join = require('./utils/join.js');
const generateBlockComment = require('../dist/generate-block-comment.js');
const generateBlockComment = require('../src/generate-block-comment.js');

describe('generateBlockComment', () => {
it('should generate block comment from given text', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/index-rollup-legacy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const path = require('path');
const fs = require('fs');
const tmp = require('tmp');
const join = require('./utils/join.js');
const plugin = require('../dist/index-rollup-legacy.js');
const plugin = require('../src/index-rollup-legacy.js');

describe('rollup-plugin-license [rollup legacy]', () => {
let tmpDir;
Expand Down
2 changes: 1 addition & 1 deletion test/index-rollup-stable.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const path = require('path');
const fs = require('fs');
const tmp = require('tmp');
const join = require('./utils/join.js');
const plugin = require('../dist/index-rollup-stable.js');
const plugin = require('../src/index-rollup-stable.js');

describe('rollup-plugin-license [rollup stable]', () => {
let tmpDir;
Expand Down
2 changes: 1 addition & 1 deletion test/integration/it.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const rollup = require('rollup');
const nodeResolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const join = require('../utils/join.js');
const licensePlugin = require('../../dist/index.js');
const licensePlugin = require('../../src/index.js');

describe('Dependency', () => {
let warn;
Expand Down
2 changes: 1 addition & 1 deletion test/license-plugin-option.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

'use strict';

const licensePluginOptions = require('../dist/license-plugin-option.js');
const licensePluginOptions = require('../src/license-plugin-option.js');

describe('licensePluginOptions', () => {
it('should validate option', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/license-plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const path = require('path');
const tmp = require('tmp');
const moment = require('moment');
const join = require('./utils/join.js');
const licensePlugin = require('../dist/license-plugin.js');
const licensePlugin = require('../src/license-plugin.js');

describe('LicensePlugin', () => {
let tmpDir;
Expand Down
2 changes: 1 addition & 1 deletion test/license-validator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

'use strict';

const licenseValidator = require('../dist/license-validator.js');
const licenseValidator = require('../src/license-validator.js');

describe('licenseValidator', () => {
it('should check for unlicensed dependency', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/person.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const Person = require('../dist/person.js');
const Person = require('../src/person.js');

describe('Person', () => {
it('should parse author name', () => {
Expand Down
4 changes: 2 additions & 2 deletions test/schema-validator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

'use strict';

const validateSchema = require('../dist/schema-validator.js');
const validators = require('../dist/schema-validators.js');
const validateSchema = require('../src/schema-validator.js');
const validators = require('../src/schema-validators.js');

describe('validateSchema', () => {
it('should validate simple object', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/schema-validators.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const validators = require('../dist/schema-validators.js');
const validators = require('../src/schema-validators.js');

describe('schema validators', () => {
it('should validate string', () => {
Expand Down

0 comments on commit 64c4960

Please sign in to comment.