Skip to content

Commit

Permalink
added css files to build output (#17)
Browse files Browse the repository at this point in the history
* added css files to build output

* readme updates

* more updates to readme

* and some more
  • Loading branch information
evisdrenova authored Sep 22, 2023
1 parent f42c359 commit ca6758b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@

NeoCron is a modern, lightweight cron scheduling react component that is styled using tailwind. It is influenced and built upon [cron-converter](https://github.com/roccivic/cron-converter) project.

## Getting started
## Installation

1. Clone down the repo
2. install all dependencies using NPM
3. run npm run dev to run the application locally on port localhost:3000
Make sure that you have these dependencies in your project:
1. react (>=18.2.0)
2. tailwindcss(>=3.3.3)

```bash
npm i neocron
```


# Usage

```javascript

import { Cron } from 'react-js-cron'
import 'react-js-cron/dist/styles.css'
import Neocron from 'neocron'
import 'neocron/dist/src/globals.css'

export function App() {
const [value, setValue] = useState('30 5 * * 1,6')
Expand Down
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"css": "src/globals.css",
"baseColor": "slate",
"cssVariables": true
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neocron",
"version": "0.1.2",
"version": "0.1.3",
"private": false,
"main": "dist/src/Neocron.js",
"export": "dist/src/Neocron.js",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"incremental": true,
"declaration": true,
},
"include": ["src/**/*.ts", "src/**/*.tsx", "stories/**/*.ts"],
"include": ["src/**/*.ts", "src/**/*.tsx", "stories/**/*.ts", "src/*.css"],
"exclude": ["node_modules"]
}

0 comments on commit ca6758b

Please sign in to comment.