@raisenow/tamaro-cli 1.0.26 → 1.1.1
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/.eslintignore +3 -0
- package/.eslintrc.cjs +142 -42
- package/.nvmrc +1 -1
- package/.prettierignore +3 -0
- package/README.md +14 -22
- package/dist/{chunk-ZAKDPU5F.js → chunk-S4M23KNZ.js} +35 -33
- package/dist/cli.js +333 -338
- package/dist/webpack.config.js +19 -19
- package/package.json +62 -57
- package/readme.html +1 -1
- package/src/cli.ts +15 -40
- package/src/commands/build.ts +19 -14
- package/src/commands/deploy-email-config.ts +22 -44
- package/src/commands/deploy.ts +18 -19
- package/src/commands/dev.ts +4 -4
- package/src/commands/list-deployed.ts +17 -20
- package/src/commands/serve.ts +3 -3
- package/src/lib/InterpolateHtmlPlugin.ts +7 -7
- package/src/lib/aws.ts +72 -40
- package/src/lib/command.ts +5 -1
- package/src/lib/constants.ts +2 -1
- package/src/lib/env.ts +12 -13
- package/src/lib/https.ts +2 -2
- package/src/lib/logging.ts +9 -4
- package/src/lib/resolve.ts +5 -7
- package/src/webpack.config.ts +18 -17
- package/tsconfig.json +5 -1
- package/.gitignore +0 -14
- package/tsconfig.eslint.json +0 -7
package/src/webpack.config.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
+
import {existsSync} from 'fs'
|
|
1
2
|
import {createRequire} from 'module'
|
|
2
3
|
import {basename, dirname, resolve} from 'path'
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {getIfUtils, removeEmpty} from 'webpack-config-utils'
|
|
6
|
-
import webpack from 'webpack'
|
|
7
|
-
import type {Configuration, RuleSetUseItem} from 'webpack'
|
|
8
|
-
import {TsconfigPathsPlugin} from 'tsconfig-paths-webpack-plugin'
|
|
4
|
+
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin'
|
|
5
|
+
import StatoscopeWebpackPlugin from '@statoscope/webpack-plugin'
|
|
9
6
|
import {CleanWebpackPlugin} from 'clean-webpack-plugin'
|
|
10
|
-
import
|
|
7
|
+
import CopyPlugin from 'copy-webpack-plugin'
|
|
8
|
+
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'
|
|
9
|
+
import ESLintPlugin from 'eslint-webpack-plugin'
|
|
11
10
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
|
|
12
|
-
import
|
|
11
|
+
import {globSync} from 'glob'
|
|
12
|
+
import HtmlWebpackPlugin from 'html-webpack-plugin'
|
|
13
13
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
|
|
14
|
-
import
|
|
14
|
+
import {TsconfigPathsPlugin} from 'tsconfig-paths-webpack-plugin'
|
|
15
|
+
import type {Configuration, RuleSetUseItem} from 'webpack'
|
|
16
|
+
// eslint-disable-next-line import/no-named-as-default
|
|
17
|
+
import webpack from 'webpack'
|
|
18
|
+
import {getIfUtils, removeEmpty} from 'webpack-config-utils'
|
|
15
19
|
// Needed for webpack-dev-server types to be picked up correctly
|
|
16
20
|
import {} from 'webpack-dev-server'
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import StatoscopeWebpackPlugin from '@statoscope/webpack-plugin'
|
|
21
|
+
import {HTTPS_CRT_FILE, HTTPS_KEY_FILE} from 'lib/constants'
|
|
22
|
+
import {getEnvVars} from 'lib/env'
|
|
20
23
|
import {InterpolateHtmlPlugin} from 'lib/InterpolateHtmlPlugin'
|
|
24
|
+
import {logDataTable, logTitle} from 'lib/logging'
|
|
21
25
|
import {
|
|
22
26
|
extensions,
|
|
23
27
|
getIfCoreFns,
|
|
@@ -26,9 +30,6 @@ import {
|
|
|
26
30
|
moduleFileExtensions,
|
|
27
31
|
resolveApp,
|
|
28
32
|
} from 'lib/resolve'
|
|
29
|
-
import {getEnvVars} from 'lib/env'
|
|
30
|
-
import {logDataTable, logTitle} from 'lib/logging'
|
|
31
|
-
import {HTTPS_CRT_FILE, HTTPS_KEY_FILE} from 'lib/constants'
|
|
32
33
|
|
|
33
34
|
///////////////////////////////////////////////////////////////////////////////
|
|
34
35
|
|
|
@@ -38,7 +39,7 @@ const imageInlineSizeLimit = 0
|
|
|
38
39
|
|
|
39
40
|
///////////////////////////////////////////////////////////////////////////////
|
|
40
41
|
|
|
41
|
-
const getWebpackConfig =
|
|
42
|
+
const getWebpackConfig = (env: any): Configuration => {
|
|
42
43
|
const {ifMin, ifNotMin} = getIfUtils(env, ['min'])
|
|
43
44
|
const {ifAnalyze} = getIfUtils(env, ['analyze'])
|
|
44
45
|
const {ifHttps} = getIfUtils(env, ['https'])
|
|
@@ -84,7 +85,6 @@ const getWebpackConfig = async (env: any): Promise<Configuration> => {
|
|
|
84
85
|
plugins: removeEmpty([
|
|
85
86
|
useTailwind
|
|
86
87
|
? [
|
|
87
|
-
// eslint-disable-next-line node/no-missing-require
|
|
88
88
|
require.resolve('tailwindcss', {
|
|
89
89
|
paths: [paths.appNodeModules],
|
|
90
90
|
}),
|
|
@@ -387,6 +387,7 @@ const getWebpackConfig = async (env: any): Promise<Configuration> => {
|
|
|
387
387
|
contextRegExp: /moment$/,
|
|
388
388
|
}),
|
|
389
389
|
|
|
390
|
+
// eslint-disable-next-line import/no-named-as-default-member
|
|
390
391
|
ifMin(new webpack.ids.HashedModuleIdsPlugin()), // todo: remove?
|
|
391
392
|
|
|
392
393
|
ifMin() && ifCore()
|
package/tsconfig.json
CHANGED
package/.gitignore
DELETED