Skip to content

Commit daa592c

Browse files
committed
Initial commit with README.md and package.json
0 parents  commit daa592c

File tree

4 files changed

+103
-0
lines changed

4 files changed

+103
-0
lines changed

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

README.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Description
2+
3+
This project is implementing [TodoMVC](https://github.com/tastejs/todomvc) in React and Kotlin.
4+
This project was bootstrapped with [Create React Kotlin App](https://github.com/JetBrains/create-react-kotlin-app).
5+
6+
Below you will find some useful information on how to work with this application.<br>
7+
We're still working on this guide and you can find its most recent version [here](https://github.com/JetBrains/create-react-kotlin-app/blob/master/packages/react-scripts/template/README.md).
8+
9+
10+
## Available Scripts
11+
12+
Once the installation (after `npm install`) is done, you can run some commands inside the project folder:
13+
14+
### `npm start` or `yarn start`
15+
16+
Runs the app in development mode.<br>
17+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
18+
19+
The page will reload automatically when you make edits.<br>
20+
You will see build errors and lint warnings in the console.
21+
22+
### `npm run build` or `yarn build`
23+
24+
Builds the app for production to the `build` folder.<br>
25+
It ensures that React is bundled in production mode and the build is optimized for best performance.
26+
27+
The build is minified and the filenames include hashes for cache management. Your app is ready to be deployed.
28+
29+
### `npm run eject`
30+
31+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
32+
33+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
34+
35+
Running `npm run eject` copies all configuration files and transitive dependencies (webpack, Kotlin Compiler, etc) right into your project so you have full control over them. Commands like `npm start` and `npm run build` will still work, but they will point to the copied scripts so you can tweak them. At this point, you’re on your own.
36+
37+
## Debugging the App
38+
39+
You can debug the running app right in IntelliJ IDEA Ultimate using its built-in JavaScript debugger. The IDE will run a new instance of Chrome and attach a debugger to it.
40+
41+
Start your app by running `npm start`. Put the breakpoints in your Kolin code.
42+
Then select `Debug in Chrome` from the list of run/debug configurations on the top-right and click the green debug icon or press `^D` on macOS or `F9` on Windows and Linux to start debugging.
43+
44+
Currently, debugging is supported only in IntelliJ IDEA Ultimate 2017.3.
45+
46+
You can also debug your application using the developer tools in your browser.
47+

package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "todomvc-react-kotlin",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"react": "^16.2.0",
7+
"react-dom": "^16.2.0"
8+
},
9+
"devDependencies": {
10+
"react-scripts-kotlin": "2.1.5"
11+
},
12+
"scripts": {
13+
"start": "react-scripts-kotlin start",
14+
"build": "react-scripts-kotlin build",
15+
"eject": "react-scripts-kotlin eject",
16+
"gen-idea-libs": "react-scripts-kotlin gen-idea-libs",
17+
"get-types": "react-scripts-kotlin get-types --dest=src/types"
18+
}
19+
}

todomvc-react-kotlin.iml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="WEB_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
<orderEntry type="library" name="KotlinJavaScript" level="project" />
11+
<orderEntry type="library" name="kotlin-extensions" level="project" />
12+
<orderEntry type="library" name="kotlin-react" level="project" />
13+
<orderEntry type="library" name="kotlin-react-dom" level="project" />
14+
<orderEntry type="library" name="kotlinx-html-js" level="project" />
15+
</component>
16+
</module>

0 commit comments

Comments
 (0)