shopping-checkout
Advanced tools
Comparing version 0.0.1 to 0.1.0
'use strict'; | ||
const pathResolve = require( 'path' ).resolve; | ||
const cons = require( 'consolidate' ); | ||
const sheet2json = require( '../../sheet2json' ); | ||
const parseSheet = require( '../../parseSheet' ); | ||
@@ -17,5 +17,5 @@ /** | ||
module.exports = ( sheet , onRendered )=> { | ||
const array = sheet2json( sheet ); | ||
const templatePath = pathResolve( __dirname , 'template.html' ); | ||
array.forEach( ( rowData )=> { | ||
parseSheet( sheet , ( rowData )=> { | ||
// 计算总价 | ||
@@ -22,0 +22,0 @@ rowData[ '总价' ] = rowData.items.reduce( ( previousValue , currentItem )=> { |
{ | ||
"name" : "shopping-checkout" , | ||
"version" : "0.0.1" , | ||
"version" : "0.1.0" , | ||
"description" : "根据数据生成购物网站的结算页面" , | ||
@@ -9,2 +9,9 @@ "preferGlobal" : true , | ||
} , | ||
"scripts" : { | ||
"render" : "cd ./examples && node ../bin/cli" | ||
} , | ||
"files" : [ | ||
"bin" , | ||
"libs" | ||
] , | ||
"bin" : { | ||
@@ -18,13 +25,13 @@ "checkout" : "./bin/cli.js" | ||
"xlsx" : "^0.8.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/esong-fe/shopping-checkout.git" | ||
}, | ||
"author": "Milk Lee <me@limingkai.cn>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/esong-fe/shopping-checkout/issues" | ||
}, | ||
"homepage": "https://github.com/esong-fe/shopping-checkout" | ||
} , | ||
"repository" : { | ||
"type" : "git" , | ||
"url" : "git+https://github.com/esong-fe/shopping-checkout.git" | ||
} , | ||
"author" : "Milk Lee <me@limingkai.cn>" , | ||
"license" : "MIT" , | ||
"bugs" : { | ||
"url" : "https://github.com/esong-fe/shopping-checkout/issues" | ||
} , | ||
"homepage" : "https://github.com/esong-fe/shopping-checkout" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
569
179267
9