create-views-app
Advanced tools
Comparing version 23.3.1 to 23.4.0
81
index.js
@@ -53,30 +53,31 @@ let { existsSync, promises: fs } = require('fs') | ||
// dependencies | ||
await Promise.all([ | ||
addDependency('@viewstools/morph'), | ||
addDependency('concurrently'), | ||
addDependency('husky'), | ||
addDependency('lint-staged'), | ||
addDependency('prettier'), | ||
addDependency('immer'), | ||
addDependency('graphql'), | ||
addDependency('graphql-tag'), | ||
addDependency('urql'), | ||
addDependency('react-spring'), | ||
]) | ||
// await Promise.all([ | ||
// addDependency('@viewstools/morph'), | ||
// addDependency('concurrently'), | ||
// addDependency('husky'), | ||
// addDependency('lint-staged'), | ||
// addDependency('prettier'), | ||
// addDependency('immer'), | ||
// addDependency('graphql'), | ||
// addDependency('graphql-tag'), | ||
// addDependency('urql'), | ||
// addDependency('react-spring'), | ||
// ]) | ||
if (isReactDom) { | ||
await Promise.all([ | ||
addDependency('emotion'), | ||
addDependency('react-app-rewired'), | ||
addDependency('customize-cra'), | ||
addDependency('customize-cra-react-refresh'), | ||
addDependency('internal-ip'), | ||
addDependency('use-media'), | ||
addDependency('@viewstools/use-masked-input'), | ||
addDependency('react-app-polyfill'), | ||
addDependency('@reach/dialog'), | ||
addDependency('mousetrap'), | ||
addDependency('react-virtualized-auto-sizer'), | ||
addDependency('react-window'), | ||
]) | ||
await addDependency('@viewstools/create-react-app') | ||
// await Promise.all([ | ||
// addDependency('emotion'), | ||
// addDependency('react-app-rewired'), | ||
// addDependency('customize-cra'), | ||
// addDependency('customize-cra-react-refresh'), | ||
// addDependency('internal-ip'), | ||
// addDependency('use-media'), | ||
// addDependency('@viewstools/use-masked-input'), | ||
// addDependency('react-app-polyfill'), | ||
// addDependency('@reach/dialog'), | ||
// addDependency('mousetrap'), | ||
// addDependency('react-virtualized-auto-sizer'), | ||
// addDependency('react-window'), | ||
// ]) | ||
@@ -91,14 +92,15 @@ pkg.browserslist = { | ||
} | ||
} else if (isReactNative) { | ||
await addDependency('@viewstools/create-expo-app') | ||
// addDependency('d3-ease') | ||
} | ||
pkg.husky = { | ||
hooks: { | ||
'pre-commit': 'lint-staged', | ||
}, | ||
} | ||
pkg.husky = { | ||
hooks: { | ||
'pre-commit': 'lint-staged', | ||
}, | ||
} | ||
pkg['lint-staged'] = { | ||
'*.{js,json,css,md}': ['prettier --write', 'git add'], | ||
} | ||
} else if (isReactNative) { | ||
addDependency('d3-ease') | ||
pkg['lint-staged'] = { | ||
'*.{js,json,css,md}': ['prettier --write', 'git add'], | ||
} | ||
@@ -112,3 +114,3 @@ | ||
pkg.scripts.start = `concurrently --kill-others npm:start:*` | ||
pkg.scripts['start:views'] = `REACT_APP_VIEWS_TOOLS=true views-morph src --watch --as ${ | ||
pkg.scripts['start:views'] = `views-morph src --watch --as ${ | ||
isReactDom ? 'react-dom' : 'react-native' | ||
@@ -189,6 +191,3 @@ }` | ||
// write App.view.logic.js | ||
[ | ||
path.join(cwd, 'src', 'App', 'logic.js'), | ||
APP_VIEW_LOGIC_DOM, | ||
], | ||
[path.join(cwd, 'src', 'App', 'logic.js'), APP_VIEW_LOGIC_DOM], | ||
// setup react-refresh | ||
@@ -195,0 +194,0 @@ [path.join(cwd, 'config-overrides.js'), CONFIG_OVERRIDES], |
{ | ||
"name": "create-views-app", | ||
"version": "23.3.1", | ||
"version": "23.4.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
14591
429