Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide grunt npm:test for verifying NPM package functionality #20

Merged
merged 1 commit into from
May 31, 2013

Conversation

benjamn
Copy link
Contributor

@benjamn benjamn commented May 30, 2013

This basically calls npm pack, installs the resulting package in a temporary directory, then requires it and attempts to use the .transform method. Bonus: bin/jsx main.js.

The npm pack . command takes a long time on my machine. When I run it manually with --verbose, it seems to be hanging on the npm verb lock line, so it seems to be an npm problem.

Closes #12.

// proc.stderr.pipe(process.stderr);
}

var pkg = grunt.file.readJSON("package.json");
Copy link
Member

Choose a reason for hiding this comment

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

This is already available at grunt.config.data.pkg

This basically calls `npm pack`, installs the resulting package in a temporary directory, then requires it and attempts to use the .transform method.

Closes facebook#12.
benjamn added a commit that referenced this pull request May 31, 2013
Provide `grunt npm:test` for verifying NPM package functionality
@benjamn benjamn merged commit 70a99cd into facebook:master May 31, 2013
zpao pushed a commit that referenced this pull request Nov 14, 2013
georgesisco added a commit to georgesisco/react that referenced this pull request Apr 9, 2014
… steps

The following steps also have an ajax function, but the 'error:' param
is gone after facebook#13:
facebook#14
facebook#17
facebook#19
facebook#20
This may be superfluous, but it helped me find an error with something I
was doing - Namely, in my .json file, I had single line javascript
comments ("//") that I copied from the tutorial. I couldn't find the
issue on later steps, but was able to see my issue when the error
handler complained about an unexpected "/" in my file in step facebook#13.
zpao pushed a commit that referenced this pull request May 8, 2014
The following steps also have an ajax function, but the 'error:' param
is gone after #13:
#14
#17
#19
#20
This may be superfluous, but it helped me find an error with something I
was doing - Namely, in my .json file, I had single line javascript
comments ("//") that I copied from the tutorial. I couldn't find the
issue on later steps, but was able to see my issue when the error
handler complained about an unexpected "/" in my file in step #13.
vjeux added a commit that referenced this pull request Jul 27, 2014
vjeux added a commit that referenced this pull request Jul 27, 2014
vjeux added a commit that referenced this pull request Jul 27, 2014
vjeux added a commit that referenced this pull request Jul 27, 2014
vjeux added a commit that referenced this pull request Jul 28, 2014
vjeux added a commit that referenced this pull request Jul 28, 2014
lunaruan pushed a commit to bvaughn/react that referenced this pull request Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write tests for react-tools module
2 participants