Node glob pattern for every .js file except .spec.js

Solution 1:

This glob includes all *.js but not *.spec.js:

components/**/!(*.spec).js