Skip to content

Commit

Permalink
Fix the list of excluded folders for babel-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Feb 20, 2019
1 parent 8727c68 commit 3f54de4
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 15 deletions.
8 changes: 5 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/block-serialization-default-parser/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import path from 'path';
/**
* WordPress dependencies
*/
import { jsTester, phpTester } from '@wordpress/block-serialization-spec-parser';
// eslint-disable-next-line no-restricted-syntax
import { jsTester, phpTester } from '@wordpress/block-serialization-spec-parser/shared-tests';

/**
* Internal dependencies
Expand Down
10 changes: 8 additions & 2 deletions packages/block-serialization-spec-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
## 2.1.0 (Unreleased)
## 3.0.0 (Unreleased)

- A `parser.php` file generated from the PEGJS grammar is now included.
## Breaking Change

- A `parser.js` file generated from the PEGJS grammar is now outputted in commonjs format.

## New Feature

- A `parser.php` file generated from the PEGJS grammar is now added upon installation.

## 2.0.2 (2018-12-12)

Expand Down
2 changes: 0 additions & 2 deletions packages/block-serialization-spec-parser/index.js

This file was deleted.

6 changes: 5 additions & 1 deletion packages/block-serialization-spec-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
"bugs": {
"url": "https://github.com/WordPress/gutenberg/issues"
},
"main": "parser.js",
"dependencies": {
"pegjs": "^0.10.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "concurrently \"npm run build:js\" \"npm run build:php\"",
"build:js": "pegjs --format umd -o ./parser.js ./grammar.pegjs",
"build:js": "pegjs --format commonjs -o ./parser.js ./grammar.pegjs",
"build:php": "node bin/create-php-parser.js"
}
}
3 changes: 2 additions & 1 deletion packages/block-serialization-spec-parser/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import path from 'path';
/**
* Internal dependencies
*/
import { jsTester, phpTester, parse } from '../';
import { parse } from '../';
import { jsTester, phpTester } from '../shared-tests';

describe( 'block-serialization-spec-parser-js', jsTester( parse ) );

Expand Down
6 changes: 1 addition & 5 deletions packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ const config = {
},
{
test: /\.js$/,
exclude: [
/block-serialization-spec-parser/,
/is-shallow-equal/,
/node_modules/,
],
exclude: /node_modules/,
use: require.resolve( 'babel-loader' ),
},
],
Expand Down

0 comments on commit 3f54de4

Please sign in to comment.