React UI components by @kununu
A collection of React user interface components.
Components include:
Get it from npm:
npm i nukleus --save
You can include nukleus in two ways. Either way, you'll need a module bundler that supports css modules (webpack is recommended).
You can include compiled components this way.
import {Select, TextField} from 'nukleus';
Alternatively, you can use the source files. This has the benefit of making your final bundle smaller, but you will need to install a compatible sass version in your hosting app.
import Select from 'nukleus/components/Select/index.jsx';
import TextField from 'nukleus/components/TextField/index.jsx';
npm install --ignore-scripts
npm start
Open http://localhost:3000/playground.
The --ignore-scripts argument is given since we are running a prepublish script we just wish to run before publishing and not after installing. You can read more here https://github.com/npm/npm/issues/3059
If you omit the argument, the installation will go through but you'll receive and error related to the prepublish script that (as intented) exits with status 1.
As for npm@5, this behaviour should change so we can get rid of the in-publish package.
docker run -ti -p 3000:3000 --rm --name nukleus kununu/nukleus
Open http://localhost:3000/playground. Open http://localhost:3000/docs.
In order to run the tests, run npm run test.
There could be two reasons why the tests are failing: either your component broke or was modified on purpose. In the latter case, you will just need to update the snapshot.
In order to update the npm version we must create and push a new tag and run the publish command. This will work given you have the right credentials.
# Do the following on the master branch
git tag -a vX.Y.Z -m "<what changed in this version>"
git push --tags
npm publish
Pushing a new tag will cause Travis to automatically publish the new npm version (docs).
Content type
Image
Digest
Size
297.6 MB
Last updated
over 9 years ago
docker pull kununu/nukleus:docker