Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

better commonjs test (clean dist, consistent test) #1910

Conversation

swilliamset
Copy link
Contributor

fix #1909

  • removed commonjs testing resource (js/npm.js) from dist folder
  • buld dist task no longer leaves dist/js/npm.js in zip
  • moved creation of resources for commonjs into prep test task
  • test dist task now preps for commonjs tasks and cleans up

- removed commonjs testing resource (js/npm.js) from dist folder
- buld dist task no longer leaves dist/js/npm.js in zip
- moved creation of resources for commonjs into prep test task
- test dist task now preps for commonjs tasks and cleans up
@swilliamset swilliamset force-pushed the improve-test-scripts-to-build-dependencies branch from 2cd43a7 to 341d2f8 Compare December 15, 2016 19:40
Copy link
Contributor

@futuremint futuremint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix typo and I think it'll be good to go.

['browserify:commonjs', 'dist', 'jshint', 'connect:testServer', 'qunit:noMoment', 'qunit:globals', 'qunit:dist', 'htmllint', 'resetdist']);
['jshint', 'connect:testServer', 'qunit:noMoment', 'qunit:globals', 'test-dist', 'htmllint']);

grunt.registerTask('prep-commonjs-test', 'run commonjs config buiild and browserify to prep for commonjs test',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in description buiild.

@@ -28,7 +28,7 @@ module.exports = function(grunt) {

// Full distribution task
grunt.registerTask('dist', 'Build "dist." Contributors: do not commit "dist."',
['clean:dist', 'distcss', 'copy:fonts', 'copy:templates', 'distjs', 'commonjs', 'distzip']);
['clean:dist', 'distcss', 'copy:fonts', 'copy:templates', 'distjs', 'distzip']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the commonjs bundle used anywhere else in the dev stuff? Meaning... is it ok that we're removing it from dist completely and only running it during test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no it's not used elsewhere

Copy link
Contributor

@interactivellama interactivellama Mar 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used by CommonJS users of Fuel UX and anyone that pulls in FuelUX via NPM.

@futuremint futuremint merged commit e8394ac into ExactTarget:master Dec 15, 2016
@vernak2539
Copy link
Contributor

just wondering, if you're deleting it, will it be re-added during publishing?

https://github.com/ExactTarget/fuelux/blob/master/package.json#L74

@cmcculloh-kr cmcculloh-kr added this to the 3.15.10 milestone Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

running tests from fresh repos commonly fails
5 participants