@eui/cli 21.0.0-alpha.9 → 21.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/eui-cli.js +61 -41
- package/bin/scripts/build-app.js +12 -0
- package/bin/scripts/lint-app.js +22 -0
- package/bin/scripts/new.js +39 -0
- package/bin/scripts/serve-app.js +12 -0
- package/lib/app-utils/build.js +176 -0
- package/lib/app-utils/projects.js +41 -0
- package/lib/app-utils/serve.js +78 -0
- package/lib/build.js +14 -39
- package/lib/cli.js +22 -5
- package/lib/config.js +1 -0
- package/lib/generators.js +5 -8
- package/lib/install.js +7 -7
- package/lib/post-build.js +1 -3
- package/lib/skeletons/_angular/base/angular.json +12 -25
- package/lib/skeletons/_angular/base/eslint.config.js +43 -0
- package/lib/skeletons/_angular/base/package.json +29 -23
- package/lib/skeletons/_angular/base/src/app/app-starter.service.spec.ts +8 -6
- package/lib/skeletons/_angular/base/src/app/app.component.html +3 -3
- package/lib/skeletons/_angular/base/src/app/app.component.spec.ts +15 -13
- package/lib/skeletons/_angular/base/src/app/app.component.ts +2 -2
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +5 -3
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +2 -4
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +1 -1
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +2 -0
- package/lib/skeletons/_angular/base/src/karma.conf.js +42 -2
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +3 -0
- package/lib/skeletons/_angular/base/src/tsconfig.spec.json +1 -5
- package/lib/skeletons/_angular/base/tsconfig.json +28 -24
- package/lib/skeletons/_angular/base-mobile/package.json +4 -4
- package/lib/skeletons/_angular/base-mobile/tsconfig.json +27 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +16 -16
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.ts +4 -4
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +16 -16
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.ts +4 -4
- package/lib/skeletons/_angular/options/ecl-eu/src/app/shared/shared.module.ts +1 -5
- package/lib/skeletons/_angular/options/pnpm/package.json +72 -0
- package/lib/utils.js +204 -0
- package/package.json +10 -13
- package/.version.properties +0 -1
- package/lib/skeletons/_angular/base/.euirc.json +0 -8
- package/lib/skeletons/_angular/base/src/.eslintrc.json +0 -121
- package/lib/skeletons/web-symfony/myapp-web/angular.json +0 -169
- package/lib/skeletons/web-symfony/myapp-web/package.json +0 -23
- package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +0 -18
- package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +0 -77
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +0 -160
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.scss +0 -0
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +0 -104
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +0 -6
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +0 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +0 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +0 -29
- package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +0 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/.env +0 -28
- package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +0 -42
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +0 -67
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +0 -3572
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +0 -21
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +0 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/config/config.yml +0 -0
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +0 -19
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +0 -29
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +0 -5
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +0 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +0 -32
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +0 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +0 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +0 -196
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +0 -99
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +0 -53
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +0 -31
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +0 -35
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +0 -51
- package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +0 -274
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +0 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/lucky/number.html.twig +0 -1
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +0 -20
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# In all environments, the following files are loaded if they exist,
|
|
2
|
-
# the later taking precedence over the former:
|
|
3
|
-
#
|
|
4
|
-
# * .env contains default values for the environment variables needed by the app
|
|
5
|
-
# * .env.local uncommitted file with local overrides
|
|
6
|
-
# * .env.$APP_ENV committed environment-specific defaults
|
|
7
|
-
# * .env.$APP_ENV.local uncommitted environment-specific overrides
|
|
8
|
-
#
|
|
9
|
-
# Real environment variables win over .env files.
|
|
10
|
-
#
|
|
11
|
-
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
|
|
12
|
-
#
|
|
13
|
-
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
|
|
14
|
-
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
|
15
|
-
|
|
16
|
-
###> symfony/framework-bundle ###
|
|
17
|
-
APP_ENV=dev
|
|
18
|
-
APP_SECRET=0a797de827418746fe7e52e9e9f0d4f3
|
|
19
|
-
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
|
|
20
|
-
#TRUSTED_HOSTS='^localhost|example\.com$'
|
|
21
|
-
###< symfony/framework-bundle ###
|
|
22
|
-
|
|
23
|
-
###> doctrine/doctrine-bundle ###
|
|
24
|
-
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
|
|
25
|
-
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
|
|
26
|
-
# Configure your db driver and server_version in config/packages/doctrine.yaml
|
|
27
|
-
DATABASE_URL=mysql://root:@127.0.0.1:3306/db_test
|
|
28
|
-
###< doctrine/doctrine-bundle ###
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env php
|
|
2
|
-
<?php
|
|
3
|
-
|
|
4
|
-
use App\Kernel;
|
|
5
|
-
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
|
6
|
-
use Symfony\Component\Console\Input\ArgvInput;
|
|
7
|
-
use Symfony\Component\Debug\Debug;
|
|
8
|
-
|
|
9
|
-
if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
|
|
10
|
-
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.\PHP_SAPI.' SAPI'.\PHP_EOL;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
set_time_limit(0);
|
|
14
|
-
|
|
15
|
-
require dirname(__DIR__).'/vendor/autoload.php';
|
|
16
|
-
|
|
17
|
-
if (!class_exists(Application::class)) {
|
|
18
|
-
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
$input = new ArgvInput();
|
|
22
|
-
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
|
|
23
|
-
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if ($input->hasParameterOption('--no-debug', true)) {
|
|
27
|
-
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
require dirname(__DIR__).'/config/bootstrap.php';
|
|
31
|
-
|
|
32
|
-
if ($_SERVER['APP_DEBUG']) {
|
|
33
|
-
umask(0000);
|
|
34
|
-
|
|
35
|
-
if (class_exists(Debug::class)) {
|
|
36
|
-
Debug::enable();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
|
41
|
-
$application = new Application($kernel);
|
|
42
|
-
$application->run($input);
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "project",
|
|
3
|
-
"license": "proprietary",
|
|
4
|
-
"require": {
|
|
5
|
-
"php": "^7.1.3",
|
|
6
|
-
"ext-ctype": "*",
|
|
7
|
-
"ext-iconv": "*",
|
|
8
|
-
"doctrine/annotations": "^1.6",
|
|
9
|
-
"sensio/framework-extra-bundle": "^5.3",
|
|
10
|
-
"symfony/console": "4.2.*",
|
|
11
|
-
"symfony/dotenv": "4.2.*",
|
|
12
|
-
"symfony/flex": "^1.1",
|
|
13
|
-
"symfony/framework-bundle": "4.2.*",
|
|
14
|
-
"symfony/orm-pack": "^1.0",
|
|
15
|
-
"symfony/twig-bundle": "4.2.*",
|
|
16
|
-
"symfony/yaml": "4.2.*"
|
|
17
|
-
},
|
|
18
|
-
"config": {
|
|
19
|
-
"preferred-install": {
|
|
20
|
-
"*": "dist"
|
|
21
|
-
},
|
|
22
|
-
"sort-packages": true
|
|
23
|
-
},
|
|
24
|
-
"autoload": {
|
|
25
|
-
"psr-4": {
|
|
26
|
-
"App\\": "src/"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"autoload-dev": {
|
|
30
|
-
"psr-4": {
|
|
31
|
-
"App\\Tests\\": "tests/"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"replace": {
|
|
35
|
-
"paragonie/random_compat": "2.*",
|
|
36
|
-
"symfony/polyfill-ctype": "*",
|
|
37
|
-
"symfony/polyfill-iconv": "*",
|
|
38
|
-
"symfony/polyfill-php71": "*",
|
|
39
|
-
"symfony/polyfill-php70": "*",
|
|
40
|
-
"symfony/polyfill-php56": "*"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"auto-scripts": {
|
|
44
|
-
"cache:clear": "symfony-cmd",
|
|
45
|
-
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
|
46
|
-
},
|
|
47
|
-
"post-install-cmd": [
|
|
48
|
-
"@auto-scripts"
|
|
49
|
-
],
|
|
50
|
-
"post-update-cmd": [
|
|
51
|
-
"@auto-scripts"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
"conflict": {
|
|
55
|
-
"symfony/symfony": "*"
|
|
56
|
-
},
|
|
57
|
-
"extra": {
|
|
58
|
-
"symfony": {
|
|
59
|
-
"allow-contrib": false,
|
|
60
|
-
"require": "4.2.*"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"require-dev": {
|
|
64
|
-
"symfony/maker-bundle": "^1.11",
|
|
65
|
-
"symfony/web-server-bundle": "4.2.*"
|
|
66
|
-
}
|
|
67
|
-
}
|