w-mesh-gms 1.0.3 → 1.0.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.
@@ -0,0 +1,24 @@
1
+ name: Node.js CI
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ node-version: [20.x]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Use Node.js ${{ matrix.node-version }}
17
+ uses: actions/setup-node@v1
18
+ with:
19
+ node-version: ${{ matrix.node-version }}
20
+ - run: npm cache clean -f
21
+ - run: npm install
22
+ - run: npm test
23
+ env:
24
+ CI: true
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-mesh-gms v1.0.3
2
+ * w-mesh-gms v1.0.4
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -46,14 +46,14 @@
46
46
  <section>
47
47
  <article>
48
48
  <pre class="prettyprint source linenums"><code>import fs from 'fs'
49
- import get from 'lodash-es/get'
50
- import map from 'lodash-es/map'
51
- import each from 'lodash-es/each'
52
- import drop from 'lodash-es/drop'
53
- import split from 'lodash-es/split'
54
- import values from 'lodash-es/values'
55
- import min from 'lodash-es/min'
56
- import max from 'lodash-es/max'
49
+ import get from 'lodash-es/get.js'
50
+ import map from 'lodash-es/map.js'
51
+ import each from 'lodash-es/each.js'
52
+ import drop from 'lodash-es/drop.js'
53
+ import split from 'lodash-es/split.js'
54
+ import values from 'lodash-es/values.js'
55
+ import min from 'lodash-es/min.js'
56
+ import max from 'lodash-es/max.js'
57
57
  import sep from 'wsemi/src/sep.mjs'
58
58
  import cint from 'wsemi/src/cint.mjs'
59
59
  import cdbl from 'wsemi/src/cdbl.mjs'
@@ -403,7 +403,7 @@ export default WMeshGms
403
403
  <br class="clear">
404
404
 
405
405
  <footer>
406
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 22:45:08 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
406
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 23 2024 21:33:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
407
407
  </footer>
408
408
 
409
409
  <script>prettyPrint();</script>
package/docs/global.html CHANGED
@@ -789,7 +789,7 @@
789
789
  <br class="clear">
790
790
 
791
791
  <footer>
792
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 22:45:08 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
792
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 23 2024 21:33:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
793
793
  </footer>
794
794
 
795
795
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 22:45:08 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 23 2024 21:33:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/g.read.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import fs from 'fs'
2
- import _ from 'lodash-es'
3
2
  import wmg from './src/WMeshGms.mjs'
4
3
 
5
4
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "w-mesh-gms",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/w-mesh-gms.umd.js",
5
5
  "dependencies": {
6
6
  "lodash-es": "^4.17.21",
7
- "wsemi": "^1.7.47"
7
+ "wsemi": "^1.7.49"
8
8
  },
9
9
  "devDependencies": {
10
- "w-package-tools": "^1.0.73"
10
+ "w-package-tools": "^1.0.75"
11
11
  },
12
12
  "scripts": {
13
13
  "test": "mocha --parallel --timeout 60000 --experimental-modules --es-module-specifier-resolution=node",
package/script.txt ADDED
@@ -0,0 +1,20 @@
1
+ #node --experimental-modules --es-module-specifier-resolution=node toolg/addVersion.mjs
2
+ node --experimental-modules --es-module-specifier-resolution=node toolg/modifyReadme.mjs
3
+
4
+ node --experimental-modules --es-module-specifier-resolution=node toolg/cleanFolder.mjs
5
+ ./node_modules/.bin/jsdoc -c .jsdoc
6
+
7
+ node --experimental-modules --es-module-specifier-resolution=node toolg/gDocsExams.mjs
8
+
9
+ node --experimental-modules --es-module-specifier-resolution=node toolg/gDistRollup.mjs
10
+
11
+ git add . -A
12
+ git commit -m 'modify: '
13
+ git push origin master:master
14
+
15
+ npm run deploy
16
+
17
+ #npm test
18
+
19
+ #npm publish
20
+
package/src/WMeshGms.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import fs from 'fs'
2
- import get from 'lodash-es/get'
3
- import map from 'lodash-es/map'
4
- import each from 'lodash-es/each'
5
- import drop from 'lodash-es/drop'
6
- import split from 'lodash-es/split'
7
- import values from 'lodash-es/values'
8
- import min from 'lodash-es/min'
9
- import max from 'lodash-es/max'
2
+ import get from 'lodash-es/get.js'
3
+ import map from 'lodash-es/map.js'
4
+ import each from 'lodash-es/each.js'
5
+ import drop from 'lodash-es/drop.js'
6
+ import split from 'lodash-es/split.js'
7
+ import values from 'lodash-es/values.js'
8
+ import min from 'lodash-es/min.js'
9
+ import max from 'lodash-es/max.js'
10
10
  import sep from 'wsemi/src/sep.mjs'
11
11
  import cint from 'wsemi/src/cint.mjs'
12
12
  import cdbl from 'wsemi/src/cdbl.mjs'
@@ -0,0 +1,22 @@
1
+ import assert from 'assert'
2
+ // import fs from 'fs'
3
+ // import wmg from '../src/WMeshGms.mjs'
4
+
5
+
6
+ describe('read', function() {
7
+
8
+ it('test for read', async function() {
9
+ // let fpXyz = './_mesh/YiLan_xyz.txt'
10
+ // let fpTop = './_mesh/YiLan_top.txt'
11
+ // let fpBot = './_mesh/YiLan_bot.txt'
12
+ // let fpMat = './_mesh/YiLan_mat.txt'
13
+ // let fpOut = './_mesh/mesh.json'
14
+ // let r = await wmg.readGms(fpXyz, fpTop, fpBot, fpMat)
15
+ // let rin = JSON.stringify(r)
16
+ // let rout = fs.readFileSync(fpOut, 'utf8')
17
+ // assert.strict.deepEqual(rin, rout)
18
+ //檔案過大不使用自動化test
19
+ assert.strict.deepEqual(1, 1)
20
+ })
21
+
22
+ })
@@ -1,9 +1,10 @@
1
1
  import assert from 'assert'
2
2
 
3
3
 
4
- describe('all', function() {
4
+ describe('write', function() {
5
5
 
6
6
  it('test in localhost', function() {
7
+ //尚待開發
7
8
  assert.strict.deepEqual(1, 1)
8
9
  })
9
10