wdjungst / react-project

State of the art web development with React.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing .gitignore/.npmrc when running init

latentflip opened this issue · comments

Just installed, and when running init I get the following output with react-project 0.0.4

[react-project] [init] task
[react-project] This is going to add a bunch of files and edit your package.json. You probably want to have a clean git working tree before continuing. That way you can reset the changes about to made with `git reset`.
prompt: Do you want to continue? (y|n):  (n) y
[react-project] copying project blueprint
cp: no such file or directory: /Users/latentflip/fo/node_modules/react-project/blueprint/.gitignore
cp: no such file or directory: /Users/latentflip/fo/node_modules/react-project/blueprint/.npmrc
[react-project] Adding scripts to package.json
[react-project]
[react-project] Now run:
[react-project]
[react-project]   npm install && npm start
[react-project]
[react-project] [init] task complete

I'm guessing it's npm being extra greedy about which files to omit when publishing? Perhaps it needs to be overridden somehow to explicitly push those to npm? Or rename the files without a . and rename on copy?

Oh yep, probably can add to "files" key in package.json

npm publish removes them ...

@ryanflorence yeah, for security (npmrc), I think this is the reason yeoman always suggested naming dotfile without the dot and copying them to a filename with the dot added.

I've got a fix coming
On Thu, Feb 25, 2016 at 6:21 PM Blaine Bublitz notifications@github.com
wrote:

@ryanflorence https://github.com/ryanflorence yeah, for security
(npmrc), I think this is the reason yeoman always suggested naming dotfile
without the dot and copying them to a filename with the dot added.


Reply to this email directly or view it on GitHub
#8 (comment)
.