@clickview/online 0.65.0 → 0.65.1-dev.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/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@clickview/online",
3
- "version": "0.65.0",
3
+ "version": "0.65.1-dev.1",
4
4
  "description": "Online",
5
5
  "main": "dist/online-app.js",
6
6
  "types": "dist/index.d.ts",
7
+ "type": "module",
7
8
  "scripts": {
8
- "start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
9
- "build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js"
9
+ "start": "npm run build",
10
+ "type-check": "tsc --noEmit",
11
+ "build-app": "vite build --config vite.config.app.ts",
12
+ "build-styles": "vite build --config vite.config.styles.ts",
13
+ "build": "npm run type-check && npm run build-app && npm run build-styles"
10
14
  },
11
15
  "repository": {
12
16
  "type": "git",
@@ -6,7 +6,8 @@
6
6
  declare module '*.handlebars';
7
7
  declare module '*.hbs';
8
8
  declare module '*.scss';
9
- declare module '*.svg';
9
+
10
+ declare module 'virtual:i18n-data';
10
11
 
11
12
  declare module '*.json' {
12
13
  export const value: any;
@@ -0,0 +1,68 @@
1
+ import config from '../../libs/tooling/vite/vite.base.config';
2
+
3
+ const externalGlobals = {
4
+ // Cropper
5
+ 'cropperjs': 'Cropper',
6
+ 'cropper': 'Cropper',
7
+
8
+ // Shared Dependencies
9
+ 'react-bootstrap': 'ReactBootstrap',
10
+ 'reactbootstrap': 'ReactBootstrap',
11
+ 'react-transition-group': 'ReactTransitionGroup',
12
+ 'reacttransitiongroup': 'ReactTransitionGroup',
13
+ 'react-intersection-observer': 'ReactIntersectionObserver',
14
+ 'reactintersectionobserver': 'ReactIntersectionObserver',
15
+ 'react-autosuggest': 'Autosuggest',
16
+ 'autosuggest': 'Autosuggest',
17
+ 'backbone-validation': 'Backbone.Validation',
18
+ 'backbone.validation': 'Backbone.Validation',
19
+ 'bloodhound': 'Bloodhound',
20
+
21
+ // Common Dependencies
22
+ 'react': 'React',
23
+ 'react-dom': 'ReactDOM',
24
+ 'ReactDOM': 'ReactDOM',
25
+ 'underscore': '_',
26
+ '_': '_',
27
+ 'backbone': 'Backbone',
28
+ 'backbone.marionette': 'Marionette',
29
+ 'marionette': 'Marionette',
30
+ 'handlebars': 'Handlebars',
31
+ 'bootstrap': 'bootstrap',
32
+ 'backbone.radio': 'Backbone.Radio',
33
+ 'signalr': 'signalR',
34
+ 'redux': 'Redux',
35
+ 'react-redux': 'ReactRedux',
36
+ 'reactredux': 'ReactRedux',
37
+ 'dompurify': 'DOMPurify',
38
+ 'jquery': '$',
39
+ '$': '$',
40
+ 'node-polyglot': 'Polyglot',
41
+ 'polyglot': 'Polyglot',
42
+ 'moment': 'moment',
43
+ 'linkifyjs': 'linkify',
44
+ 'linkify': 'linkify',
45
+ 'gapi': 'gapi'
46
+ };
47
+
48
+ export default config({
49
+ root: __dirname,
50
+ // Use a function for externals to ensure proper matching
51
+ externals: id => Object.keys(externalGlobals).includes(id),
52
+ globals: externalGlobals,
53
+
54
+ lib: {
55
+ entry: './src/index.ts',
56
+ name: '@clickview/online',
57
+ formats: ['umd']
58
+ },
59
+
60
+ outDir: 'dist/online',
61
+ outputScriptName: 'online-app.js',
62
+ outputCssName: 'online-app.css',
63
+
64
+ define: {
65
+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV ?? 'development'),
66
+ 'process.env': {}
67
+ }
68
+ });
@@ -0,0 +1,8 @@
1
+ import config from '../../libs/tooling/vite/vite.base.config';
2
+
3
+ export default config({
4
+ root: __dirname,
5
+ entry: './src/styles/core.ts',
6
+ outputCssName: 'styles-app.css',
7
+ outDir: 'dist/styles'
8
+ });