create-views-app
Advanced tools
Comparing version 23.4.0 to 23.5.0
92
index.js
@@ -110,3 +110,2 @@ let { existsSync, promises: fs } = require('fs') | ||
// setup scripts | ||
pkg.scripts['start:react'] = pkg.scripts.start | ||
pkg.scripts.start = `concurrently --kill-others npm:start:*` | ||
@@ -122,2 +121,4 @@ pkg.scripts['start:views'] = `views-morph src --watch --as ${ | ||
pkg.scripts.test = 'react-app-rewired test' | ||
} else { | ||
pkg.scripts['start:react'] = pkg.scripts.ios | ||
} | ||
@@ -197,2 +198,3 @@ | ||
[path.join(cwd, 'jsconfig.json'), JSCONFIG_JSON], | ||
[path.join(cwd, 'app.viewstools'), APP_VIEWSTOOLS_WEB], | ||
].map(([file, content]) => fs.writeFile(file, content)) | ||
@@ -206,2 +208,3 @@ ) | ||
[path.join(cwd, 'babel.config.js'), BABEL_CONFIG_JS_NATIVE], | ||
[path.join(cwd, 'app.viewstools'), APP_VIEWSTOOLS_NATIVE], | ||
].map(([file, content]) => fs.writeFile(file, content)) | ||
@@ -494,1 +497,88 @@ ) | ||
}` | ||
let APP_VIEWSTOOLS_WEB = `{ | ||
"version": 1, | ||
"url": "http://localhost:3000", | ||
"media": { | ||
"base": "laptop", | ||
"mobile": { | ||
"width": 424, | ||
"height": 667 | ||
}, | ||
"tablet": { | ||
"width": 1024, | ||
"height": 768 | ||
}, | ||
"laptop": { | ||
"width": 1280, | ||
"height": 800 | ||
}, | ||
"desktop": { | ||
"width": 2560, | ||
"height": 1600 | ||
} | ||
}, | ||
"runtime": [ | ||
{ | ||
"id": "start:views", | ||
"name": "Views Morpher", | ||
"command": "yarn start:views --tools", | ||
"readyCheck": "Views Morpher is ready", | ||
"dependsOn": [] | ||
}, | ||
{ | ||
"id": "start:react", | ||
"name": "React", | ||
"command": "BROWSER=none yarn start:react", | ||
"readyCheck": "(Compiled|Welcome to React Native|Expo DevTools is running)", | ||
"dependsOn": ["start:views"] | ||
} | ||
{ | ||
"id": "preview", | ||
"name": "Preview", | ||
"command": "open http://localhost:3000 && echo 'Done'", | ||
"readyCheck": "Done", | ||
"dependsOn": ["start:react"] | ||
} | ||
] | ||
}` | ||
let APP_VIEWSTOOLS_NATIVE = `{ | ||
"version": 1, | ||
"url": "http://localhost:3000", | ||
"media": { | ||
"base": "laptop", | ||
"mobile": { | ||
"width": 424, | ||
"height": 667 | ||
}, | ||
"tablet": { | ||
"width": 1024, | ||
"height": 768 | ||
}, | ||
"laptop": { | ||
"width": 1280, | ||
"height": 800 | ||
}, | ||
"desktop": { | ||
"width": 2560, | ||
"height": 1600 | ||
} | ||
}, | ||
"runtime": [ | ||
{ | ||
"id": "start:views", | ||
"name": "Views Morpher", | ||
"command": "yarn start:views --tools", | ||
"readyCheck": "Views Morpher is ready", | ||
"dependsOn": [] | ||
}, | ||
{ | ||
"id": "start:react", | ||
"name": "React", | ||
"command": "yarn start:react", | ||
"readyCheck": "(Compiled|Welcome to React Native|Expo DevTools is running)", | ||
"dependsOn": ["start:views"] | ||
} | ||
] | ||
}` |
{ | ||
"name": "create-views-app", | ||
"version": "23.4.0", | ||
"version": "23.5.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
16530
517