├── .nvmrc ├── .npmrc ├── .yarnrc ├── packages ├── gen-idea-libs │ ├── .nvmrc │ ├── libTemplate.xml │ ├── package.json │ └── generate.js ├── kotlinc-js-api │ ├── .nvmrc │ ├── test │ │ ├── test-source.kt │ │ ├── reference.js.ref │ │ └── kotlin-compiler.test.js │ ├── README.md │ ├── package.json │ └── kotlin-compiler.js ├── react-scripts │ ├── .nvmrc │ ├── .npmignore │ ├── template │ │ ├── browserslistrc │ │ ├── src │ │ │ ├── index │ │ │ │ ├── index.css │ │ │ │ └── index.kt │ │ │ ├── app │ │ │ │ ├── App.css │ │ │ │ └── App.kt │ │ │ ├── logo │ │ │ │ ├── Logo.kt │ │ │ │ ├── Logo.css │ │ │ │ ├── kotlin.svg │ │ │ │ └── react.svg │ │ │ └── ticker │ │ │ │ └── Ticker.kt │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── manifest.json │ │ │ └── index.html │ │ ├── gitignore │ │ └── README.md │ ├── fixtures │ │ └── kitchensink │ │ │ ├── src │ │ │ ├── features │ │ │ │ ├── webpack │ │ │ │ │ ├── assets │ │ │ │ │ │ ├── aFileWithExt.unknown │ │ │ │ │ │ ├── aFileWithoutExt │ │ │ │ │ │ ├── abstract.json │ │ │ │ │ │ ├── style.css │ │ │ │ │ │ ├── tiniest-cat.jpg │ │ │ │ │ │ └── logo.svg │ │ │ │ │ ├── CssInclusion.js │ │ │ │ │ ├── SvgInclusion.js │ │ │ │ │ ├── JsonInclusion.js │ │ │ │ │ ├── ImageInclusion.js │ │ │ │ │ ├── CssInclusion.test.js │ │ │ │ │ ├── SvgInclusion.test.js │ │ │ │ │ ├── JsonInclusion.test.js │ │ │ │ │ ├── ImageInclusion.test.js │ │ │ │ │ ├── NoExtInclusion.test.js │ │ │ │ │ ├── LinkedModules.js │ │ │ │ │ ├── NoExtInclusion.js │ │ │ │ │ ├── UnknownExtInclusion.test.js │ │ │ │ │ ├── UnknownExtInclusion.js │ │ │ │ │ └── LinkedModules.test.js │ │ │ │ ├── env │ │ │ │ │ ├── PublicUrl.js │ │ │ │ │ ├── ShellEnvVariables.js │ │ │ │ │ ├── PublicUrl.test.js │ │ │ │ │ ├── FileEnvVariables.test.js │ │ │ │ │ ├── ShellEnvVariables.test.js │ │ │ │ │ ├── NodePath.test.js │ │ │ │ │ ├── FileEnvVariables.js │ │ │ │ │ └── NodePath.js │ │ │ │ └── syntax │ │ │ │ │ ├── AsyncAwait.test.js │ │ │ │ │ ├── Generators.test.js │ │ │ │ │ ├── ArraySpread.test.js │ │ │ │ │ ├── ObjectSpread.test.js │ │ │ │ │ ├── RestAndDefault.test.js │ │ │ │ │ ├── RestParameters.test.js │ │ │ │ │ ├── ClassProperties.test.js │ │ │ │ │ ├── DefaultParameters.test.js │ │ │ │ │ ├── ArrayDestructuring.test.js │ │ │ │ │ ├── ComputedProperties.test.js │ │ │ │ │ ├── Promises.test.js │ │ │ │ │ ├── CustomInterpolation.test.js │ │ │ │ │ ├── ObjectDestructuring.test.js │ │ │ │ │ ├── DestructuringAndAwait.test.js │ │ │ │ │ ├── TemplateInterpolation.test.js │ │ │ │ │ ├── ClassProperties.js │ │ │ │ │ ├── ArrayDestructuring.js │ │ │ │ │ ├── AsyncAwait.js │ │ │ │ │ ├── ArraySpread.js │ │ │ │ │ ├── Generators.js │ │ │ │ │ ├── Promises.js │ │ │ │ │ ├── DefaultParameters.js │ │ │ │ │ ├── ObjectDestructuring.js │ │ │ │ │ ├── TemplateInterpolation.js │ │ │ │ │ ├── RestAndDefault.js │ │ │ │ │ ├── RestParameters.js │ │ │ │ │ ├── DestructuringAndAwait.js │ │ │ │ │ ├── ComputedProperties.js │ │ │ │ │ ├── ObjectSpread.js │ │ │ │ │ └── CustomInterpolation.js │ │ │ ├── subfolder │ │ │ │ └── lol.js │ │ │ ├── absoluteLoad.js │ │ │ ├── index.js │ │ │ └── App.js │ │ │ ├── .env.production │ │ │ ├── .env.development │ │ │ ├── .env.local │ │ │ ├── .flowconfig │ │ │ ├── .babelrc │ │ │ ├── .env │ │ │ ├── public │ │ │ ├── favicon.ico │ │ │ └── index.html │ │ │ ├── gitignore │ │ │ ├── .template.dependencies.json │ │ │ └── integration │ │ │ ├── webpack.test.js │ │ │ ├── env.test.js │ │ │ ├── initDOM.js │ │ │ └── syntax.test.js │ ├── scripts │ │ ├── get-types.js │ │ ├── gen-idea-libs.js │ │ ├── test.js │ │ ├── start.js │ │ ├── build.js │ │ └── init.js │ ├── template-idea │ │ ├── .idea │ │ │ ├── runConfigurations │ │ │ │ ├── Debug_in_Chrome.xml │ │ │ │ └── npm_start.xml │ │ │ ├── libraries │ │ │ │ ├── kotlinx_html_js.xml │ │ │ │ ├── kotlin_react.xml │ │ │ │ ├── kotlin_react_dom.xml │ │ │ │ ├── kotlin_extensions.xml │ │ │ │ └── KotlinJavaScript.xml │ │ │ └── modules.xml │ │ └── template-idea.iml │ ├── README.md │ ├── config │ │ ├── polyfills.js │ │ ├── env.js │ │ ├── paths.js │ │ └── webpackDevServer.config.js │ ├── bin │ │ └── react-scripts-kotlin.js │ └── package.json ├── ts2kt-automator │ ├── .nvmrc │ ├── package.json │ ├── README.md │ ├── index.js │ ├── test │ │ └── lib.test.js │ └── lib.js ├── create-react-kotlin-app │ ├── .nvmrc │ ├── README.md │ ├── package.json │ └── index.js └── kotlin-webpack-plugin │ ├── .nvmrc │ ├── .gitignore │ ├── example │ ├── index.html │ ├── main.kt │ └── webpack.config.js │ ├── dce-plugin.js │ ├── package.json │ ├── README.md │ └── libraries-lookup.js ├── .eslintignore ├── .idea ├── encodings.xml ├── vcs.xml ├── kotlinc.xml ├── codeStyles │ ├── codeStyleConfig.xml │ └── Project.xml ├── libraries │ ├── kotlinx_html_js.xml │ ├── kotlin_react.xml │ ├── kotlin_react_dom.xml │ ├── kotlin_extensions.xml │ └── KotlinJavaScript.xml ├── inspectionProfiles │ └── Project_Default.xml ├── modules.xml ├── create-react-kotlin-app.iml └── codeStyleSettings.xml ├── .github └── dependabot.yml ├── .gitignore ├── .eslintrc ├── lerna.json ├── LICENSE ├── CHANGELOG.md ├── tasks ├── replace-own-deps.js ├── release.sh ├── release-patch-versions.sh └── cra.sh ├── package.json ├── CODE_OF_CONDUCT.md ├── README-zh_cn.md ├── README-ko.md └── README-ja.md /.nvmrc: -------------------------------------------------------------------------------- 1 | v14.18.2 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | --no-lockfile true 2 | 3 | -------------------------------------------------------------------------------- /packages/gen-idea-libs/.nvmrc: -------------------------------------------------------------------------------- 1 | v14.18.2 2 | -------------------------------------------------------------------------------- /packages/kotlinc-js-api/.nvmrc: -------------------------------------------------------------------------------- 1 | v14.18.2 2 | -------------------------------------------------------------------------------- /packages/react-scripts/.nvmrc: -------------------------------------------------------------------------------- 1 | v14.18.2 2 | -------------------------------------------------------------------------------- /packages/react-scripts/.npmignore: -------------------------------------------------------------------------------- 1 | /fixtures 2 | -------------------------------------------------------------------------------- /packages/ts2kt-automator/.nvmrc: -------------------------------------------------------------------------------- 1 | v14.18.2 2 | -------------------------------------------------------------------------------- /packages/create-react-kotlin-app/.nvmrc: -------------------------------------------------------------------------------- 1 | v14.18.2 2 | -------------------------------------------------------------------------------- /packages/kotlin-webpack-plugin/.nvmrc: -------------------------------------------------------------------------------- 1 | v14.18.2 2 | -------------------------------------------------------------------------------- /packages/react-scripts/template/browserslistrc: -------------------------------------------------------------------------------- 1 | >1% -------------------------------------------------------------------------------- /packages/kotlin-webpack-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | kotlin_build 2 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/assets/aFileWithExt.unknown: -------------------------------------------------------------------------------- 1 | Whoooo, spooky! 2 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/assets/aFileWithoutExt: -------------------------------------------------------------------------------- 1 | This is just a file without an extension 2 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/.env.production: -------------------------------------------------------------------------------- 1 | REACT_APP_X = x-from-production-env 2 | REACT_APP_PRODUCTION = production 3 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/assets/abstract.json: -------------------------------------------------------------------------------- 1 | { 2 | "abstract": "This is an abstract." 3 | } 4 | -------------------------------------------------------------------------------- /packages/react-scripts/template/src/index/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | font-family: sans-serif; 5 | } 6 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | kotlin_build 3 | my-app* 4 | node_modules/ 5 | packages/react-scripts/fixtures 6 | packages/react-scripts/template 7 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/.env.development: -------------------------------------------------------------------------------- 1 | REACT_APP_X = x-from-development-env 2 | REACT_APP_DEVELOPMENT = development 3 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/.env.local: -------------------------------------------------------------------------------- 1 | REACT_APP_X = x-from-original-local-env 2 | REACT_APP_ORIGINAL_2 = override-from-original-local-env-2 3 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | /node_modules/fbjs/.* 3 | 4 | [include] 5 | 6 | [libs] 7 | 8 | [options] 9 | -------------------------------------------------------------------------------- /packages/react-scripts/scripts/get-types.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | //All CLI arguments will pass into and parsed there 3 | require('@jetbrains/ts2kt-automator'); 4 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-app"], 3 | "plugins": ["babel-plugin-transform-es2015-modules-commonjs"] 4 | } 5 | -------------------------------------------------------------------------------- /packages/react-scripts/template/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JetBrains/create-react-kotlin-app/HEAD/packages/react-scripts/template/public/favicon.ico -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/assets/style.css: -------------------------------------------------------------------------------- 1 | #feature-css-inclusion { 2 | background: palevioletred; 3 | color: papayawhip; 4 | } 5 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_X = x-from-original-env 2 | REACT_APP_ORIGINAL_1 = from-original-env-1 3 | REACT_APP_ORIGINAL_2 = from-original-env-2 4 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JetBrains/create-react-kotlin-app/HEAD/packages/react-scripts/fixtures/kitchensink/public/favicon.ico -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: npm 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | time: "10:00" 8 | open-pull-requests-limit: 10 9 | versioning-strategy: increase 10 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/assets/tiniest-cat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JetBrains/create-react-kotlin-app/HEAD/packages/react-scripts/fixtures/kitchensink/src/features/webpack/assets/tiniest-cat.jpg -------------------------------------------------------------------------------- /packages/kotlin-webpack-plugin/example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Example 6 | 7 | 8 |
9 | 10 | -------------------------------------------------------------------------------- /.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /packages/kotlinc-js-api/test/test-source.kt: -------------------------------------------------------------------------------- 1 | package test 2 | 3 | import kotlinext.js.* 4 | import react.* 5 | 6 | fun main(args: Array) { 7 | val el = createElement("test", js {}, "test") 8 | println(JSON.stringify(el)) 9 | } 10 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/gen-idea-libs/libTemplate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/libraries/kotlinx_html_js.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/gitignore: -------------------------------------------------------------------------------- 1 | # See http://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 15 | npm-debug.log 16 | -------------------------------------------------------------------------------- /.idea/libraries/kotlin_react.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.tgz 2 | .DS_Store 3 | .idea/dictionaries/ 4 | .idea/misc.xml 5 | .idea/watcherTasks.xml 6 | .idea/workspace.xml 7 | .vscode/ 8 | /.changelog 9 | build 10 | lerna-debug.log 11 | my-app* 12 | node_modules/ 13 | npm-debug.log* 14 | template/src/__tests__/__snapshots__/ 15 | yarn-debug.log* 16 | yarn-error.log* 17 | -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/runConfigurations/Debug_in_Chrome.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /packages/react-scripts/template/src/app/App.css: -------------------------------------------------------------------------------- 1 | body { 2 | text-align: center; 3 | } 4 | 5 | .App-header { 6 | background-color: #000; 7 | height: 160px; 8 | padding: 20px; 9 | color: white; 10 | } 11 | 12 | .App-intro { 13 | font-size: large; 14 | } 15 | 16 | .App-ticker { 17 | font-size: medium; 18 | } 19 | -------------------------------------------------------------------------------- /.idea/libraries/kotlin_react_dom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/libraries/kotlinx_html_js.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/kotlin_extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/subfolder/lol.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = function () { 9 | return `haha`; 10 | }; 11 | -------------------------------------------------------------------------------- /packages/kotlin-webpack-plugin/example/main.kt: -------------------------------------------------------------------------------- 1 | package example 2 | 3 | import kotlinx.browser.document 4 | import react.dom.* 5 | 6 | fun main(args: Array) { 7 | render(document.getElementById("app")) { 8 | span { 9 | key = "hello" 10 | +"Hello" 11 | } 12 | +" World!" 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/libraries/kotlin_react.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint:recommended", 3 | "env": { 4 | "browser": true, 5 | "commonjs": true, 6 | "node": true, 7 | "es6": true 8 | }, 9 | "parserOptions": { 10 | "ecmaVersion": 2018 11 | }, 12 | "rules": { 13 | "no-console": "off", 14 | "strict": ["error", "global"], 15 | "curly": "warn" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/create-react-kotlin-app/README.md: -------------------------------------------------------------------------------- 1 | # create-react-kotlin-app 2 | 3 | This package includes the global command for [Create React Kotlin App](https://github.com/JetBrains/create-react-kotlin-app/). 4 | 5 | To learn how to create apps in Kotlin using React, please refer to the [Getting Started Guide](https://github.com/JetBrains/create-react-kotlin-app/#quick-overview). -------------------------------------------------------------------------------- /packages/react-scripts/README.md: -------------------------------------------------------------------------------- 1 | # react-scripts-kotlin 2 | 3 | This package includes scripts and configuration used by [Create React Kotlin App](https://github.com/JetBrains/create-react-kotlin-app/). 4 | 5 | To learn how to create apps in Kotlin using React, please refer to the [Getting Started Guide](https://github.com/JetBrains/create-react-kotlin-app/#quick-overview). -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/libraries/kotlin_react_dom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/libraries/kotlin_extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-scripts/template/src/index/index.kt: -------------------------------------------------------------------------------- 1 | package index 2 | 3 | import app.* 4 | import kotlinext.js.* 5 | import kotlinx.browser.document 6 | import react.dom.* 7 | 8 | fun main(args: Array) { 9 | requireAll(require.context("src", true, js("/\\.css$/"))) 10 | 11 | render(document.getElementById("root")) { 12 | app() 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/.template.dependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "babel-register": "6.22.0", 4 | "babel-plugin-transform-es2015-modules-commonjs": "6.22.0", 5 | "babel-polyfill": "6.20.0", 6 | "chai": "3.5.0", 7 | "jsdom": "9.8.3", 8 | "mocha": "3.2.0", 9 | "prop-types": "15.5.6", 10 | "test-integrity": "1.0.0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /.idea/libraries/KotlinJavaScript.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | React App 8 | 9 | 10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/absoluteLoad.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default () => [ 9 | { id: 1, name: '1' }, 10 | { id: 2, name: '2' }, 11 | { id: 3, name: '3' }, 12 | { id: 4, name: '4' }, 13 | ]; 14 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | 10 | export default () => ( 11 | {process.env.PUBLIC_URL}. 12 | ); 13 | -------------------------------------------------------------------------------- /packages/gen-idea-libs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@jetbrains/gen-idea-libs", 3 | "version": "2.0.0", 4 | "description": "Generates IntelliJ IDEA library configuration from given Kotlin/JS npm dependencies", 5 | "main": "generate", 6 | "author": "Filipp Riabchun", 7 | "repository": "JetBrains/create-react-kotlin-app", 8 | "license": "Apache-2.0", 9 | "engines": { 10 | "node": ">=14.18.2" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /packages/react-scripts/template/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React Kotlin App", 3 | "name": "Create React Kotlin App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | } 10 | ], 11 | "start_url": "./index.html", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | import ReactDOM from 'react-dom'; 10 | import App from './App'; 11 | 12 | ReactDOM.render(, document.getElementById('root')); 13 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | import './assets/style.css'; 10 | 11 | export default () =>

We love useless text.

; 12 | -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/libraries/KotlinJavaScript.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/react-scripts/template/gitignore: -------------------------------------------------------------------------------- 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 | .idea/workspace.xml 19 | 20 | npm-debug.log* 21 | yarn-debug.log* 22 | yarn-error.log* 23 | 24 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | import logo from './assets/logo.svg'; 10 | 11 | export default () => logo; 12 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | import { abstract } from './assets/abstract.json'; 10 | 11 | export default () => {abstract}; 12 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | 10 | export default () => ( 11 | 12 | {process.env.REACT_APP_SHELL_ENV_MESSAGE}. 13 | 14 | ); 15 | -------------------------------------------------------------------------------- /packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | import tiniestCat from './assets/tiniest-cat.jpg'; 10 | 11 | export default () => ( 12 | tiniest cat 13 | ); 14 | -------------------------------------------------------------------------------- /packages/react-scripts/template-idea/.idea/runConfigurations/npm_start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |