lincd-cli 0.1.4 → 0.1.5

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,281 +1,281 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- exports.__esModule = true;
17
- exports.generateWebpackConfig = void 0;
18
- var declaration_plugin_1 = __importDefault(require("./plugins/declaration-plugin"));
19
- var externalise_modules_1 = __importDefault(require("./plugins/externalise-modules"));
20
- var watch_run_1 = __importDefault(require("./plugins/watch-run"));
21
- var utils_1 = require("./utils");
22
- var colors = require("colors");
23
- var shared_1 = require("./shared");
24
- var fs = require('fs');
25
- var MiniCssExtractPlugin = require('mini-css-extract-plugin');
26
- var chalk = require('chalk');
27
- var webpack = require('webpack');
28
- var path = require('path');
29
- var ExtractTextPlugin = require('extract-text-webpack-plugin');
30
- var WebpackLicencePlugin = require('webpack-license-plugin');
31
- var TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
32
- var BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
33
- .BundleAnalyzerPlugin;
34
- var TerserPlugin = require('terser-webpack-plugin');
35
- var exec = require('child_process').exec;
36
- var NODE_ENV = process.env.NODE_ENV;
37
- var nodeProduction = NODE_ENV == 'production';
38
- var libraryName = 'lincd';
39
- function generateWebpackConfig(buildName, moduleName, config) {
40
- if (config === void 0) { config = {}; }
41
- if (!config.externals)
42
- config.externals = {};
43
- if (!config.internals)
44
- config.internals = [];
45
- var watch = config.watch;
46
- var productionMode = nodeProduction || config.productionMode;
47
- var es5 = config.target == 'es5';
48
- var es6 = config.target == 'es6';
49
- var configFile;
50
- if (es5 && fs.existsSync('tsconfig-es5.json')) {
51
- configFile = 'tsconfig-es5.json';
52
- }
53
- else {
54
- configFile = 'tsconfig.json';
55
- }
56
- if (!fs.existsSync(configFile)) {
57
- (0, utils_1.warn)('Cannot find ' + configFile);
58
- process.exit();
59
- }
60
- var tsConfig = JSON.parse(fs.readFileSync(configFile));
61
- //Because it's not for webpack, and its breaks ts-loader, here we undo the tsc setting that would copy all json files to lib folder, see https://github.com/swimauger/tsc-hooks
62
- // delete tsConfig['hooks'];
63
- // delete tsConfig['files'];
64
- var pack = (0, utils_1.getPackageJSON)();
65
- var plugins = [
66
- new webpack.DefinePlugin({
67
- 'process.env.BROWSER': JSON.stringify(true),
68
- 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
69
- }),
70
- new webpack.NoEmitOnErrorsPlugin(),
71
- new ExtractTextPlugin(config.cssFileName
72
- ? config.cssFileName
73
- : libraryName + '.' + moduleName + '.css'),
74
- new MiniCssExtractPlugin({
75
- // linkType: false,
76
- filename: config.cssFileName
77
- ? config.cssFileName
78
- : libraryName + '.' + moduleName + '.css'
79
- }),
80
- new WebpackLicencePlugin({
81
- excludedPackageTest: function (packageName, version) {
82
- return packageName.indexOf('lincd') !== -1;
83
- }
84
- }),
85
- //output sometimes includes things like webpack, which seems not needed? this doesn't work though
86
- // {
87
- // excludedPackageTest:((packageName, packageVersion) => {
88
- // return pack.devDependencies && packageName in pack.devDependencies;
89
- // })
90
- // }
91
- ];
92
- if (config.debug) {
93
- plugins.push(new watch_run_1["default"]());
94
- }
95
- if (config.afterBuildCommand) {
96
- plugins.push({
97
- apply: function (compiler) {
98
- compiler.hooks.afterEmit.tap('AfterEmitPlugin', function (compilation) {
99
- exec(config.afterBuildCommand, function (err, stdout, stderr) {
100
- if (stdout)
101
- process.stdout.write(stdout);
102
- if (stderr)
103
- process.stderr.write(stderr);
104
- });
105
- });
106
- }
107
- });
108
- }
109
- if (config.analyse) {
110
- plugins.push(new BundleAnalyzerPlugin());
111
- }
112
- if (es6 || config.declarations === true) {
113
- plugins.push(new declaration_plugin_1["default"]({
114
- out: (config.filename ? config.filename : libraryName + '.' + moduleName) +
115
- '.d.ts',
116
- root: config.outputPath ? config.outputPath : './lib/',
117
- debug: 'debug' in config ? config.debug : false
118
- }));
119
- }
120
- var resolvePlugins = [
121
- new TsconfigPathsPlugin({
122
- configFile: configFile,
123
- silent: true
124
- }),
125
- ];
126
- var aliases = config.alias || {};
127
- var rules = [
128
- {
129
- test: /\.(scss|css)$/,
130
- use: [
131
- MiniCssExtractPlugin.loader,
132
- {
133
- loader: 'css-loader',
134
- options: {
135
- url: false
136
- }
137
- },
138
- {
139
- loader: 'postcss-loader',
140
- options: {
141
- postcssOptions: {
142
- plugins: {
143
- 'postcss-import': {},
144
- 'postcss-cssnext': {},
145
- 'postcss-nested': {},
146
- // "postcss-scss": {}, //<-- only add this back if the build gets stuck on //comments in scss files, but I dont think that will be the case anymore
147
- 'postcss-modules': {
148
- //by default postcss-modules will put out a json file right next to the original css / scss file, this method defines what classnames to use
149
- generateScopedName: shared_1.generateScopedName,
150
- globalModulePaths: [/tailwind/]
151
- },
152
- tailwindcss: {
153
- purge: {
154
- enabled: productionMode,
155
- content: [
156
- './src/**/*.tsx',
157
- './src/**/*.ts',
158
- //also include @dacore modules which are internalized with the "internal" config option
159
- //imports like ... from '@dacore/module/lib/views/SomeView' will
160
- //these modules should live in the node_modules folder of the root of the site
161
- //TODO: remake this with multiple lincd modules
162
- // '../../node_modules/@dacore/*/lib/**/*.js',
163
- // './node_modules/@dacore/*/lib/**/*.js',
164
- ]
165
- }
166
- }
167
- }
168
- }
169
- }
170
- },
171
- {
172
- loader: 'sass-loader',
173
- options: { sourceMap: true }
174
- },
175
- ]
176
- },
177
- {
178
- test: /\.tsx?$/,
179
- use: [
180
- {
181
- loader: 'ts-loader?' +
182
- JSON.stringify(__assign(__assign(__assign({}, tsConfig), { compilerOptions: {
183
- declaration: !es5,
184
- /*
185
- for webpack we overwrite the module settings of the modules' tsconfig file
186
- because we NEED esnext for code splitting. But the VM we currently use for the registry does not support esnext modules
187
- */
188
- module: 'esnext',
189
- moduleResolution: 'node'
190
- } }), config.tsConfigOverwrites))
191
- },
192
- ]
193
- },
194
- {
195
- enforce: 'pre',
196
- test: /\.js$/,
197
- use: [
198
- {
199
- loader: 'source-map-loader'
200
- },
201
- ]
202
- },
203
- ];
204
- if (es5 && config.internalsources && config.internalsources.length > 0) {
205
- //usually a module that transpiles to es5 will only have es5 code in the bundle.
206
- //however a module that INTERNALISES other dacore modules will directly include es6 code from @dacore/other_modules/lib
207
- //which eventually results in an import of @dacore/core being bundled as 'const =', which trips up old browsers
208
- //so we fix that here by just referring directly to the typescript source instead of the transpiled js for internalised modules
209
- //however this means that for internalised modules THE SOURCE CODE NEEDS TO BE AVAILABLE. This is currently NOT the case with how we publish modules to yarn
210
- //so that means internalised modules need to be LOCALLY AVAILABLE with yarn workspaces
211
- plugins.push(new webpack.NormalModuleReplacementPlugin(/\lincd\/lib\//, function (resource, match) {
212
- var moduleName = resource.request.match(/lincd\/lib\//)[1];
213
- if (config.internalsources.indexOf(moduleName) !== -1) {
214
- console.log(colors.magenta('internal sources + ES5: Replacing /lib/ with /src/ for source-internalised module ' +
215
- moduleName));
216
- resource.request = resource.request.replace('/lib/', '/src/');
217
- console.log(colors.magenta('internal sources + ES5: ' + resource.request));
218
- console.log(colors.red("WARNING: Make sure you have the TYPESCRIPT SOURCE FILES of the modules listed as 'internal' AVAILABLE ON YOUR LOCAL MACHINE. So if you check in node_modules/your-internalised-module - that should be a symbolic link and you will find a 'src' folder with typescript files there."));
219
- }
220
- }));
221
- }
222
- return {
223
- entry: config.entry ? config.entry : './src/index.ts',
224
- output: {
225
- filename: (config.filename ? config.filename : libraryName + '.' + moduleName) +
226
- (es5 ? '.es5' : '') +
227
- '.js',
228
- path: path.resolve(process.cwd(), config.bundlePath || 'dist'),
229
- devtoolModuleFilenameTemplate: moduleName + '/[resource-path]'
230
- },
231
- devtool: productionMode ? 'cheap-source-map' : 'cheap-source-map',
232
- mode: productionMode ? 'production' : 'development',
233
- //fixing a persistent but strange build error here that showed up once, this is a workaround. See: https://github.com/webpack-contrib/css-loader/issues/447
234
- node: {
235
- fs: 'empty',
236
- child_process: 'empty'
237
- },
238
- resolve: {
239
- extensions: ['.webpack.js', '.js', '.ts', '.tsx', '.json'],
240
- alias: aliases,
241
- plugins: resolvePlugins
242
- },
243
- resolveLoader: {
244
- modules: [
245
- path.join(__dirname, 'plugins'),
246
- path.join(__dirname, 'node_modules'),
247
- 'node_modules',
248
- ]
249
- },
250
- optimization: {
251
- minimize: productionMode,
252
- minimizer: [
253
- new TerserPlugin({
254
- extractComments: {
255
- condition: /^\**!|@preserve|@license|@cc_on/i,
256
- banner: function (licenseFile) {
257
- return "License information can be found in ".concat(licenseFile, " and oss-licences.json");
258
- }
259
- }
260
- }),
261
- ]
262
- },
263
- watch: watch,
264
- module: {
265
- rules: rules
266
- },
267
- //See plugins/externalise-modules.ts We're passing in a function here that determines what to exclude from the bundle and what not
268
- //See also https://webpack.js.org/configuration/externals/
269
- externals: (0, externalise_modules_1["default"])(config, es5),
270
- plugins: plugins,
271
- stats: {
272
- errorDetails: config.debug,
273
- chunks: false,
274
- children: false,
275
- version: true,
276
- hash: false,
277
- modules: false
278
- }
279
- };
280
- }
281
- exports.generateWebpackConfig = generateWebpackConfig;
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ exports.__esModule = true;
17
+ exports.generateWebpackConfig = void 0;
18
+ var declaration_plugin_1 = __importDefault(require("./plugins/declaration-plugin"));
19
+ var externalise_modules_1 = __importDefault(require("./plugins/externalise-modules"));
20
+ var watch_run_1 = __importDefault(require("./plugins/watch-run"));
21
+ var utils_1 = require("./utils");
22
+ var colors = require("colors");
23
+ var shared_1 = require("./shared");
24
+ var fs = require('fs');
25
+ var MiniCssExtractPlugin = require('mini-css-extract-plugin');
26
+ var chalk = require('chalk');
27
+ var webpack = require('webpack');
28
+ var path = require('path');
29
+ var ExtractTextPlugin = require('extract-text-webpack-plugin');
30
+ var WebpackLicencePlugin = require('webpack-license-plugin');
31
+ var TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
32
+ var BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
33
+ .BundleAnalyzerPlugin;
34
+ var TerserPlugin = require('terser-webpack-plugin');
35
+ var exec = require('child_process').exec;
36
+ var NODE_ENV = process.env.NODE_ENV;
37
+ var nodeProduction = NODE_ENV == 'production';
38
+ var libraryName = 'lincd';
39
+ function generateWebpackConfig(buildName, moduleName, config) {
40
+ if (config === void 0) { config = {}; }
41
+ if (!config.externals)
42
+ config.externals = {};
43
+ if (!config.internals)
44
+ config.internals = [];
45
+ var watch = config.watch;
46
+ var productionMode = nodeProduction || config.productionMode;
47
+ var es5 = config.target == 'es5';
48
+ var es6 = config.target == 'es6';
49
+ var configFile;
50
+ if (es5 && fs.existsSync('tsconfig-es5.json')) {
51
+ configFile = 'tsconfig-es5.json';
52
+ }
53
+ else {
54
+ configFile = 'tsconfig.json';
55
+ }
56
+ if (!fs.existsSync(configFile)) {
57
+ (0, utils_1.warn)('Cannot find ' + configFile);
58
+ process.exit();
59
+ }
60
+ var tsConfig = JSON.parse(fs.readFileSync(configFile));
61
+ //Because it's not for webpack, and its breaks ts-loader, here we undo the tsc setting that would copy all json files to lib folder, see https://github.com/swimauger/tsc-hooks
62
+ // delete tsConfig['hooks'];
63
+ // delete tsConfig['files'];
64
+ var pack = (0, utils_1.getPackageJSON)();
65
+ var plugins = [
66
+ new webpack.DefinePlugin({
67
+ 'process.env.BROWSER': JSON.stringify(true),
68
+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
69
+ }),
70
+ new webpack.NoEmitOnErrorsPlugin(),
71
+ new ExtractTextPlugin(config.cssFileName
72
+ ? config.cssFileName
73
+ : libraryName + '.' + moduleName + '.css'),
74
+ new MiniCssExtractPlugin({
75
+ // linkType: false,
76
+ filename: config.cssFileName
77
+ ? config.cssFileName
78
+ : libraryName + '.' + moduleName + '.css'
79
+ }),
80
+ new WebpackLicencePlugin({
81
+ excludedPackageTest: function (packageName, version) {
82
+ return packageName.indexOf('lincd') !== -1;
83
+ }
84
+ }),
85
+ //output sometimes includes things like webpack, which seems not needed? this doesn't work though
86
+ // {
87
+ // excludedPackageTest:((packageName, packageVersion) => {
88
+ // return pack.devDependencies && packageName in pack.devDependencies;
89
+ // })
90
+ // }
91
+ ];
92
+ if (config.debug) {
93
+ plugins.push(new watch_run_1["default"]());
94
+ }
95
+ if (config.afterBuildCommand) {
96
+ plugins.push({
97
+ apply: function (compiler) {
98
+ compiler.hooks.afterEmit.tap('AfterEmitPlugin', function (compilation) {
99
+ exec(config.afterBuildCommand, function (err, stdout, stderr) {
100
+ if (stdout)
101
+ process.stdout.write(stdout);
102
+ if (stderr)
103
+ process.stderr.write(stderr);
104
+ });
105
+ });
106
+ }
107
+ });
108
+ }
109
+ if (config.analyse) {
110
+ plugins.push(new BundleAnalyzerPlugin());
111
+ }
112
+ if (es6 || config.declarations === true) {
113
+ plugins.push(new declaration_plugin_1["default"]({
114
+ out: (config.filename ? config.filename : libraryName + '.' + moduleName) +
115
+ '.d.ts',
116
+ root: config.outputPath ? config.outputPath : './lib/',
117
+ debug: 'debug' in config ? config.debug : false
118
+ }));
119
+ }
120
+ var resolvePlugins = [
121
+ new TsconfigPathsPlugin({
122
+ configFile: configFile,
123
+ silent: true
124
+ }),
125
+ ];
126
+ var aliases = config.alias || {};
127
+ var rules = [
128
+ {
129
+ test: /\.(scss|css)$/,
130
+ use: [
131
+ MiniCssExtractPlugin.loader,
132
+ {
133
+ loader: 'css-loader',
134
+ options: {
135
+ url: false
136
+ }
137
+ },
138
+ {
139
+ loader: 'postcss-loader',
140
+ options: {
141
+ postcssOptions: {
142
+ plugins: {
143
+ 'postcss-import': {},
144
+ 'postcss-cssnext': {},
145
+ 'postcss-nested': {},
146
+ // "postcss-scss": {}, //<-- only add this back if the build gets stuck on //comments in scss files, but I dont think that will be the case anymore
147
+ 'postcss-modules': {
148
+ //by default postcss-modules will put out a json file right next to the original css / scss file, this method defines what classnames to use
149
+ generateScopedName: shared_1.generateScopedName,
150
+ globalModulePaths: [/tailwind/]
151
+ },
152
+ tailwindcss: {
153
+ purge: {
154
+ enabled: productionMode,
155
+ content: [
156
+ './src/**/*.tsx',
157
+ './src/**/*.ts',
158
+ //also include @dacore modules which are internalized with the "internal" config option
159
+ //imports like ... from '@dacore/module/lib/views/SomeView' will
160
+ //these modules should live in the node_modules folder of the root of the site
161
+ //TODO: remake this with multiple lincd modules
162
+ // '../../node_modules/@dacore/*/lib/**/*.js',
163
+ // './node_modules/@dacore/*/lib/**/*.js',
164
+ ]
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ },
171
+ {
172
+ loader: 'sass-loader',
173
+ options: { sourceMap: true }
174
+ },
175
+ ]
176
+ },
177
+ {
178
+ test: /\.tsx?$/,
179
+ use: [
180
+ {
181
+ loader: 'ts-loader?' +
182
+ JSON.stringify(__assign(__assign(__assign({}, tsConfig), { compilerOptions: {
183
+ declaration: !es5,
184
+ /*
185
+ for webpack we overwrite the module settings of the modules' tsconfig file
186
+ because we NEED esnext for code splitting. But the VM we currently use for the registry does not support esnext modules
187
+ */
188
+ module: 'esnext',
189
+ moduleResolution: 'node'
190
+ } }), config.tsConfigOverwrites))
191
+ },
192
+ ]
193
+ },
194
+ {
195
+ enforce: 'pre',
196
+ test: /\.js$/,
197
+ use: [
198
+ {
199
+ loader: 'source-map-loader'
200
+ },
201
+ ]
202
+ },
203
+ ];
204
+ if (es5 && config.internalsources && config.internalsources.length > 0) {
205
+ //usually a module that transpiles to es5 will only have es5 code in the bundle.
206
+ //however a module that INTERNALISES other dacore modules will directly include es6 code from @dacore/other_modules/lib
207
+ //which eventually results in an import of @dacore/core being bundled as 'const =', which trips up old browsers
208
+ //so we fix that here by just referring directly to the typescript source instead of the transpiled js for internalised modules
209
+ //however this means that for internalised modules THE SOURCE CODE NEEDS TO BE AVAILABLE. This is currently NOT the case with how we publish modules to yarn
210
+ //so that means internalised modules need to be LOCALLY AVAILABLE with yarn workspaces
211
+ plugins.push(new webpack.NormalModuleReplacementPlugin(/\lincd\/lib\//, function (resource, match) {
212
+ var moduleName = resource.request.match(/lincd\/lib\//)[1];
213
+ if (config.internalsources.indexOf(moduleName) !== -1) {
214
+ console.log(colors.magenta('internal sources + ES5: Replacing /lib/ with /src/ for source-internalised module ' +
215
+ moduleName));
216
+ resource.request = resource.request.replace('/lib/', '/src/');
217
+ console.log(colors.magenta('internal sources + ES5: ' + resource.request));
218
+ console.log(colors.red("WARNING: Make sure you have the TYPESCRIPT SOURCE FILES of the modules listed as 'internal' AVAILABLE ON YOUR LOCAL MACHINE. So if you check in node_modules/your-internalised-module - that should be a symbolic link and you will find a 'src' folder with typescript files there."));
219
+ }
220
+ }));
221
+ }
222
+ return {
223
+ entry: config.entry ? config.entry : './src/index.ts',
224
+ output: {
225
+ filename: (config.filename ? config.filename : libraryName + '.' + moduleName) +
226
+ (es5 ? '.es5' : '') +
227
+ '.js',
228
+ path: path.resolve(process.cwd(), config.bundlePath || 'dist'),
229
+ devtoolModuleFilenameTemplate: moduleName + '/[resource-path]'
230
+ },
231
+ devtool: productionMode ? 'cheap-source-map' : 'cheap-source-map',
232
+ mode: productionMode ? 'production' : 'development',
233
+ //fixing a persistent but strange build error here that showed up once, this is a workaround. See: https://github.com/webpack-contrib/css-loader/issues/447
234
+ node: {
235
+ fs: 'empty',
236
+ child_process: 'empty'
237
+ },
238
+ resolve: {
239
+ extensions: ['.webpack.js', '.js', '.ts', '.tsx', '.json'],
240
+ alias: aliases,
241
+ plugins: resolvePlugins
242
+ },
243
+ resolveLoader: {
244
+ modules: [
245
+ path.join(__dirname, 'plugins'),
246
+ path.join(__dirname, 'node_modules'),
247
+ 'node_modules',
248
+ ]
249
+ },
250
+ optimization: {
251
+ minimize: productionMode,
252
+ minimizer: [
253
+ new TerserPlugin({
254
+ extractComments: {
255
+ condition: /^\**!|@preserve|@license|@cc_on/i,
256
+ banner: function (licenseFile) {
257
+ return "License information can be found in ".concat(licenseFile, " and oss-licences.json");
258
+ }
259
+ }
260
+ }),
261
+ ]
262
+ },
263
+ watch: watch,
264
+ module: {
265
+ rules: rules
266
+ },
267
+ //See plugins/externalise-modules.ts We're passing in a function here that determines what to exclude from the bundle and what not
268
+ //See also https://webpack.js.org/configuration/externals/
269
+ externals: (0, externalise_modules_1["default"])(config, es5),
270
+ plugins: plugins,
271
+ stats: {
272
+ errorDetails: config.debug,
273
+ chunks: false,
274
+ children: false,
275
+ version: true,
276
+ hash: false,
277
+ modules: false
278
+ }
279
+ };
280
+ }
281
+ exports.generateWebpackConfig = generateWebpackConfig;
package/src/index.js CHANGED
@@ -1,22 +1,22 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- exports.__esModule = true;
13
- exports.generateWebpackConfig = exports.generateGruntConfig = exports.externaliseModules = exports.DeclarationPlugin = void 0;
14
- var declaration_plugin_1 = require("./plugins/declaration-plugin");
15
- __createBinding(exports, declaration_plugin_1, "default", "DeclarationPlugin");
16
- var externalise_modules_1 = require("./plugins/externalise-modules");
17
- __createBinding(exports, externalise_modules_1, "default", "externaliseModules");
18
- var config_grunt_1 = require("./config-grunt");
19
- __createBinding(exports, config_grunt_1, "default", "generateGruntConfig");
20
- var config_webpack_1 = require("./config-webpack");
21
- exports.generateWebpackConfig = config_webpack_1.generateWebpackConfig;
22
- __exportStar(require("./utils"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ exports.__esModule = true;
13
+ exports.generateWebpackConfig = exports.generateGruntConfig = exports.externaliseModules = exports.DeclarationPlugin = void 0;
14
+ var declaration_plugin_1 = require("./plugins/declaration-plugin");
15
+ __createBinding(exports, declaration_plugin_1, "default", "DeclarationPlugin");
16
+ var externalise_modules_1 = require("./plugins/externalise-modules");
17
+ __createBinding(exports, externalise_modules_1, "default", "externaliseModules");
18
+ var config_grunt_1 = require("./config-grunt");
19
+ __createBinding(exports, config_grunt_1, "default", "generateGruntConfig");
20
+ var config_webpack_1 = require("./config-webpack");
21
+ exports.generateWebpackConfig = config_webpack_1.generateWebpackConfig;
22
+ __exportStar(require("./utils"), exports);
package/src/interfaces.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ "use strict";
2
+ exports.__esModule = true;