Skip to content

Commit fb4f8ed

Browse files
committed
Update keywords and exclude tests from builds and npm
1 parent 5d1b8f9 commit fb4f8ed

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ coverage
22
examples
33
tools
44
rollup.config.js
5+
**/*.test.js
56
*.sublime-project
67
*.sublime-workspace

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"react",
1414
"react-component",
1515
"component",
16+
"google-maps",
1617
"google",
1718
"maps",
1819
"api",
@@ -38,7 +39,7 @@
3839
"clean": "rm -f index.js && rm -f GoogleMap.js && rm -f Marker.js && rm -f MarkerClusterer.js && rm -fr es && rm -fr umd",
3940
"prebuild": "npm run clean",
4041
"build": "node ./tools/build.js",
41-
"watch": "babel ./src -d . --ignore __tests__ --watch",
42+
"watch": "babel ./src -d . --ignore __tests__,**/*.test.js --watch",
4243
"prepare": "npm run build",
4344
"prepublishOnly": "node ./tools/build.js",
4445
"push-release": "git push origin master && git push --tags",

tools/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const exec = (command, extraEnv) => {
1212

1313
console.log('Building CommonJS modules ...');
1414

15-
exec('babel src -d . --ignore __tests__,*.test.js', {
15+
exec('babel src -d . --ignore __tests__,**/*.test.js', {
1616
BABEL_ENV: 'cjs'
1717
});
1818

1919
console.log('\nBuilding ES modules ...');
2020

21-
exec('babel src -d es --ignore __tests__,*.test.js', {
21+
exec('babel src -d es --ignore __tests__,**/*.test.js', {
2222
BABEL_ENV: 'es'
2323
});
2424

0 commit comments

Comments
 (0)