forked from Rebolon/php-sf-flex-webpack-encore-vuejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
97 lines (97 loc) · 7.28 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "sf-flex-encore-vuejs",
"version": "0.0.1",
"homepage": "https://github.com/Rebolon/php-sf-flex-webpack-encore-vuejs",
"license": "MIT License",
"private": true,
"config": {
"php": "php",
"server_host_web": "localhost",
"server_port_web": "80",
"server_port_asset": "8080",
"test_browser": "chrome:headless,firefox",
"quasar_style": "mat"
},
"scripts": {
"init-project": "cp .env.dist .env && cp phpunit.xml.dist phpunit.xml && composer install && npm install && npm run db-init && npm run dump-js-config && cd assets/js/devxpress-angular/ && npm install && cd ../../../ && npm run dev",
"init-project:windows": "cp .env.dist .env && composer install && npm install && npm run db-init:windows && npm run dump-js-config:windows && cd assets/js/devxpress-angular/ && npm install && cd ../../../ && npm run dev:windows",
"db-init": "$npm_package_config_php bin/console doctrine:database:create && $npm_package_config_php bin/console doctrine:schema:create && $npm_package_config_php bin/console doctrine:fixtures:load -n",
"db-init:windows": "%npm_package_config_php% bin/console doctrine:database:create && %npm_package_config_php% bin/console doctrine:schema:create && %npm_package_config_php% bin/console doctrine:fixtures:load -n",
"jwt-init": "echo 'Use the same passphrase that is your .env file' && mkdir -p config/jwt && npm run jwt-generation && jwt-generation-test",
"jwt-init:windows": "echo 'Use the same passphrase that is your .env file' && mkdir -p config\\jwt && npm run jwt-generation && jwt-generation-test:windows",
"jwt-generation": "cd config/jwt && openssl genrsa -out private.pem -aes256 4096 && openssl rsa -pubout -in private.pem -out public.pem && cd ../..",
"jwt-generation:windows": "cd config\\jwt && openssl genrsa -out private.pem -aes256 4096 && openssl rsa -pubout -in private.pem -out public.pem && cd ..\\..",
"jwt-generation-test": "echo 'Certificates generation for tests, use the following passphrase: test' && mkdir -p var/cache/config/jwt-test && cp var/travis/jwt-test/* var/cache/config/jwt-test",
"jwt-generation-test:windows": "echo 'Certificates generation for tests, use the following passphrase: test' && cd var\\cache && mkdir config\\jwt-test && cd ..\\.. && cp var/travis/jwt-test/* var/cache/config/jwt-test",
"dump-js-config": "rm assets/js/config.js -f && $npm_package_config_php bin/console app:dump-js-config $npm_package_config_server_host_web $npm_package_config_server_port_web $npm_package_config_quasar_style",
"dump-js-config:windows": "rm assets/js/config.js -f && %npm_package_config_php% bin/console app:dump-js-config %npm_package_config_server_host_web% %npm_package_config_server_port_web% %npm_package_config_quasar_style%",
"sf-dev": "echo 'you should use nginx/apache server, read the README' && $npm_package_config_php -S $npm_package_config_server_host_web:$npm_package_config_server_port_web -t public",
"sf-dev:windows": "echo 'you should use nginx/apache server, read the README' && %npm_package_config_php% -S %npm_package_config_server_host_web%:%npm_package_config_server_port_web% -t public",
"dev-server": "./node_modules/.bin/encore dev-server --port $npm_package_config_server_port_asset",
"dev-server:windows": ".\\node_modules\\.bin\\encore dev-server --port %npm_package_config_server_port_asset%",
"dev-server-hot": "./node_modules/.bin/encore dev-server --hot --port $npm_package_config_server_port_asset",
"dev-server-hot:windows": ".\\node_modules\\.bin\\encore dev-server --hot --port %npm_package_config_server_port_asset%",
"dev": "./node_modules/.bin/encore dev && cd assets/js/devxpress-angular/ && node_modules/.bin/ng build --dev --extract-css",
"dev:windows": ".\\node_modules\\.bin\\encore dev && cd assets/js/devxpress-angular/ && node_modules\\.bin\\ng build --dev --extract-css",
"watch": "./node_modules/.bin/encore dev --watch && cd assets/js/devxpress-angular/ && node_modules/.bin/ng build --dev --watch --extract-css",
"watch:windows": "START /B .\\node_modules\\.bin\\encore dev --watch && cd assets/js/devxpress-angular/ && node_modules\\.bin\\ng build --dev --watch --extract-css",
"build": "./node_modules/.bin/encore production && cd assets/js/devxpress-angular/ && node_modules/.bin/ng build --prod -aot --watch --extract-css",
"build:windows": ".\\node_modules\\.bin\\encore production && cd assets/js/devxpress-angular/ && node_modules\\.bin\\ng build --prod -aot --watch --extract-css",
"build-for-test": "./node_modules/.bin/encore dev",
"build-for-test:windows": ".\\node_modules\\.bin\\encore dev",
"test-cafe": "./node_modules/.bin/testcafe $npm_package_config_test_browser ./assets/tests --reporter spec,xunit:var/report/testcafe.xml",
"test-cafe:windows": ".\\node_modules\\.bin\\testcafe %npm_package_config_test_browser% ./assets/tests --reporter spec,xunit:var/report/testcafe.xml",
"test-karma": "./node_modules/.bin/karma start assets/tests/units/karma.conf.js --single-run",
"test-karma-watch": "./node_modules/.bin/karma start assets/tests/units/karma.conf.js",
"test-php": "npm run build-for-test && ./vendor/bin/phpunit",
"test-php:windows": "npm run build-for-test:windows && .\\vendor\\bin\\phpunit.bat",
"test": "npm run dev && npm run test-php && npm run test-karma && npm run test-cafe && cd assets/js/devxpress-angular/ && node_modules/.bin/ng test && node_modules/.bin/ng e2e",
"test:windows": "npm run dev:windows && npm run test-php:windows && npm run test-karma && npm run test-cafe:windows && cd assets/js/devxpress-angular/ && node_modules\\.bin\\ng test && node_modules\\.bin\\ng e2e"
},
"dependencies": {
"@api-platform/admin": "^0.4.0",
"@rebolon/json-reviver": "0.0.7",
"apollo-cache-inmemory": "^1.1.12",
"apollo-client": "^2.2.8",
"apollo-link": "^1.2.1",
"apollo-link-error": "^1.0.7",
"apollo-link-http": "^1.5.3",
"axios": "^0.18.0",
"graphql": "^0.13.2",
"graphql-tag": "^2.8.0",
"karma-jasmine-html-reporter": "^1.0.0",
"offline-plugin": "^4.9.0",
"prop-types": "^15.6.1",
"quasar-cli": "^0.15.14",
"quasar-extras": "^1.0.2",
"quasar-framework": "^0.15.10",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"rxjs": "^5.5.8",
"vue": "^2.5.16",
"vue-apollo": "^3.0.0-beta.5",
"vue-router": "^3.0.1",
"vuelidate": "^0.6.2"
},
"devDependencies": {
"@angular/cli": "^1.7.4",
"@symfony/webpack-encore": "^0.19.0",
"babel-preset-es2017": "^6.24.1",
"babel-preset-react": "^6.24.1",
"bootstrap": "4.0.0",
"jasmine": "^3.1.0",
"karma": "^2.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.1.1",
"karma-junit-reporter": "^1.2.0",
"karma-spec-reporter": "0.0.32",
"karma-webpack": "^3.0.0",
"node-sass": "^4.8.3",
"prettier": "^1.11.1",
"sass-loader": "^6.0.7",
"testcafe": "^0.19.2",
"testcafe-vue-selectors": "^3.0.0",
"vue-loader": "^14.2.2",
"vue-template-compiler": "^2.5.16"
}
}