dooboo-cli
Advanced tools
Comparing version 3.7.3 to 3.8.0
export const RN_PROJECT_VERSION = '0.63.0'; | ||
export const RN_VERSION = '0.63.0'; | ||
export const EXPO_VERSION = '39'; | ||
export const EXPO_VERSION = '40'; |
## Changelogs | ||
**[3.8.0]** | ||
- Upgrade expo project to sdk 40. | ||
**[3.7.3]** | ||
@@ -3,0 +6,0 @@ - Remove react-native-cli peer dependencies since this is all in npx now. |
@@ -14,3 +14,3 @@ "use strict"; | ||
const childProcess = require("child_process"); | ||
exports.cbResultWeb = (template, nameOfApp, answer, options, spinner) => { | ||
const cbResultWeb = (template, nameOfApp, answer, options, spinner) => { | ||
shell.exec(`git clone ${template} ${nameOfApp}`, (code, stdout, stderr) => { | ||
@@ -35,3 +35,4 @@ if (code !== 0) { | ||
}; | ||
exports.cbResultApp = (template, nameOfApp, answer, options, spinner) => { | ||
exports.cbResultWeb = cbResultWeb; | ||
const cbResultApp = (template, nameOfApp, answer, options, spinner) => { | ||
shell.exec(`git clone ${template} ${nameOfApp}`, (code, stdout, stderr) => { | ||
@@ -82,3 +83,4 @@ if (code !== 0) { | ||
}; | ||
exports.cbResultExpo = (template, nameOfApp, answer, options, spinner) => { | ||
exports.cbResultApp = cbResultApp; | ||
const cbResultExpo = (template, nameOfApp, answer, options, spinner) => { | ||
shell.exec(`git clone ${template} ${nameOfApp}`, (code, stdout, stderr) => { | ||
@@ -106,1 +108,2 @@ if (code !== 0) { | ||
}; | ||
exports.cbResultExpo = cbResultExpo; |
@@ -6,2 +6,2 @@ "use strict"; | ||
exports.RN_VERSION = '0.63.0'; | ||
exports.EXPO_VERSION = '39'; | ||
exports.EXPO_VERSION = '40'; |
{ | ||
"name": "dooboo-cli", | ||
"version": "3.7.2", | ||
"version": "3.8.0", | ||
"description": "starting react express app with me!", | ||
@@ -36,9 +36,9 @@ "bin": { | ||
"devDependencies": { | ||
"@dooboo/eslint-config": "^0.5.4", | ||
"@dooboo/eslint-config": "^0.5.6", | ||
"@types/inquirer": "^7.3.1", | ||
"@types/node": "^14.14.6", | ||
"@types/node": "^14.14.12", | ||
"@types/ora": "^3.2.0", | ||
"@types/shelljs": "^0.8.8", | ||
"eslint": "^7.13.0", | ||
"typescript": "^4.0.5" | ||
"eslint": "^7.15.0", | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -45,0 +45,0 @@ "repository": { |
@@ -20,3 +20,3 @@ 'use strict'; | ||
const path = require("path"); | ||
exports.fsExists = function (file) { | ||
const fsExists = function (file) { | ||
return new Promise((resolve) => { | ||
@@ -28,3 +28,4 @@ fs.exists(file, function (exists) { | ||
}; | ||
exports.resolveTemplate = (projectType, componentType, componentName, fileExt = 'tsx') => { | ||
exports.fsExists = fsExists; | ||
const resolveTemplate = (projectType, componentType, componentName, fileExt = 'tsx') => { | ||
const template = path.resolve(__dirname, '..', `templates/${projectType}/${componentType}/${componentName}.${fileExt}`); | ||
@@ -37,3 +38,4 @@ const testTemplate = path.resolve(__dirname, '..', `templates/${projectType}/${componentType}/${componentName}.test.${fileExt}`); | ||
}; | ||
exports.resolveComponent = (componentType, name, fileExt = 'tsx') => { | ||
exports.resolveTemplate = resolveTemplate; | ||
const resolveComponent = (componentType, name, fileExt = 'tsx') => { | ||
const component = `./src/components/${componentType}/${name}.${fileExt}`; | ||
@@ -46,3 +48,4 @@ const testComponent = `./src/components/${componentType}/__tests__/${name}.test.${fileExt}`; | ||
}; | ||
exports.exitIfNotDoobooRepo = () => __awaiter(void 0, void 0, void 0, function* () { | ||
exports.resolveComponent = resolveComponent; | ||
const exitIfNotDoobooRepo = () => __awaiter(void 0, void 0, void 0, function* () { | ||
const exists = yield exports.fsExists('.dooboo'); | ||
@@ -54,3 +57,4 @@ if (!exists) { | ||
}); | ||
exports.toCamelCase = function (str, cap1st) { | ||
exports.exitIfNotDoobooRepo = exitIfNotDoobooRepo; | ||
const toCamelCase = function (str, cap1st) { | ||
return ((cap1st ? '-' : '') + str).replace(/-+([^-])/g, function (a, b) { | ||
@@ -60,3 +64,4 @@ return b.toUpperCase(); | ||
}; | ||
exports.isCamelCase = function (str) { | ||
exports.toCamelCase = toCamelCase; | ||
const isCamelCase = function (str) { | ||
if (exports.toCamelCase(str, true) === str) { | ||
@@ -69,6 +74,8 @@ return true; | ||
}; | ||
exports.camelCaseToDash = function (str) { | ||
exports.isCamelCase = isCamelCase; | ||
const camelCaseToDash = function (str) { | ||
return str.replace(/([a-zA-Z])(?=[A-Z])/g, '$1-').toLowerCase(); | ||
}; | ||
exports.camelize = function (str) { | ||
exports.camelCaseToDash = camelCaseToDash; | ||
const camelize = function (str) { | ||
return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function (match, index) { | ||
@@ -81,3 +88,4 @@ if (+match === 0) { | ||
}; | ||
exports.upperCamelize = function (str) { | ||
exports.camelize = camelize; | ||
const upperCamelize = function (str) { | ||
return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function (match) { | ||
@@ -90,3 +98,4 @@ if (+match === 0) { | ||
}; | ||
exports.exec = function (command) { | ||
exports.upperCamelize = upperCamelize; | ||
const exec = function (command) { | ||
return new Promise((resolve, reject) => shelljs.exec(command, {}, (code, value, error) => { | ||
@@ -100,1 +109,2 @@ if (error) { | ||
}; | ||
exports.exec = exec; |
{ | ||
"name": "dooboo-cli", | ||
"version": "3.7.3", | ||
"version": "3.8.0", | ||
"description": "starting react express app with me!", | ||
@@ -36,9 +36,9 @@ "bin": { | ||
"devDependencies": { | ||
"@dooboo/eslint-config": "^0.5.4", | ||
"@dooboo/eslint-config": "^0.5.6", | ||
"@types/inquirer": "^7.3.1", | ||
"@types/node": "^14.14.6", | ||
"@types/node": "^14.14.12", | ||
"@types/ora": "^3.2.0", | ||
"@types/shelljs": "^0.8.8", | ||
"eslint": "^7.13.0", | ||
"typescript": "^4.0.5" | ||
"eslint": "^7.15.0", | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -45,0 +45,0 @@ "repository": { |
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
209388
2685