dooboo-cli
Advanced tools
Comparing version 7.7.2 to 8.0.0
@@ -0,11 +1,10 @@ | ||
import {Ora} from 'ora'; | ||
import {RN_VERSION} from './const'; | ||
import {camelCaseToDash} from '../utils/functions'; | ||
import chalk from 'chalk'; | ||
import childProcess from 'child_process'; | ||
import os from 'os'; | ||
import {setTimeout} from 'timers'; | ||
import shell from 'shelljs'; | ||
import ora = require('ora'); | ||
import os = require('os'); | ||
import shell = require('shelljs'); | ||
import childProcess = require('child_process'); | ||
export const cbResultReact = ( | ||
@@ -16,3 +15,3 @@ template: string, | ||
options: any, | ||
spinner: ora.Ora, | ||
spinner: Ora, | ||
): void => { | ||
@@ -60,3 +59,3 @@ shell.exec( | ||
options: any, | ||
spinner: ora.Ora, | ||
spinner: Ora, | ||
): void => { | ||
@@ -193,3 +192,3 @@ shell.exec( | ||
options: any, | ||
spinner: ora.Ora, | ||
spinner: Ora, | ||
): void => { | ||
@@ -196,0 +195,0 @@ shell.exec( |
158
CHANGELOG.md
@@ -1,157 +0,3 @@ | ||
## 7.4.0 | ||
# CHANGELOG | ||
- Upgrade RN project to 0.67.2. | ||
## 7.3.3 | ||
- React Native template 0.66.4. | ||
## 7.3.2 | ||
- Remove `withScreen` wrapper from the RN template. | ||
## 7.3.0 | ||
- React Native Project with [expo modules](https://docs.expo.dev/bare/installing-expo-modules) | ||
## 7.2.0 | ||
- TS config fixes and organize packages | ||
## 7.1.2 | ||
- Remove `import React` from all templates. From `Expo 44`, this can be removed. | ||
## 7.1.0 | ||
- Upgrade expo project to sdk `44`. | ||
## 7.0.1 | ||
- Upgrade react-native-project to `0.66.3`. | ||
## 7.0.0 | ||
- Upgrade react-native project to `0.66+` with [dooboo-ui](https://github.com/dooboolab/dooboo-ui) preinstalled. | ||
- Upgrade expo project to sdk 43 with [dooboo-ui](https://github.com/dooboolab/dooboo-ui) preinstalled. | ||
## 6.7.1 | ||
- Update packages | ||
``` | ||
@dooboo/eslint-config ^0.8.2 → ^0.8.5 | ||
@types/inquirer ^7.3.3 → ^8.1.1 | ||
@types/node ^16.4.13 → ^16.9.2 | ||
typescript ^4.3.5 → ^4.4.3 | ||
boxen ^5.0.1 → ^5.1.2 | ||
commander ^8.1.0 → ^8.2.0 | ||
inquirer ^8.1.2 → ^8.1.5 | ||
ora ^5.4.1 → ^6.0.1 | ||
``` | ||
## 6.7.0 | ||
- Upgrade RN project to 0.65.1 | ||
## 6.6.0 | ||
- Update expo project to sdk 42. | ||
## 6.5.0 | ||
- Migrate `react` template to `emotion v11` and `react-router-dom v6`. | ||
## 6.4.3 | ||
- Add `react-native link` command at the end. It now includes [dooboo-ui](https://dooboo-ui.dooboolab.com). | ||
## 6.4.2 | ||
[Bugfix] | ||
- Rename `package` in `MainActivity` to lowercase. | ||
## 6.4.1 | ||
Fix file search from `app.json` to `app.config.ts`. | ||
## 6.4.0 | ||
Integrate [dooboo-ui](https://github.com/dooboolab/dooboo-ui) to `react-native` and `expo` projects. | ||
## 6.3.0 | ||
Update `react` and `react-native` templates to [emotion](https://emotion.sh) | ||
Update `expo` project template to `sdk 41`. | ||
## 6.2.1 | ||
Android app registry name to original. | ||
## 6.2.0 | ||
React Native project is now based on `0.64.+`. | ||
## 6.1.0 | ||
Changed generate component path: `templates` => `uis` | ||
## 6.0.7 | ||
Fixed provider template paths. | ||
## 6.0.6 | ||
Fix `sed` script during test file creation. | ||
Changed `theme.font` => `theme.text` in template files. | ||
## 6.0.5 | ||
Fix typo in `react-native` page tempalte. | ||
## 6.0.4 | ||
Generate files in plural dir. Now the boilerplate has all plural folder name. | ||
## 6.0.2 | ||
Boilerplates are not configured in atomic design pattern. | ||
## 5.1.1 | ||
Changed react-native screen template text to `Page` from `Screen`. Because we now have `withScreen` wrapper in it which shouldn't be changed. | ||
## 5.1.0 | ||
Added `withScreen` utility function imports rather than wrapping `Container` which is removed in `react-native` template. | ||
## 5.0.2 | ||
Added below style for `react-native` screen template to fulfil the screen. | ||
```css | ||
flex: 1; | ||
align-self: stretch; | ||
``` | ||
## 5.0.0 | ||
- React Native template now support web! | ||
- Renamed callback func more specifically | ||
- cbResultWeb to cbResultReact and cbResultApp to cbResultReactNative. | ||
- Replaced `cd ios && pod install to npx pod-install`. | ||
- Renamed templates dir to `expo` | ||
Expo is the higher condition that overlap react-native. Since we now have some differences between react-native and expo templates, we separate them to expo | ||
- Separated screen templates for rn and expo | ||
- Changed pointing RN and EXPO project branches | ||
- Applied new linting rules and refactor the codebase | ||
- Added compatibility command for v5 | ||
All in [release notes](https://github.com/dooboolab/dooboo-cli/releases). |
{ | ||
"name": "dooboo-cli", | ||
"packageManager": "yarn@3.2.1", | ||
"version": "7.7.2", | ||
"version": "8.0.0", | ||
"description": "React and react-native starter kit", | ||
@@ -27,20 +27,24 @@ "bin": { | ||
"dependencies": { | ||
"boxen": "^5.1.2", | ||
"chalk": "^4.1.2", | ||
"commander": "^8.3.0", | ||
"inquirer": "^8.2.0", | ||
"ora": "5.4.1", | ||
"boxen": "^7.0.0", | ||
"chalk": "^5.0.1", | ||
"commander": "^9.4.0", | ||
"inquirer": "^9.0.2", | ||
"ora": "6.1.2", | ||
"select-shell": "^1.1.3", | ||
"shelljs": "^0.8.4", | ||
"update-notifier": "^5.1.0" | ||
"shelljs": "^0.8.5", | ||
"update-notifier": "^6.0.2" | ||
}, | ||
"devDependencies": { | ||
"@dooboo/eslint-config": "^1.2.2", | ||
"@types/inquirer": "^8.1.3", | ||
"@types/keyv": "^3.1.3", | ||
"@types/node": "^16.11.11", | ||
"@dooboo/eslint-config": "^1.4.0", | ||
"@types/inquirer": "^8.2.1", | ||
"@types/keyv": "^3.1.4", | ||
"@types/node": "^18.0.6", | ||
"@types/ora": "^3.2.0", | ||
"@types/shelljs": "^0.8.9", | ||
"eslint": "^7.32.0", | ||
"typescript": "^4.4.4" | ||
"@types/shelljs": "^0.8.11", | ||
"@types/update-notifier": "^6.0.1", | ||
"eslint": "^8.20.0", | ||
"eslint-plugin-jest": "^26.6.0", | ||
"jest": "^28.1.3", | ||
"prettier": "^2.7.1", | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -47,0 +51,0 @@ "repository": { |
# dooboo-cli | ||
[![CI](https://github.com/dooboolab/dooboo-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/dooboolab/dooboo-cli/actions/workflows/ci.yml) | ||
[![deploy pkg](https://github.com/dooboolab/dooboo-cli/actions/workflows/deploy.yml/badge.svg)](https://github.com/dooboolab/dooboo-cli/actions/workflows/deploy.yml) | ||
[![Npm Version](http://img.shields.io/npm/v/dooboo-cli.svg?style=flat-square)](https://npmjs.org/package/dooboo-cli) | ||
@@ -4,0 +6,0 @@ [![Downloads](http://img.shields.io/npm/dm/dooboo-cli.svg?style=flat-square)](https://npmjs.org/package/dooboo-cli) |
{ | ||
"compilerOptions": { | ||
"target": "es2018", | ||
"target": "ESNext", | ||
"useDefineForClassFields": true, | ||
"lib": ["ESNext"], | ||
"allowJs": false, | ||
"skipLibCheck": true, | ||
"outDir": "lib", | ||
"incremental": true, | ||
"lib": ["esnext"], | ||
"esModuleInterop": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"esModuleInterop": false, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"noImplicitAny": false, | ||
"noUncheckedIndexedAccess": false, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"useUnknownInCatchVariables": false, | ||
"skipDefaultLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"importHelpers": true, | ||
"module": "commonjs", | ||
"preserveConstEnums": true, | ||
"resolveJsonModule": true | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
"typeRoots": ["./@types", "./node_modules/@types"] | ||
}, | ||
@@ -26,0 +20,0 @@ "include": ["bin/**/*.ts", "utils/**/*.ts"], |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2833844
124
0
1
12
81
10760
+ Added@inquirer/figures@1.0.8(transitive)
+ Added@pnpm/config.env-replace@1.1.0(transitive)
+ Added@pnpm/network.ca-file@1.0.2(transitive)
+ Added@pnpm/npm-conf@2.3.1(transitive)
+ Added@sindresorhus/is@5.6.0(transitive)
+ Added@szmarczak/http-timer@5.0.1(transitive)
+ Added@types/http-cache-semantics@4.0.4(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedbl@5.1.0(transitive)
+ Addedboxen@7.1.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedcacheable-lookup@7.0.0(transitive)
+ Addedcacheable-request@10.2.14(transitive)
+ Addedcamelcase@7.0.1(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedci-info@3.9.0(transitive)
+ Addedcli-boxes@3.0.0(transitive)
+ Addedcli-cursor@4.0.0(transitive)
+ Addedcli-width@4.1.0(transitive)
+ Addedcommander@9.5.0(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addedconfigstore@6.0.0(transitive)
+ Addedcrypto-random-string@4.0.0(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addeddot-prop@6.0.1(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedescape-goat@4.0.0(transitive)
+ Addedform-data-encoder@2.1.4(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedgot@12.6.1(transitive)
+ Addedgraceful-fs@4.2.10(transitive)
+ Addedhas-yarn@3.0.0(transitive)
+ Addedhttp2-wrapper@2.2.1(transitive)
+ Addedimport-lazy@4.0.0(transitive)
+ Addedinquirer@9.3.7(transitive)
+ Addedis-ci@3.0.1(transitive)
+ Addedis-interactive@2.0.0(transitive)
+ Addedis-npm@6.0.0(transitive)
+ Addedis-unicode-supported@1.3.0(transitive)
+ Addedis-yarn-global@0.4.1(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlatest-version@7.0.0(transitive)
+ Addedlog-symbols@5.1.0(transitive)
+ Addedlowercase-keys@3.0.0(transitive)
+ Addedmimic-response@3.1.04.0.0(transitive)
+ Addedmute-stream@1.0.0(transitive)
+ Addednormalize-url@8.0.1(transitive)
+ Addedora@6.1.2(transitive)
+ Addedp-cancelable@3.0.0(transitive)
+ Addedpackage-json@8.1.1(transitive)
+ Addedproto-list@1.2.4(transitive)
+ Addedpupa@3.1.0(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedregistry-auth-token@5.0.3(transitive)
+ Addedregistry-url@6.0.1(transitive)
+ Addedresolve-alpn@1.2.1(transitive)
+ Addedresponselike@3.0.0(transitive)
+ Addedrestore-cursor@4.0.0(transitive)
+ Addedrun-async@3.0.0(transitive)
+ Addedsemver-diff@4.0.0(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedtype-fest@1.4.02.19.0(transitive)
+ Addedunique-string@3.0.0(transitive)
+ Addedupdate-notifier@6.0.2(transitive)
+ Addedwidest-line@4.0.1(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
+ Addedxdg-basedir@5.1.0(transitive)
+ Addedyoctocolors-cjs@2.1.2(transitive)
- Removed@sindresorhus/is@0.14.0(transitive)
- Removed@szmarczak/http-timer@1.1.2(transitive)
- Removedboxen@5.1.2(transitive)
- Removedcacheable-request@6.1.0(transitive)
- Removedcamelcase@6.3.0(transitive)
- Removedci-info@2.0.0(transitive)
- Removedcli-boxes@2.2.1(transitive)
- Removedcli-width@3.0.0(transitive)
- Removedclone-response@1.0.3(transitive)
- Removedcommander@8.3.0(transitive)
- Removedconfigstore@5.0.1(transitive)
- Removedcrypto-random-string@2.0.0(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddefer-to-connect@1.1.3(transitive)
- Removeddot-prop@5.3.0(transitive)
- Removedduplexer3@0.1.5(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedescape-goat@2.1.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfigures@3.2.0(transitive)
- Removedget-stream@4.1.05.2.0(transitive)
- Removedgot@9.6.0(transitive)
- Removedhas-yarn@2.1.0(transitive)
- Removedimport-lazy@2.1.0(transitive)
- Removedinquirer@8.2.6(transitive)
- Removedis-ci@2.0.0(transitive)
- Removedis-npm@5.0.0(transitive)
- Removedis-yarn-global@0.3.0(transitive)
- Removedjson-buffer@3.0.0(transitive)
- Removedkeyv@3.1.0(transitive)
- Removedlatest-version@5.1.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlowercase-keys@1.0.12.0.0(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removedmute-stream@0.0.8(transitive)
- Removednormalize-url@4.5.1(transitive)
- Removedp-cancelable@1.1.0(transitive)
- Removedpackage-json@6.5.0(transitive)
- Removedprepend-http@2.0.0(transitive)
- Removedpump@3.0.2(transitive)
- Removedpupa@2.1.1(transitive)
- Removedregistry-auth-token@4.2.2(transitive)
- Removedregistry-url@5.1.0(transitive)
- Removedresponselike@1.0.2(transitive)
- Removedrun-async@2.4.1(transitive)
- Removedsemver@6.3.1(transitive)
- Removedsemver-diff@3.1.1(transitive)
- Removedthrough@2.3.8(transitive)
- Removedto-readable-stream@1.0.0(transitive)
- Removedtype-fest@0.20.2(transitive)
- Removedunique-string@2.0.0(transitive)
- Removedupdate-notifier@5.1.0(transitive)
- Removedurl-parse-lax@3.0.0(transitive)
- Removedwidest-line@3.1.0(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedxdg-basedir@4.0.0(transitive)
Updatedboxen@^7.0.0
Updatedchalk@^5.0.1
Updatedcommander@^9.4.0
Updatedinquirer@^9.0.2
Updatedora@6.1.2
Updatedshelljs@^0.8.5
Updatedupdate-notifier@^6.0.2