Comments (8)
var VictoryThing = require("victory-thing").VictoryThing;
does work.
from formidable-react-component-boilerplate.
Can you please give an actual reproduction in code of the issue?
from formidable-react-component-boilerplate.
if you clone down victory-donut you and npm install
it will not find victory-animation
, we were working around this by changing "main": "lib/index.js"
to "main": "dist/victory-animation.js"
in the package.json
of victory-animation, which is not going to work out in the long run.
from formidable-react-component-boilerplate.
@boygirl -- Thanks. I'll try to reproduce that exact thing.
from formidable-react-component-boilerplate.
One problem is in the .npmignore
, which when installed is:
### SublimeText ###
*.sublime-workspace
### OSX ###
.DS_Store
.AppleDouble
.LSOverride
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# App specific
coverage
node_modules
bower_components
.tmp
lib
npm-debug.log
lib
is npmignore'd, which means we're not publishing it. Let me confirm upstream in this project.
from formidable-react-component-boilerplate.
lib
is in the boilerplate. For example, this works:
diff --git a/src/components/victory-donut.jsx b/src/components/victory-donut.jsx
index 5a036a4..0328f53 100644
--- a/src/components/victory-donut.jsx
+++ b/src/components/victory-donut.jsx
@@ -2,7 +2,9 @@ import d3 from "d3";
import _ from "lodash";
import React from "react";
import Radium from "radium";
-import {VictoryAnimation} from "victory-animation";
+import {BoilerplateComponent} from "formidable-react-component-boilerplate";
+
+const VictoryAnimation = BoilerplateComponent;
@Radium
class VictoryDonut extends React.Component {
@boygirl -- How did you last publish victory-animation
?
from formidable-react-component-boilerplate.
Ah, some of us generated components before the new publish stuff hit the boilerplate repos. I'll check on that and get back to you.
from formidable-react-component-boilerplate.
fixed! we needed an .npmignore
that did not ignore lib
. Packages were falling back to the .gitignore
on publish which does ignore lib
.
from formidable-react-component-boilerplate.
Related Issues (20)
- work around for wonky prepublish hook HOT 1
- BUG: Make `npm install --production` work.
- keep component name in a config HOT 1
- BUG: `babel-eslint` is not honoring code comment `global` declarations HOT 2
- Add bower publish instructions.
- Demo: Have an `index-prod.html` that goes off `dist` bundles.
- Karma + Webpack: Upgrade Karma when karma/1497 is fixed. HOT 1
- Client Tests - Get real stack traces
- Coveralls: Upload all coverage to coveralls.
- publishing demo without dev dependencies doesn't make sense HOT 2
- Add bunyan logging
- package.json main should point to built files in dist HOT 8
- webpack hot server doesn't die
- Remove `meta.js` and confirm straight replace on strings works. HOT 1
- Bug: New postinstall build workflow causes errors with npm v2
- Travis: Node `4.2` install fails
- Use archetype .babelrc when supported
- Move build deps to devDependencies HOT 14
- Using a yo generator vs builder-init
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formidable-react-component-boilerplate.