@inseefr/lunatic 2.7.0-rc.2 → 2.7.0-rc.3
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 +8 -3
- package/scripts/build/add-workers-to-public.js +27 -0
- package/scripts/build/workers-paths.js +37 -0
- package/workers-release/lunatic-append-worker-0.3.0-experimental.js +2 -0
- package/workers-release/lunatic-append-worker-0.3.0-experimental.js.LICENSE.txt +34 -0
- package/workers-release/lunatic-label-worker-0.3.0-experimental.js +2 -0
- package/workers-release/lunatic-label-worker-0.3.0-experimental.js.LICENSE.txt +13 -0
- package/workers-release/lunatic-searching-worker-0.3.0-experimental.js +2 -0
- package/workers-release/lunatic-searching-worker-0.3.0-experimental.js.LICENSE.txt +34 -0
- package/scripts/build/build-worker-to-public.js +0 -24
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Snowball JavaScript Library v0.3
|
|
3
|
+
* http://code.google.com/p/urim/
|
|
4
|
+
* http://snowball.tartarus.org/
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2010, Oleg Mazko
|
|
7
|
+
* http://www.mozilla.org/MPL/
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*!
|
|
11
|
+
* array-last <https://github.com/jonschlinkert/array-last>
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
14
|
+
* Released under the MIT License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/*!
|
|
18
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
21
|
+
* Released under the MIT License.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
|
|
4
|
-
const appendWorkerConfig = require('./webpack-append-worker.config.js');
|
|
5
|
-
const labelWorkerConfig = require('./webpack-label-worker.config.js');
|
|
6
|
-
const searchingWorkerConfig = require('./webpack-searching-worker.config.js');
|
|
7
|
-
|
|
8
|
-
const workersCompilerConfig = [
|
|
9
|
-
{ name: 'Append worker', compiler: webpack(appendWorkerConfig) },
|
|
10
|
-
{ name: 'Label worker', compiler: webpack(labelWorkerConfig) },
|
|
11
|
-
{ name: 'Searching worker', compiler: webpack(searchingWorkerConfig) },
|
|
12
|
-
];
|
|
13
|
-
|
|
14
|
-
const buildWorkers = async () => {
|
|
15
|
-
console.log('Build lunatic workers...');
|
|
16
|
-
await workersCompilerConfig.forEach(({ name, compiler }) => {
|
|
17
|
-
compiler.run((err, stats) => {
|
|
18
|
-
if (err) console.log(err);
|
|
19
|
-
if (stats?.hasErrors()) console.log(stats);
|
|
20
|
-
});
|
|
21
|
-
console.log(`${name} built !`);
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
buildWorkers();
|