-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove duplicate package.json, update readme. #33
Conversation
@@ -17,7 +17,7 @@ | |||
_sys.exit(1) | |||
|
|||
_basepath = _os.path.dirname(__file__) | |||
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json')) | |||
_filepath = _os.path.abspath(_os.path.join(_basepath, '..','package.json')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm will this actually work once the package is installed via pip
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is why that copyfile
was there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a test that will package the build and run an app with it installed as a tarball.
from setuptools import setup | ||
|
||
|
||
with open(os.path.join('{{cookiecutter.project_shortname}}', 'package.json')) as f: | ||
with open('package.json') as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -9,7 +9,7 @@ | |||
"prepublish": "npm run validate-init", | |||
"build:js-dev": "webpack --mode development", | |||
"build:js": "webpack --mode production", | |||
"build:py": "node ./extract-meta.js src/lib/components > {{cookiecutter.project_shortname}}/metadata.json && copyfiles package.json {{cookiecutter.project_shortname}} && %(python_path) -c \"import dash; dash.development.component_loader.generate_classes('{{cookiecutter.project_shortname}}', '{{cookiecutter.project_shortname}}/metadata.json')\"", | |||
"build:py": "node ./extract-meta.js src/lib/components > {{cookiecutter.project_shortname}}/metadata.json && %(python_path) -c \"import dash; dash.development.component_loader.generate_classes('{{cookiecutter.project_shortname}}', '{{cookiecutter.project_shortname}}/metadata.json')\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my comment in plotly/dash#451
In principle this is mergable once we clear up the need for |
Closing as outdated. |
package.json
and it's reference.package.json
references with root.Closes #30, Close #31