Skip to content

Commit 29d6705

Browse files
renaming package.json
1 parent d200db1 commit 29d6705

File tree

3 files changed

+51
-8425
lines changed

3 files changed

+51
-8425
lines changed

package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,29 @@
99
"testPreact": "if [ ! -f my-preact-app/package.json ]; then yarn run firstRunPreact; fi",
1010
"prestartPreact": "yarn run testPreact",
1111
"startPreact": "cd my-preact-app && yarn start",
12-
"firstRunAngular": "ng new my-angular-app",
13-
"testAngular": "if [ ! -f my-angular-app/package.json ]; then node_modules/.bin/yarn run firstRunAngular; fi",
14-
"prestartAngular": "node_modules/.bin/yarn run testAngular",
12+
"namePkgReturn": "mv package.json replacement.package.json temp.package.json package.json",
13+
"namePkgTemp": "mv package.json temp.package.json && mv replacement.package.json package.json",
14+
"firstRunAngular": "npm run namePkgTemp && ng new my-angular-app && npm run namePkgReturn",
15+
"testAngular": "if [ ! -f my-angular-app/package.json ]; then npm run firstRunAngular; fi",
16+
"prestartAngular": "npm run testAngular",
1517
"startAngular": "cd my-angular-app && node_modules/.bin/ng serve",
1618
"firstRunVue": "node_modules/.bin/vue init webpack my-vue-app",
1719
"testVue": "if [ ! -f my-vue-app/package.json ]; then yarn run firstRunVue; fi",
1820
"prestartVue": "yarn run testVue",
19-
"startVue": "cd my-vue-app && yarn start",
21+
"startVue": "cd my-vue-app && npm install && npm run dev",
2022
"firstRunReact": "node_modules/.bin/create-react-app my-react-app",
2123
"testReact": "if [ ! -f my-react-app/package.json ]; then yarn run firstRunReact; fi",
2224
"prestartReact": "yarn run testReact",
23-
"startReact": "cd my-react-app && yarn start"
25+
"startReact": "cd my-react-app && yarn start",
26+
"startAll": "parallelshell 'yarn run startReact' 'yarn run startAngular' 'yarn run startPreact' 'yarn run startVue'"
2427
},
2528
"dependencies": {
29+
"@angular/cli": "^1.4.3",
2630
"create-react-app": "^1.4.0",
31+
"json": "^9.0.6",
2732
"preact-cli": "^1.4.1",
2833
"vue-cli": "^2.8.2",
29-
"yarn": "^1.0.2"
30-
},
31-
"devDependencies": {
34+
"yarn": "^1.0.2",
35+
"parallelshell": "^3.0.1"
3236
}
3337
}

replacement.package.json

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

0 commit comments

Comments
 (0)