@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.
@@ -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 {existsSync} from 'fs'
4
- import {globSync} from 'glob'
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 HtmlWebpackPlugin from 'html-webpack-plugin'
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 ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin'
11
+ import {globSync} from 'glob'
12
+ import HtmlWebpackPlugin from 'html-webpack-plugin'
13
13
  import MiniCssExtractPlugin from 'mini-css-extract-plugin'
14
- import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'
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 ESLintPlugin from 'eslint-webpack-plugin'
18
- import CopyPlugin from 'copy-webpack-plugin'
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 = async (env: any): Promise<Configuration> => {
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
@@ -75,8 +75,12 @@
75
75
  },
76
76
  "include": [
77
77
  "**/*",
78
+ ".eslintrc.cjs",
78
79
  ],
79
80
  "exclude": [
80
- "./dist/**/*",
81
+ ".history/**/*",
82
+ ".idea/**/*",
83
+ "dist/**/*",
84
+ "node_modules/**/*",
81
85
  ]
82
86
  }
package/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /*
2
- !src
3
- !.eslintignore
4
- !.eslintrc.cjs
5
- !.gitignore
6
- !.nvmrc
7
- !.prettierignore
8
- !.prettierrc.cjs
9
- !package.json
10
- !package-lock.json
11
- !tsconfig.eslint.json
12
- !tsconfig.json
13
- !readme.html
14
- !README.md
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "include": [
4
- "**/*",
5
- "./.eslintrc.cjs",
6
- ],
7
- }