@suffolklitlab/alkiln 5.0.0-experimental5 → 5.0.0-hotfixupload10
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/lib/scope.js +35 -2
- package/package.json +1 -1
package/lib/scope.js
CHANGED
|
@@ -1794,8 +1794,41 @@ module.exports = {
|
|
|
1794
1794
|
return false;
|
|
1795
1795
|
}
|
|
1796
1796
|
|
|
1797
|
+
// `**/docassemble/**/data/sources`
|
|
1798
|
+
// `/usr/share/docassemble/files/playgroundsources/${session_vars.get_user_id()}/${session_vars.get_user_project_name()}/*.feature`);
|
|
1799
|
+
// `/tmp/playgroundsources/${session_vars.get_user_id()}/${session_vars.get_user_project_name()}/*.feature`);
|
|
1800
|
+
// MUST have proj name for right upload files
|
|
1801
|
+
|
|
1802
|
+
let dirs_playground = fg.sync(
|
|
1803
|
+
[ `/usr/share/docassemble/files/playgroundsources/**/data/sources` ],
|
|
1804
|
+
{ onlyFiles: false, suppressErrors: true }
|
|
1805
|
+
);
|
|
1806
|
+
console.log(`\n=== dirs_playground ===`);
|
|
1807
|
+
console.log(dirs_playground);
|
|
1808
|
+
|
|
1809
|
+
let dirs_playground_all = fg.sync(
|
|
1810
|
+
[ `/usr/**/docassemble/**/data/sources` ],
|
|
1811
|
+
{ onlyFiles: false, suppressErrors: true }
|
|
1812
|
+
);
|
|
1813
|
+
console.log(`\n=== dirs_playground_all ===`);
|
|
1814
|
+
console.log(dirs_playground_all);
|
|
1815
|
+
|
|
1816
|
+
let dirs_s3 = fg.sync(
|
|
1817
|
+
[ `/tmp/playgroundsources/**/data/sources` ],
|
|
1818
|
+
{ onlyFiles: false, suppressErrors: true }
|
|
1819
|
+
);
|
|
1820
|
+
console.log(`\n=== dirs_s3 ===`);
|
|
1821
|
+
console.log(dirs_s3);
|
|
1822
|
+
|
|
1823
|
+
let dirs_repo = fg.sync(
|
|
1824
|
+
[ `${ process.cwd() }/**/docassemble/**/data/sources` ],
|
|
1825
|
+
{ onlyFiles: false, suppressErrors: true }
|
|
1826
|
+
);
|
|
1827
|
+
console.log(`\n=== dirs_repo ===`);
|
|
1828
|
+
console.log(dirs_repo);
|
|
1829
|
+
|
|
1797
1830
|
// Make sure sources directory exists
|
|
1798
|
-
let dirs = fg.sync([
|
|
1831
|
+
let dirs = fg.sync([ `${ process.cwd() }/**/docassemble/**/data/sources` ], { onlyFiles: false });
|
|
1799
1832
|
if ( dirs.length === 0 ) {
|
|
1800
1833
|
await scope.addToReport( scope, {
|
|
1801
1834
|
type: `warning`,
|
|
@@ -1812,7 +1845,7 @@ module.exports = {
|
|
|
1812
1845
|
let matching_paths = [];
|
|
1813
1846
|
if ( dir === null ) {
|
|
1814
1847
|
for ( let one_dir of dirs ) {
|
|
1815
|
-
console.log( one_dir );
|
|
1848
|
+
// console.log( one_dir );
|
|
1816
1849
|
matching_paths = fg.sync([ `${ one_dir }/${ trimmed_name }` ]);
|
|
1817
1850
|
if ( matching_paths.length > 0 ) {
|
|
1818
1851
|
dir = one_dir;
|
package/package.json
CHANGED