Compare commits

...

3 Commits

Author SHA1 Message Date
chris 386ed6b8ab CHORE,REFA: trying postinstall attempt for build script execution 2 months ago
chris 1b464b9ad7 FIX: generate process couldn't pick up files 4 months ago
chris c3b90e60bf MINOR,REFA: indentation 4 months ago
  1. 2
      build.js
  2. 2
      join_js_files.sh
  3. 12
      jpclw-bundle.json
  4. 3
      package.json
  5. 0
      src/component/ModifiableComponent.js
  6. 0
      src/helper/TwoDimPoint.js
  7. 2
      src/modifier/Modifier.js

2
generate_single_file.js → build.js

@ -98,6 +98,7 @@ async function appendContent(srcFile, targetFile, contentModifications = [], lin
console.log(` Append/Write: successfully!`);
} catch (error) {
console.error(`Error reading/writing files: ${error.message}`);
console.error(srcFile);
}
}
@ -146,7 +147,6 @@ async function bundleWithSpecifiedMode(targetFile, fileList, modulize = true) {
), Promise.resolve()
)
}
}

2
join_js_files.sh

@ -8,4 +8,4 @@ SRC="src"
# and thoose that use component.
echo "" > $TARGET
node generate_single_file.js
node build.js true

12
jpclw-bundle.json

@ -48,9 +48,6 @@
"Row.js",
"InputComponent.js"
],
"extensions": [
"extension.js"
],
"context": [
"scriptAndStyleContext.js",
"framework-controls.js",
@ -84,7 +81,6 @@
"padding.js",
"shapes.js",
"siding.js",
"extension.js",
"simplePagingAndNavigation.js",
"defaultGenerators.js",
"generator.js",
@ -504,14 +500,6 @@
"Sides"
]
},
"extension.js": {
"folder": "src/extensions",
"name": "extension.js"
},
"simplePagingAndNavigation.js": {
"folder": "src/extensions",
"name": "simplePagingAndNavigation.js"
},
"defaultGenerators.js": {
"folder": "src/generators",
"name": "defaultGenerators.js",

3
package.json

@ -12,7 +12,8 @@
],
"scripts": {
"prepare": "npm run build",
"generate": "node generate_single_file.js true",
"postinstall": "node build.js true",
"generate": "node build.js true",
"build": "npm run generate",
"test": "echo \"Error: no test specified\" && exit 1"
},

0
src/component/modifiableComponent.js → src/component/ModifiableComponent.js

0
src/helper/twoDimPoint.js → src/helper/TwoDimPoint.js

2
src/modifier/Modifier.js

@ -343,7 +343,6 @@ class Modifier {
modify.toModifications()
.forEach(e => this._modifications[e.key] = e.value);
return this;
} else {
let modSub = new BorderChain(this);
if (Number.isInteger(modify) && modify > 0) {
@ -351,6 +350,7 @@ class Modifier {
}
return modSub;
}
return this;
}
/**

Loading…
Cancel
Save