-
Notifications
You must be signed in to change notification settings - Fork 0
/
replacement.package.json
37 lines (37 loc) · 1.87 KB
/
replacement.package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"name": "simple-init-react-angular-preact-vue",
"version": "1.0.0",
"description": "Comparison of current framework cli-build processes",
"main": "index.js",
"license": "MIT",
"scripts": {
"firstRunPreact": "node_modules/.bin/preact create my-preact-app",
"testPreact": "if [ ! -f my-preact-app/package.json ]; then yarn run firstRunPreact; fi",
"prestartPreact": "yarn install && yarn run testPreact",
"startPreact": "cd my-preact-app && node_modules/.bin/preact watch -p 6789",
"namePkgReturn": "mv package.json replacement.package.json && mv temp.package.json package.json",
"namePkgTemp": "mv package.json temp.package.json && mv replacement.package.json package.json",
"firstRunAngular": "yarn run namePkgTemp && ng new my-angular-app && yarn run namePkgReturn",
"testAngular": "if [ ! -f my-angular-app/package.json ]; then yarn run firstRunAngular; fi",
"prestartAngular": "yarn install && yarn run testAngular",
"startAngular": "cd my-angular-app && node_modules/.bin/ng serve",
"firstRunVue": "node_modules/.bin/vue init webpack my-vue-app",
"testVue": "if [ ! -f my-vue-app/package.json ]; then yarn run firstRunVue; fi",
"prestartVue": "yarn install && yarn run testVue",
"startVue": "cd my-vue-app && yarn install && yarn run dev",
"firstRunReact": "node_modules/.bin/create-react-app my-react-app",
"testReact": "if [ ! -f my-react-app/package.json ]; then yarn run firstRunReact; fi",
"prestartReact": "yarn install && yarn run testReact",
"startReact": "cd my-react-app && yarn start",
"startAll": "parallelshell 'yarn run startReact' 'yarn run startAngular' 'yarn run startPreact'"
},
"peerDependencies": {
"@angular/cli": "^1.4.3",
"create-react-app": "^1.4.0",
"json": "^9.0.6",
"preact-cli": "^1.4.1",
"vue-cli": "^2.8.2",
"yarn": "^1.0.2",
"parallelshell": "^3.0.1"
}
}