not-node 6.1.3 → 6.1.4

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.
Files changed (66) hide show
  1. package/bin/not-cli.mjs +3 -3
  2. package/package.json +1 -1
  3. package/playground/.babelrc +11 -0
  4. package/playground/.eslintignore +4 -0
  5. package/playground/.eslintrc.json +23 -0
  6. package/playground/app/front/build/admin.css +2 -0
  7. package/playground/app/front/build/admin.js +52419 -0
  8. package/playground/app/front/build/client.css +2 -0
  9. package/playground/app/front/build/client.js +52419 -0
  10. package/playground/app/front/build/guest.css +2 -0
  11. package/playground/app/front/build/guest.js +50915 -0
  12. package/playground/app/front/build/root.css +2 -0
  13. package/playground/app/front/build/root.js +60015 -0
  14. package/playground/app/front/build/user.css +2 -0
  15. package/playground/app/front/build/user.js +52417 -0
  16. package/playground/app/front/build.env.js +15 -0
  17. package/playground/app/front/index.!.js +64 -0
  18. package/playground/app/front/index.admin.js +160 -0
  19. package/playground/app/front/index.client.js +160 -0
  20. package/playground/app/front/index.guest.js +160 -0
  21. package/playground/app/front/index.root.js +224 -0
  22. package/playground/app/front/index.user.js +160 -0
  23. package/playground/app/front/rollup.!.js +70 -0
  24. package/playground/app/front/rollup.admin.js +70 -0
  25. package/playground/app/front/rollup.client.js +70 -0
  26. package/playground/app/front/rollup.guest.js +70 -0
  27. package/playground/app/front/rollup.root.js +70 -0
  28. package/playground/app/front/rollup.user.js +70 -0
  29. package/playground/app/front/src/admin/main/index.js +34 -0
  30. package/playground/app/front/src/client/main/index.js +34 -0
  31. package/playground/app/front/src/common/index.js +40 -0
  32. package/playground/app/front/src/common/ncInit.js +18 -0
  33. package/playground/app/front/src/common/ws.client.main.js +34 -0
  34. package/playground/app/front/src/guest/main/index.js +45 -0
  35. package/playground/app/front/src/root/main/index.js +34 -0
  36. package/playground/app/front/src/user/main/index.js +34 -0
  37. package/playground/app/server/app.js +25 -0
  38. package/playground/app/server/config/common.json +106 -0
  39. package/playground/app/server/config/development.json +34 -0
  40. package/playground/app/server/config/production.json +34 -0
  41. package/playground/app/server/config/stage.json +34 -0
  42. package/playground/app/server/index.js +20 -0
  43. package/playground/app/server/routes/index.js +34 -0
  44. package/playground/app/server/routes/site.js +71 -0
  45. package/playground/app/server/views/admin/foot.pug +1 -0
  46. package/playground/app/server/views/admin/head.pug +7 -0
  47. package/playground/app/server/views/admin/menu.pug +2 -0
  48. package/playground/app/server/views/admin.pug +19 -0
  49. package/playground/app/server/views/dashboard.pug +20 -0
  50. package/playground/app/server/views/index.pug +15 -0
  51. package/playground/app/server/views/parts/header.android.pug +6 -0
  52. package/playground/app/server/views/parts/header.ios.pug +5 -0
  53. package/playground/app/server/views/parts/header.pug +18 -0
  54. package/playground/app/server/views/parts/menu.pug +1 -0
  55. package/playground/app/server/views/parts/overview.pug +2 -0
  56. package/playground/app/server/ws/auth.js +41 -0
  57. package/playground/app/server/ws/index.js +84 -0
  58. package/playground/bin/build.sh +8 -0
  59. package/playground/package.json +85 -0
  60. package/playground/project.manifest.json +37 -0
  61. package/src/cli/readers/ws.mjs +12 -0
  62. package/src/cli/renderers/controllers.mjs +1 -0
  63. package/tmpl/dirs/module.front.mjs +1 -1
  64. package/tmpl/files/module.front/common/index.ejs +7 -6
  65. package/tmpl/files/module.front/common/ws.client.main.ejs +2 -3
  66. package/tmpl/files/module.front/role/index.ejs +1 -1
@@ -0,0 +1,224 @@
1
+
2
+
3
+ import {
4
+ Frame
5
+ } from 'not-bulma';
6
+
7
+ const {notCommon, notApp, COMPONENTS} = Frame;
8
+
9
+ notCommon.register('backlog', true);
10
+ window.dumpBacklog = notCommon.dumpBacklog.bind(notCommon);
11
+
12
+ let appDefaultOptions = {
13
+ manifestURL: '/api/manifest',
14
+ router: {
15
+ root: '/',
16
+ manifest: [],
17
+ index: ''
18
+ },
19
+ language: 'ru',
20
+ crud: {
21
+ navigateBackAfter: ['create', 'update', 'delete']
22
+ },
23
+ modules: {
24
+ user: {
25
+ redirectTimout: 1000,
26
+ afterLoginURL: '/dashboard',
27
+ loginForm: {
28
+ modes: [
29
+ 'login',
30
+ 'requestLoginCodeOnEmail',
31
+ 'loginByCode'
32
+ ]
33
+ },
34
+ loginFormContainerSelector: '.main-container',
35
+ restoreFormContainerSelector: '.main-container',
36
+ registerFormContainerSelector: '.main-container'
37
+ }
38
+ }
39
+ };
40
+
41
+ let services = {}, uis = {}, wsc = {}, fields = {};
42
+
43
+
44
+ import * as mod_0
45
+ from '/var/server/nn/playground/node_modules/not-options/src/controllers/root';
46
+ appDefaultOptions = notCommon.absorbModule({
47
+ defaultConf: appDefaultOptions,
48
+ mod: mod_0,
49
+ services, uis, wsc, fields
50
+ });
51
+
52
+ import * as mod_1
53
+ from '/var/server/nn/playground/node_modules/not-options/src/controllers/common';
54
+ appDefaultOptions = notCommon.absorbModule({
55
+ defaultConf: appDefaultOptions,
56
+ mod: mod_1,
57
+ services, uis, wsc, fields
58
+ });
59
+
60
+ import * as mod_2
61
+ from '/var/server/nn/playground/node_modules/not-filter/src/controllers/common';
62
+ appDefaultOptions = notCommon.absorbModule({
63
+ defaultConf: appDefaultOptions,
64
+ mod: mod_2,
65
+ services, uis, wsc, fields
66
+ });
67
+
68
+ import * as mod_3
69
+ from '/var/server/nn/playground/node_modules/not-notification/src/controllers/root';
70
+ appDefaultOptions = notCommon.absorbModule({
71
+ defaultConf: appDefaultOptions,
72
+ mod: mod_3,
73
+ services, uis, wsc, fields
74
+ });
75
+
76
+ import * as mod_4
77
+ from '/var/server/nn/playground/node_modules/not-locale/src/controllers/common';
78
+ appDefaultOptions = notCommon.absorbModule({
79
+ defaultConf: appDefaultOptions,
80
+ mod: mod_4,
81
+ services, uis, wsc, fields
82
+ });
83
+
84
+ import * as mod_5
85
+ from '/var/server/nn/playground/node_modules/not-inform/src/controllers/root';
86
+ appDefaultOptions = notCommon.absorbModule({
87
+ defaultConf: appDefaultOptions,
88
+ mod: mod_5,
89
+ services, uis, wsc, fields
90
+ });
91
+
92
+ import * as mod_6
93
+ from '/var/server/nn/playground/node_modules/not-inform-sink-email/src/controllers/root';
94
+ appDefaultOptions = notCommon.absorbModule({
95
+ defaultConf: appDefaultOptions,
96
+ mod: mod_6,
97
+ services, uis, wsc, fields
98
+ });
99
+
100
+ import * as mod_7
101
+ from '/var/server/nn/playground/node_modules/not-inform-sink-notification/src/controllers/root';
102
+ appDefaultOptions = notCommon.absorbModule({
103
+ defaultConf: appDefaultOptions,
104
+ mod: mod_7,
105
+ services, uis, wsc, fields
106
+ });
107
+
108
+ import * as mod_8
109
+ from '/var/server/nn/playground/node_modules/not-inform-sink-ws/src/controllers/root';
110
+ appDefaultOptions = notCommon.absorbModule({
111
+ defaultConf: appDefaultOptions,
112
+ mod: mod_8,
113
+ services, uis, wsc, fields
114
+ });
115
+
116
+ import * as mod_9
117
+ from '/var/server/nn/playground/node_modules/not-key/src/controllers/root';
118
+ appDefaultOptions = notCommon.absorbModule({
119
+ defaultConf: appDefaultOptions,
120
+ mod: mod_9,
121
+ services, uis, wsc, fields
122
+ });
123
+
124
+ import * as mod_10
125
+ from '/var/server/nn/playground/node_modules/not-key/src/controllers/common';
126
+ appDefaultOptions = notCommon.absorbModule({
127
+ defaultConf: appDefaultOptions,
128
+ mod: mod_10,
129
+ services, uis, wsc, fields
130
+ });
131
+
132
+ import * as mod_11
133
+ from '/var/server/nn/playground/node_modules/not-ws/src/controllers/common';
134
+ appDefaultOptions = notCommon.absorbModule({
135
+ defaultConf: appDefaultOptions,
136
+ mod: mod_11,
137
+ services, uis, wsc, fields
138
+ });
139
+
140
+ import * as mod_12
141
+ from '/var/server/nn/playground/node_modules/not-store/src/controllers/root';
142
+ appDefaultOptions = notCommon.absorbModule({
143
+ defaultConf: appDefaultOptions,
144
+ mod: mod_12,
145
+ services, uis, wsc, fields
146
+ });
147
+
148
+ import * as mod_13
149
+ from '/var/server/nn/playground/node_modules/not-store/src/controllers/common';
150
+ appDefaultOptions = notCommon.absorbModule({
151
+ defaultConf: appDefaultOptions,
152
+ mod: mod_13,
153
+ services, uis, wsc, fields
154
+ });
155
+
156
+ import * as mod_14
157
+ from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/root';
158
+ appDefaultOptions = notCommon.absorbModule({
159
+ defaultConf: appDefaultOptions,
160
+ mod: mod_14,
161
+ services, uis, wsc, fields
162
+ });
163
+
164
+ import * as mod_15
165
+ from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/common';
166
+ appDefaultOptions = notCommon.absorbModule({
167
+ defaultConf: appDefaultOptions,
168
+ mod: mod_15,
169
+ services, uis, wsc, fields
170
+ });
171
+
172
+ import * as mod_16
173
+ from '/var/server/nn/playground/node_modules/not-user/src/controllers/root';
174
+ appDefaultOptions = notCommon.absorbModule({
175
+ defaultConf: appDefaultOptions,
176
+ mod: mod_16,
177
+ services, uis, wsc, fields
178
+ });
179
+
180
+ import * as mod_17
181
+ from '/var/server/nn/playground/node_modules/not-user/src/controllers/common';
182
+ appDefaultOptions = notCommon.absorbModule({
183
+ defaultConf: appDefaultOptions,
184
+ mod: mod_17,
185
+ services, uis, wsc, fields
186
+ });
187
+
188
+ import * as mod_18
189
+ from '/var/server/nn/playground/node_modules/not-error/src/controllers/common';
190
+ appDefaultOptions = notCommon.absorbModule({
191
+ defaultConf: appDefaultOptions,
192
+ mod: mod_18,
193
+ services, uis, wsc, fields
194
+ });
195
+
196
+ import * as mod_19
197
+ from '/var/server/nn/playground/app/front/src/common';
198
+ appDefaultOptions = notCommon.absorbModule({
199
+ defaultConf: appDefaultOptions,
200
+ mod: mod_19,
201
+ services, uis, wsc, fields
202
+ });
203
+
204
+ import * as mod_20
205
+ from '/var/server/nn/playground/app/front/src/root/main';
206
+ appDefaultOptions = notCommon.absorbModule({
207
+ defaultConf: appDefaultOptions,
208
+ mod: mod_20,
209
+ services, uis, wsc, fields
210
+ });
211
+
212
+
213
+ COMPONENTS.import(uis);
214
+
215
+ import 'bulma';
216
+
217
+
218
+ import '/var/server/nn/playground/node_modules/not-user/src/styles/common/common.scss';
219
+
220
+
221
+ appDefaultOptions.services = services;
222
+ appDefaultOptions.wsc = wsc;
223
+
224
+ notCommon.startApp(() => new notApp(appDefaultOptions));
@@ -0,0 +1,160 @@
1
+
2
+
3
+ import {
4
+ Frame
5
+ } from 'not-bulma';
6
+
7
+ const {notCommon, notApp, COMPONENTS} = Frame;
8
+
9
+ notCommon.register('backlog', true);
10
+ window.dumpBacklog = notCommon.dumpBacklog.bind(notCommon);
11
+
12
+ let appDefaultOptions = {
13
+ manifestURL: '/api/manifest',
14
+ router: {
15
+ root: '/',
16
+ manifest: [],
17
+ index: ''
18
+ },
19
+ language: 'ru',
20
+ crud: {
21
+ navigateBackAfter: ['create', 'update', 'delete']
22
+ },
23
+ modules: {
24
+ user: {
25
+ redirectTimout: 1000,
26
+ afterLoginURL: '/dashboard',
27
+ loginForm: {
28
+ modes: [
29
+ 'login',
30
+ 'requestLoginCodeOnEmail',
31
+ 'loginByCode'
32
+ ]
33
+ },
34
+ loginFormContainerSelector: '.main-container',
35
+ restoreFormContainerSelector: '.main-container',
36
+ registerFormContainerSelector: '.main-container'
37
+ }
38
+ }
39
+ };
40
+
41
+ let services = {}, uis = {}, wsc = {}, fields = {};
42
+
43
+
44
+ import * as mod_0
45
+ from '/var/server/nn/playground/node_modules/not-options/src/controllers/common';
46
+ appDefaultOptions = notCommon.absorbModule({
47
+ defaultConf: appDefaultOptions,
48
+ mod: mod_0,
49
+ services, uis, wsc, fields
50
+ });
51
+
52
+ import * as mod_1
53
+ from '/var/server/nn/playground/node_modules/not-filter/src/controllers/common';
54
+ appDefaultOptions = notCommon.absorbModule({
55
+ defaultConf: appDefaultOptions,
56
+ mod: mod_1,
57
+ services, uis, wsc, fields
58
+ });
59
+
60
+ import * as mod_2
61
+ from '/var/server/nn/playground/node_modules/not-notification/src/controllers/user';
62
+ appDefaultOptions = notCommon.absorbModule({
63
+ defaultConf: appDefaultOptions,
64
+ mod: mod_2,
65
+ services, uis, wsc, fields
66
+ });
67
+
68
+ import * as mod_3
69
+ from '/var/server/nn/playground/node_modules/not-locale/src/controllers/common';
70
+ appDefaultOptions = notCommon.absorbModule({
71
+ defaultConf: appDefaultOptions,
72
+ mod: mod_3,
73
+ services, uis, wsc, fields
74
+ });
75
+
76
+ import * as mod_4
77
+ from '/var/server/nn/playground/node_modules/not-key/src/controllers/common';
78
+ appDefaultOptions = notCommon.absorbModule({
79
+ defaultConf: appDefaultOptions,
80
+ mod: mod_4,
81
+ services, uis, wsc, fields
82
+ });
83
+
84
+ import * as mod_5
85
+ from '/var/server/nn/playground/node_modules/not-ws/src/controllers/common';
86
+ appDefaultOptions = notCommon.absorbModule({
87
+ defaultConf: appDefaultOptions,
88
+ mod: mod_5,
89
+ services, uis, wsc, fields
90
+ });
91
+
92
+ import * as mod_6
93
+ from '/var/server/nn/playground/node_modules/not-store/src/controllers/common';
94
+ appDefaultOptions = notCommon.absorbModule({
95
+ defaultConf: appDefaultOptions,
96
+ mod: mod_6,
97
+ services, uis, wsc, fields
98
+ });
99
+
100
+ import * as mod_7
101
+ from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/common';
102
+ appDefaultOptions = notCommon.absorbModule({
103
+ defaultConf: appDefaultOptions,
104
+ mod: mod_7,
105
+ services, uis, wsc, fields
106
+ });
107
+
108
+ import * as mod_8
109
+ from '/var/server/nn/playground/node_modules/not-user/src/controllers/user';
110
+ appDefaultOptions = notCommon.absorbModule({
111
+ defaultConf: appDefaultOptions,
112
+ mod: mod_8,
113
+ services, uis, wsc, fields
114
+ });
115
+
116
+ import * as mod_9
117
+ from '/var/server/nn/playground/node_modules/not-user/src/controllers/common';
118
+ appDefaultOptions = notCommon.absorbModule({
119
+ defaultConf: appDefaultOptions,
120
+ mod: mod_9,
121
+ services, uis, wsc, fields
122
+ });
123
+
124
+ import * as mod_10
125
+ from '/var/server/nn/playground/node_modules/not-error/src/controllers/common';
126
+ appDefaultOptions = notCommon.absorbModule({
127
+ defaultConf: appDefaultOptions,
128
+ mod: mod_10,
129
+ services, uis, wsc, fields
130
+ });
131
+
132
+ import * as mod_11
133
+ from '/var/server/nn/playground/app/front/src/common';
134
+ appDefaultOptions = notCommon.absorbModule({
135
+ defaultConf: appDefaultOptions,
136
+ mod: mod_11,
137
+ services, uis, wsc, fields
138
+ });
139
+
140
+ import * as mod_12
141
+ from '/var/server/nn/playground/app/front/src/user/main';
142
+ appDefaultOptions = notCommon.absorbModule({
143
+ defaultConf: appDefaultOptions,
144
+ mod: mod_12,
145
+ services, uis, wsc, fields
146
+ });
147
+
148
+
149
+ COMPONENTS.import(uis);
150
+
151
+ import 'bulma';
152
+
153
+
154
+ import '/var/server/nn/playground/node_modules/not-user/src/styles/common/common.scss';
155
+
156
+
157
+ appDefaultOptions.services = services;
158
+ appDefaultOptions.wsc = wsc;
159
+
160
+ notCommon.startApp(() => new notApp(appDefaultOptions));
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "<%= inputPath %>",
15
+ output: {
16
+ file: "<%= outputPath %>",
17
+ name: "<%= appName %>",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.admin.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/admin.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.client.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/client.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.guest.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/guest.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };