From faceb475871f85ffecdbdace424ec5e19260c341 Mon Sep 17 00:00:00 2001 From: eric_yip Date: Tue, 15 May 2018 16:08:11 +0800 Subject: [PATCH 1/7] =?UTF-8?q?Vital=20scripts=F0=9F=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 187 +----------------- README.old.md | 186 +++++++++++++++++ packages/react-scripts/package.json | 6 +- packages/react-scripts/scripts/init.js | 25 +++ .../react-scripts/template/public/favicon.ico | Bin 3870 -> 7230 bytes packages/react-scripts/template/src/App.tsx | 4 +- packages/react-scripts/template/src/icon.png | Bin 0 -> 7230 bytes packages/react-scripts/template/src/index.tsx | 13 +- packages/react-scripts/template/src/store.ts | 29 +++ packages/react-scripts/template/tslint.json | 3 + .../react-scripts/template/vitaluikit.d.ts | 1 + 11 files changed, 266 insertions(+), 188 deletions(-) create mode 100644 README.old.md create mode 100644 packages/react-scripts/template/src/icon.png create mode 100644 packages/react-scripts/template/src/store.ts create mode 100644 packages/react-scripts/template/vitaluikit.d.ts diff --git a/README.md b/README.md index 2300fc11d..5771cda7b 100644 --- a/README.md +++ b/README.md @@ -1,186 +1,9 @@ -# `react-scripts-ts` [![npm version](https://badge.fury.io/js/react-scripts-ts.svg)](https://badge.fury.io/js/react-scripts-ts) [![Build Status](https://travis-ci.org/wmonk/create-react-app-typescript.svg?branch=master)](https://travis-ci.org/wmonk/create-react-app-typescript) +Create React apps with Typescript + Vital Ui Kit -Create React apps (with Typescript) with no build configuration. - - * [Getting Started](#tldr) – How to create a new app. - * [User Guide](https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with react scripts ts. - -_Do you know react and want to try out typescript? Or do you know typescript and want to try out react?_ Get all the benefits from `create-react-app` but you use typescript! πŸš€ - -## tl;dr - -```sh -npm install -g create-react-app - -create-react-app my-app --scripts-version=react-scripts-ts -cd my-app/ -npm start -``` - -## Migration - -In general, most upgrades won't require any migration steps to work, but if you experience problems after an upgrade, please file an issue, and we'll add it to the list of migration steps below. - -### From `<2.16.0` to `>=2.16.0` - -Since `2.16.0`, the template uses different `tsconfig` files for both development and production mode. For the latter, unfortunately, the path resolver is not smart enough to fall back to the basic `tsconfig.json` in case the expected `tsconfig.prod.json` is not present, so you have to create this file manually like shown [here](https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/template/tsconfig.prod.json). - -### From `<2.13.0` to `>=2.13.0` - -Since `2.13.0`, `typescript` is listed as a peer dependency of `react-scripts-ts`. For projects generated with at least this version, the init script takes care of properly installing it as dev dependency to the generated projects. Older projects require manual installation, in case you have not already done that. - -Using `npm`: -``` -npm i -D typescript +```bash +npx create-react-app my-app --scripts-version=@gssfed/react-scripts ``` -Using `yarn`: -``` -yarn add -D typescript -``` - -### From `<2.5.0` to `>=2.5.0` - -Version `2.5.0` introduces a new config file for jest, that is necessary for the tests to run. If you were previously running a version older than `v2.5.0` and upgraded to `v2.5.0` or newer, you need to manually add the new file, or else you'll get an error similar to this when trying to run your tests: - -```javascript -Test suite failed to run - -{ - "messageText": "Cannot read file 'C:\\[project]\\tsconfig.test.json': ENOENT: no such file or directory, open 'C:\\[project]\\tsconfig.test.json'.", - "category": 1, - "code": 5012 -} -``` - -To fix this, create a new file *in the root of the project* called `tsconfig.test.json`, and paste [the content of this file into it](https://raw.githubusercontent.com/wmonk/create-react-app-typescript/master/packages/react-scripts/template/tsconfig.test.json). Everything should work now. For more info, please see [this issue](https://github.com/wmonk/create-react-app-typescript/issues/141). - -## Changelog - -### 2.16.0 -* Allow `moduleNameMapper` config override - @sebald -* Fix travis build - @DorianGrey -* Allow using different tsconfig file for dev and build - @DorianGrey - -### 2.15.1 -* Fix duplicated mjs entry in Jest config - @StevenLangbroek -* Allow `--watchAll` to be set - @DorianGrey - -### 2.15.0 -* Replace TSLint rules with presets - @nielsdB97 -* Update file-loader exclusion rules - @winstonewert -* Fix Uglifyjs settings - @meandmax -* Merge react-script 1.1.x - @wmonk - -### 2.14.0 -* README fixes - @kaminskypavel -* README fixes - @adambowles -* Remove unused JS files - @DorianGrey -* README fixes - @stephtr -* Added the abillity to import js and jsx files with ts-loader - @GeeWee -* Uglifyjs update for es6 support - @thetric - -### 2.13.0 -* Remove tslint-loader from prod builds - @DorianGrey -* Include typescript as devDependency in boilerplate - @ianschmitz -* Document custom module formats - @joshtynjala -* Fix tsconfig.json - @diabelb - -### 2.12.0 -* Update typescript to 2.6.2 - -### 2.11.0 -* Upgrade to [`react-scripts@1.0.17`](https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.17) - -### 2.10.0 -* README updates - StefanSchoof -* README updates - DorianGrey -* Add support for fork-ts-checker-webpack-plugin - johnnyreilly - -### 2.9.0 - UNPUBLISHED -This included changes that were not published by the facebook upstream, so was unpublished. - -### 2.8.0 -* Update typescript to 2.5.3 - @nicolaserny - -### 2.7.0 -* Merge react-scripts@1.0.13 - @JohnNilsson -* Fix git tempalte - @hktonylee -* Provide migration docs - @JReinhold -* Updated dependencies - @swengorschewski -* Fix tslint config - @comerc - -### 2.6.0 -* Merge react-scripts@1.0.10 - @wmonk -* Update component template - @pelotom - -### 2.5.0 -* Support dynamic imports - thanks @nicolaserny, @DorianGrey -* Fix up tsconfig - thanks @js-n -* Fix readme typo - thanks @adambowles -* Move to ts-jest - thanks @DorianGrey - -### 2.4.0 -* Upgrade typescript to 2.4 and ts-loader to 2.2.1 - thanks @frederickfogerty -* Fix readme typo - thanks @wrongway4you - -### 2.3.2 -* Fix `typescript` version to 2.3.x until 2.4 @types are fixed - -### 2.3.1 - -* All tsc to parse config (for `extend`) - Thanks to @DorianGrey -* Fix various jest issues - thanks to @zinserjan -* Fix code coverage - thanks to @zinserjan - -### 2.2.0 -* Upgrade to [`react-scripts@1.0.6`](https://github.com/facebookincubator/create-react-app/) - -### 2.1.0 -* Update to `tslint@5.2.0` - thanks to @mindjuice -* Fix test setup issue - thanks to @jonmpqts -* Add `source-map-loader` - thanks to @Place1 -* Update to `typescript@2.3.3` - thanks to @sjdweb - -### 2.0.1 -* Fix issue with jest finding test files - -### 2.0.0 -* Upgrade to [`react-scripts@1.x.x`](https://github.com/facebookincubator/create-react-app/blob/0d1521aabf5a0201ea1bcccc33e286afe048f820/CHANGELOG.md) - -### 1.4.0 -* Upgrade to typescript@2.3.2 - thanks to @patrick91 -* Add tests around react-scripts-ts - thanks to @migerh - -### 1.3.0 -* Upgrade to typescript@2.2.2 - thanks to @jeremistadler - -### 1.1.8 -* Fix regression where no `@types` were being installed on init - -### 1.1.7 -* Merge facebookincubator/create-react-app@0.9.5 into react-scripts-ts -* Merge facebookincubator/create-react-app@0.9.4 into react-scripts-ts -* Merge facebookincubator/create-react-app@0.9.3 into react-scripts-ts -* Merge facebookincubator/create-react-app@0.9.2 into react-scripts-ts -* Merge facebookincubator/create-react-app@0.9.1 into react-scripts-ts - -### 1.1.6 -* Merge facebookincubator/create-react-app@0.9.0 into react-scripts-ts - -### 1.0.6 -* Add missing `cli-highlight` dependency - -### 1.0.5 -* Print file names when running `npm run build` -* Add support for `setupTest.ts` -* Highlight source code when erroring in `npm run build` - -### 1.0.4 -* Change mentions of `eslint` to `tslint` - -### 1.0.3 -* Remove hidden character from `tsconfig.json` +## Sync with fork -### 1.0.2 -* Copy `typescriptTransform.js` when running `npm run eject` +https://help.github.com/articles/syncing-a-fork/ diff --git a/README.old.md b/README.old.md new file mode 100644 index 000000000..2300fc11d --- /dev/null +++ b/README.old.md @@ -0,0 +1,186 @@ +# `react-scripts-ts` [![npm version](https://badge.fury.io/js/react-scripts-ts.svg)](https://badge.fury.io/js/react-scripts-ts) [![Build Status](https://travis-ci.org/wmonk/create-react-app-typescript.svg?branch=master)](https://travis-ci.org/wmonk/create-react-app-typescript) + +Create React apps (with Typescript) with no build configuration. + + * [Getting Started](#tldr) – How to create a new app. + * [User Guide](https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with react scripts ts. + +_Do you know react and want to try out typescript? Or do you know typescript and want to try out react?_ Get all the benefits from `create-react-app` but you use typescript! πŸš€ + +## tl;dr + +```sh +npm install -g create-react-app + +create-react-app my-app --scripts-version=react-scripts-ts +cd my-app/ +npm start +``` + +## Migration + +In general, most upgrades won't require any migration steps to work, but if you experience problems after an upgrade, please file an issue, and we'll add it to the list of migration steps below. + +### From `<2.16.0` to `>=2.16.0` + +Since `2.16.0`, the template uses different `tsconfig` files for both development and production mode. For the latter, unfortunately, the path resolver is not smart enough to fall back to the basic `tsconfig.json` in case the expected `tsconfig.prod.json` is not present, so you have to create this file manually like shown [here](https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/template/tsconfig.prod.json). + +### From `<2.13.0` to `>=2.13.0` + +Since `2.13.0`, `typescript` is listed as a peer dependency of `react-scripts-ts`. For projects generated with at least this version, the init script takes care of properly installing it as dev dependency to the generated projects. Older projects require manual installation, in case you have not already done that. + +Using `npm`: +``` +npm i -D typescript +``` + +Using `yarn`: +``` +yarn add -D typescript +``` + +### From `<2.5.0` to `>=2.5.0` + +Version `2.5.0` introduces a new config file for jest, that is necessary for the tests to run. If you were previously running a version older than `v2.5.0` and upgraded to `v2.5.0` or newer, you need to manually add the new file, or else you'll get an error similar to this when trying to run your tests: + +```javascript +Test suite failed to run + +{ + "messageText": "Cannot read file 'C:\\[project]\\tsconfig.test.json': ENOENT: no such file or directory, open 'C:\\[project]\\tsconfig.test.json'.", + "category": 1, + "code": 5012 +} +``` + +To fix this, create a new file *in the root of the project* called `tsconfig.test.json`, and paste [the content of this file into it](https://raw.githubusercontent.com/wmonk/create-react-app-typescript/master/packages/react-scripts/template/tsconfig.test.json). Everything should work now. For more info, please see [this issue](https://github.com/wmonk/create-react-app-typescript/issues/141). + +## Changelog + +### 2.16.0 +* Allow `moduleNameMapper` config override - @sebald +* Fix travis build - @DorianGrey +* Allow using different tsconfig file for dev and build - @DorianGrey + +### 2.15.1 +* Fix duplicated mjs entry in Jest config - @StevenLangbroek +* Allow `--watchAll` to be set - @DorianGrey + +### 2.15.0 +* Replace TSLint rules with presets - @nielsdB97 +* Update file-loader exclusion rules - @winstonewert +* Fix Uglifyjs settings - @meandmax +* Merge react-script 1.1.x - @wmonk + +### 2.14.0 +* README fixes - @kaminskypavel +* README fixes - @adambowles +* Remove unused JS files - @DorianGrey +* README fixes - @stephtr +* Added the abillity to import js and jsx files with ts-loader - @GeeWee +* Uglifyjs update for es6 support - @thetric + +### 2.13.0 +* Remove tslint-loader from prod builds - @DorianGrey +* Include typescript as devDependency in boilerplate - @ianschmitz +* Document custom module formats - @joshtynjala +* Fix tsconfig.json - @diabelb + +### 2.12.0 +* Update typescript to 2.6.2 + +### 2.11.0 +* Upgrade to [`react-scripts@1.0.17`](https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.17) + +### 2.10.0 +* README updates - StefanSchoof +* README updates - DorianGrey +* Add support for fork-ts-checker-webpack-plugin - johnnyreilly + +### 2.9.0 - UNPUBLISHED +This included changes that were not published by the facebook upstream, so was unpublished. + +### 2.8.0 +* Update typescript to 2.5.3 - @nicolaserny + +### 2.7.0 +* Merge react-scripts@1.0.13 - @JohnNilsson +* Fix git tempalte - @hktonylee +* Provide migration docs - @JReinhold +* Updated dependencies - @swengorschewski +* Fix tslint config - @comerc + +### 2.6.0 +* Merge react-scripts@1.0.10 - @wmonk +* Update component template - @pelotom + +### 2.5.0 +* Support dynamic imports - thanks @nicolaserny, @DorianGrey +* Fix up tsconfig - thanks @js-n +* Fix readme typo - thanks @adambowles +* Move to ts-jest - thanks @DorianGrey + +### 2.4.0 +* Upgrade typescript to 2.4 and ts-loader to 2.2.1 - thanks @frederickfogerty +* Fix readme typo - thanks @wrongway4you + +### 2.3.2 +* Fix `typescript` version to 2.3.x until 2.4 @types are fixed + +### 2.3.1 + +* All tsc to parse config (for `extend`) - Thanks to @DorianGrey +* Fix various jest issues - thanks to @zinserjan +* Fix code coverage - thanks to @zinserjan + +### 2.2.0 +* Upgrade to [`react-scripts@1.0.6`](https://github.com/facebookincubator/create-react-app/) + +### 2.1.0 +* Update to `tslint@5.2.0` - thanks to @mindjuice +* Fix test setup issue - thanks to @jonmpqts +* Add `source-map-loader` - thanks to @Place1 +* Update to `typescript@2.3.3` - thanks to @sjdweb + +### 2.0.1 +* Fix issue with jest finding test files + +### 2.0.0 +* Upgrade to [`react-scripts@1.x.x`](https://github.com/facebookincubator/create-react-app/blob/0d1521aabf5a0201ea1bcccc33e286afe048f820/CHANGELOG.md) + +### 1.4.0 +* Upgrade to typescript@2.3.2 - thanks to @patrick91 +* Add tests around react-scripts-ts - thanks to @migerh + +### 1.3.0 +* Upgrade to typescript@2.2.2 - thanks to @jeremistadler + +### 1.1.8 +* Fix regression where no `@types` were being installed on init + +### 1.1.7 +* Merge facebookincubator/create-react-app@0.9.5 into react-scripts-ts +* Merge facebookincubator/create-react-app@0.9.4 into react-scripts-ts +* Merge facebookincubator/create-react-app@0.9.3 into react-scripts-ts +* Merge facebookincubator/create-react-app@0.9.2 into react-scripts-ts +* Merge facebookincubator/create-react-app@0.9.1 into react-scripts-ts + +### 1.1.6 +* Merge facebookincubator/create-react-app@0.9.0 into react-scripts-ts + +### 1.0.6 +* Add missing `cli-highlight` dependency + +### 1.0.5 +* Print file names when running `npm run build` +* Add support for `setupTest.ts` +* Highlight source code when erroring in `npm run build` + +### 1.0.4 +* Change mentions of `eslint` to `tslint` + +### 1.0.3 +* Remove hidden character from `tsconfig.json` + +### 1.0.2 +* Copy `typescriptTransform.js` when running `npm run eject` diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 95bf68c2a..f1fd9ad36 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,8 +1,8 @@ { - "name": "react-scripts-ts", - "version": "2.16.0", + "name": "@gssfed/react-scripts", + "version": "0.0.3", "description": "Configuration and scripts for Create React App.", - "repository": "wmonk/create-react-app", + "repository": "gssfed/create-react-app-vital", "license": "BSD-3-Clause", "engines": { "node": ">=6" diff --git a/packages/react-scripts/scripts/init.js b/packages/react-scripts/scripts/init.js index 1490efa4f..54e35b7a4 100644 --- a/packages/react-scripts/scripts/init.js +++ b/packages/react-scripts/scripts/init.js @@ -109,6 +109,8 @@ module.exports = function( '@types/react', '@types/react-dom', '@types/jest', + '@types/react-redux', + '@types/react-router-dom', 'typescript', ]; @@ -140,6 +142,29 @@ module.exports = function( fs.unlinkSync(templateDependenciesPath); } + // Install additional deps + const vitalDeps = [ + '@gssfed/vital-ui-kit-react', + 'redux', + 'react-redux', + 'react-router-dom', + 'styled-components', + 'polished', + ] + + console.log( + `Installing ${vitalDeps.join(', ')} as dependencies ${command}...` + ); + console.log(); + + const vitalProc = spawn.sync(command, args.concat(vitalDeps), { + stdio: 'inherit', + }); + if (vitalProc.status !== 0) { + console.error(`\`${command} ${args.join(' ')}\` failed`); + return; + } + // Install react and react-dom for backward compatibility with old CRA cli // which doesn't install react and react-dom along with react-scripts // or template is presetend (via --internal-testing-template) diff --git a/packages/react-scripts/template/public/favicon.ico b/packages/react-scripts/template/public/favicon.ico index a11777cc471a4344702741ab1c8a588998b1311a..7a9b6c98b274c1988efc7aa70ac0875e661fa715 100644 GIT binary patch literal 7230 zcmch6hg(z6wssPVROy1$&;&%f^cInhR6&~bF1;l{C_xdVqZBCu5ov;eLZn5C3W`LE zp_c%n6oCXm0VC~he&>AWyY~;cH_x-5?7e1Ytu<@C>z&!NQ!UI480om_Kp+sKk)f^? z2n2?nT{P4n5QzO=BMSHfhg%uwfEtH+e*h1(A%^zhAP_y<*#!m_Kj8v8*!x-AMcA3% zQ1b{5ly>tBcK4Ew3Jd{ygFqTlYQSxvSA-ihDli}@TrEmd=${^H!2Ow6MhN;(mk57N zAv;qG==I<*FQ}sQRcTovEjlO^suAYtt!AaG|L@_zlctbwL_~<1j0^&SkVYs-2Z#B{ z$f>HT%E-#g$jeIsJ*2{;gCg9bq=LeQ|E1*r>CyEH_XzU~iSP>!f}ZJha}SP;&=e9n zGxVR|zx<5w^Zx&qg2MkjEntE&XDu>v(y}uD(G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)j$FN#cCD;ek1R#l zv%pGrhB~KWgoCj%GT?%{@@o(AJGt*PG#l3i>lhmb_twKH^EYvacVY-6bsCl5*^~L0 zonm@lk2UvvTKr2RS%}T>^~EYqdL1q4nD%0n&Xqr^cK^`J5W;lRRB^R-O8b&HENO||mo0xaD+S=I8RTlIfVgqN@SXDr2&-)we--K7w= zJVU8?Z+7k9dy;s;^gDkQa`0nz6N{T?(A&Iz)2!DEecLyRa&FI!id#5Z7B*O2=PsR0 zEvc|8{NS^)!d)MDX(97Xw}m&kEO@5jqRaDZ!+%`wYOI<23q|&js`&o4xvjP7D_xv@ z5hEwpsp{HezI9!~6O{~)lLR@oF7?J7i>1|5a~UuoN=q&6N}EJPV_GD`&M*v8Y`^2j zKII*d_@Fi$+i*YEW+Hbzn{iQk~yP z>7N{S4)r*!NwQ`(qcN#8SRQsNK6>{)X12nbF`*7#ecO7I)Q$uZsV+xS4E7aUn+U(K baj7?x%VD!5Cxk2YbYLNVeiXvvpMCWYo=by@ diff --git a/packages/react-scripts/template/src/App.tsx b/packages/react-scripts/template/src/App.tsx index c1bc27ccd..1b428ad55 100644 --- a/packages/react-scripts/template/src/App.tsx +++ b/packages/react-scripts/template/src/App.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import './App.css'; -import logo from './logo.svg'; +import logo from './icon.png'; class App extends React.Component { public render() { @@ -9,7 +9,7 @@ class App extends React.Component {
logo -

Welcome to React

+

Welcome to React with Vital UI Kit

To get started, edit src/App.tsx and save to reload. diff --git a/packages/react-scripts/template/src/icon.png b/packages/react-scripts/template/src/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7a9b6c98b274c1988efc7aa70ac0875e661fa715 GIT binary patch literal 7230 zcmch6hg(z6wssPVROy1$&;&%f^cInhR6&~bF1;l{C_xdVqZBCu5ov;eLZn5C3W`LE zp_c%n6oCXm0VC~he&>AWyY~;cH_x-5?7e1Ytu<@C>z&!NQ!UI480om_Kp+sKk)f^? z2n2?nT{P4n5QzO=BMSHfh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_lj6;|Um{?MKFs z&S!RLuAK-Ho$uS5AGo7pATFJbz#)aD)0-Wqf9j?wt)cu-4t5+Ovslk$m|GxYawD`w zQo-HFD|#>1WitFU!lj_M?Uz8isBQvwi}>t~`A&2AJ{BIi|4#g4`4V~uWo23HELkYl zdc#qRn6+d7LA(=SlA{q4kt~w={t5n@?#^PpksIRMz)2eC89A636M#7+~gX0E+_l*ffOZWro~_SvsQ(vHbjzK`W7 znNHtNfQz^@LLC?ZJaUg#G&Fl7W~q>p4&)8GRZVQ%{<#@0ZPi*6sni%Qw8*%%m0{J& z)D{|xv~#uyGH>twbzM{<#8C$T6RkvjUTuu&m(4+ov^V9SPh!O1yYbEe6KnltcskHi zy~Se)bNJQ8A7S4lHfGBpTxbBIxSDOevG%*OVya*~ec3+E-;&w{5L!==LR{!;N(;&Z z`dR?GsWo5!(Ef)xbYLUys`j$dkHeeFeZNl(6kc)OULxPTev8S&Waq7}{|fCJALUC$ z1&`NS-#5x=Taa$#!(vW-ZsbP@gh@h6-5s2FB;m@$Z>c}tm^;5!Gg!EuvN&9hNM3K| zk7*oR!2*W~9SSg?4eM$%2g;u)Jl3E8D$ZQ5`>5grDeh- zS_<}8VQMT5n=6icf|c3Yk@6a9sU;w4@u1@f;Zk_%`UiUVqKTlZ#W!TQ(4N*473dhg z4fnGm3bai1Q_2Jz-wgg*6@;|4*>*dtpCM6#5Vg499u@n-w$_)0h0P94qghRKH#HvE zDMHg2%W!Ftymj{AKp^tetm7_8e1;~HztOM!K}$NChpFy*#}~ZxesP7S$aWw zRap;`cA8AvCJGEgMf!8aneB8?wl76P+P~90`RoGEHIQleysUYc|B$dHw|c~D|HfDjG36`HN#{Z5{2 zsW, + + + + + + + , document.getElementById('root') as HTMLElement ); registerServiceWorker(); diff --git a/packages/react-scripts/template/src/store.ts b/packages/react-scripts/template/src/store.ts new file mode 100644 index 000000000..e1e4a7187 --- /dev/null +++ b/packages/react-scripts/template/src/store.ts @@ -0,0 +1,29 @@ +import { createStore, combineReducers, applyMiddleware, compose } from 'redux'; + +const initialState = {}; + +const AppReducer = (state = initialState, action: {type: string}) => { + switch (action.type) { + case 'ACTION': + return state + default: + return state + } +} + +// Add addiotnal middleware and enhancers here +const middleware: any[] = []; +const enhancers: any[] = []; + +const composedEnhancrs = compose( + applyMiddleware(...middleware), + ...enhancers, +) + +export default createStore( + combineReducers({ + app: AppReducer + }), + initialState, + composedEnhancrs +); diff --git a/packages/react-scripts/template/tslint.json b/packages/react-scripts/template/tslint.json index 67823d8e1..39b4ed751 100644 --- a/packages/react-scripts/template/tslint.json +++ b/packages/react-scripts/template/tslint.json @@ -5,5 +5,8 @@ "config/**/*.js", "node_modules/**/*.ts" ] + }, + "rules": { + "ordered-imports": false } } diff --git a/packages/react-scripts/template/vitaluikit.d.ts b/packages/react-scripts/template/vitaluikit.d.ts new file mode 100644 index 000000000..66cad8e9c --- /dev/null +++ b/packages/react-scripts/template/vitaluikit.d.ts @@ -0,0 +1 @@ +declare module '@gssfed/vital-ui-kit-react'; From 03e3f806380a7d6775e8a82fc3cdd7c0b4077e2b Mon Sep 17 00:00:00 2001 From: eric_yip Date: Tue, 15 May 2018 17:13:21 +0800 Subject: [PATCH 2/7] Add templates --- packages/react-scripts/package.json | 2 +- packages/react-scripts/template/src/App.tsx | 28 ++- .../template/src/components/CardCommon.tsx | 26 +++ .../template/src/components/Form.tsx | 42 ++++ .../template/src/components/Overview.tsx | 182 ++++++++++++++++++ packages/react-scripts/template/src/index.tsx | 1 + packages/react-scripts/template/src/logo.svg | 7 - packages/react-scripts/template/tslint.json | 12 +- 8 files changed, 290 insertions(+), 10 deletions(-) create mode 100644 packages/react-scripts/template/src/components/CardCommon.tsx create mode 100644 packages/react-scripts/template/src/components/Form.tsx create mode 100644 packages/react-scripts/template/src/components/Overview.tsx delete mode 100644 packages/react-scripts/template/src/logo.svg diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index f1fd9ad36..39ada7935 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,6 +1,6 @@ { "name": "@gssfed/react-scripts", - "version": "0.0.3", + "version": "0.0.5", "description": "Configuration and scripts for Create React App.", "repository": "gssfed/create-react-app-vital", "license": "BSD-3-Clause", diff --git a/packages/react-scripts/template/src/App.tsx b/packages/react-scripts/template/src/App.tsx index 1b428ad55..4fc6ab5bb 100644 --- a/packages/react-scripts/template/src/App.tsx +++ b/packages/react-scripts/template/src/App.tsx @@ -1,19 +1,45 @@ import * as React from 'react'; import './App.css'; +import { Box, Button } from '@gssfed/vital-ui-kit-react'; +import { Link } from 'react-router-dom'; +import { Route } from 'react-router-dom'; import logo from './icon.png'; +import Overview from './components/Overview'; +import Form from './components/Form'; class App extends React.Component { public render() { return (

- logo + + logo +

Welcome to React with Vital UI Kit

To get started, edit src/App.tsx and save to reload.

+ + Click
here to learn more about Vital UI Kit React πŸ•Ή + + + + + + + +
+ + +
); } diff --git a/packages/react-scripts/template/src/components/CardCommon.tsx b/packages/react-scripts/template/src/components/CardCommon.tsx new file mode 100644 index 000000000..65a53050a --- /dev/null +++ b/packages/react-scripts/template/src/components/CardCommon.tsx @@ -0,0 +1,26 @@ +import * as React from 'react'; +import { Card } from '@gssfed/vital-ui-kit-react'; + +interface Props { + content?: React.ReactNode; + onConfirm?(): void; +}; + +const CardCommon = ({ content = null, onConfirm }: Props) => ( + + + + {content || 'Welcome to Vital UI Kit!'} + + + + Cancel + + + Confirm + + + +); + +export default CardCommon; diff --git a/packages/react-scripts/template/src/components/Form.tsx b/packages/react-scripts/template/src/components/Form.tsx new file mode 100644 index 000000000..bd386a588 --- /dev/null +++ b/packages/react-scripts/template/src/components/Form.tsx @@ -0,0 +1,42 @@ +import * as React from 'react'; +import styled from 'styled-components'; +import { FieldInput, Input, MultipleInput, Addon, TextArea } from '@gssfed/vital-ui-kit-react'; + +const FormWrapper = styled.div` + max-width: 500px; + padding: 40px; + margin: auto; + text-align: left; +`; + +const Form = () => ( + + + + + + + + + + + + + + + + + + + + http:// + + + + +