Compare commits

...

1 Commits

Author SHA1 Message Date
9684309e6a chore: monorepo 2018-08-30 19:03:14 -07:00
6 changed files with 57 additions and 23 deletions

View File

@@ -1,9 +1,10 @@
{
"name": "strain-scraper",
"name": "strain-tools",
"version": "0.0.0",
"description": "scrapes strain info, stores for later reference",
"description": "strain tools",
"main": "index",
"module": "index.mjs",
"private": true,
"scripts": {
"lint": "eslint \"*.{js,mjs}\" \"src/**/*.{js,mjs}\"",
"precommit": "lint-staged",
@@ -13,22 +14,15 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/w33ble/strain-scraper.git"
"url": "git+https://git.w33ble.com/w33ble/strain-tools.git"
},
"keywords": [],
"files": [
"src/",
"index.js",
"index.mjs",
"CHANGELOG.md",
"AUTHORS.md"
],
"author": "joe fleming (https://github.com/w33ble)",
"license": "MIT",
"bugs": {
"url": "https://github.com/w33ble/strain-scraper/issues"
"url": "https://git.w33ble.com/w33ble/strain-tools/issues"
},
"homepage": "https://github.com/w33ble/strain-scraper",
"homepage": "https://git.w33ble.com/w33ble/strain-tools",
"auto-changelog": {
"output": "CHANGELOG.md",
"breakingPattern": "BREAKING CHANGE:",
@@ -49,15 +43,10 @@
"singleQuote": true,
"trailingComma": "es5"
},
"esm": {
"cjs": true
},
"dependencies": {
"axios": "^0.18.0",
"esm": "^3.0.17",
"lodash": "^4.17.10",
"lowdb": "^1.0.0"
},
"workspaces": [
"packages/*"
],
"dependencies": {},
"devDependencies": {
"auto-authors": "^0.1.1",
"auto-changelog": "^1.7.0",
@@ -70,7 +59,6 @@
"eslint-plugin-react": "^7.1.0",
"husky": "^0.14.3",
"lint-staged": "^7.0.4",
"nodemon": "^1.18.4",
"prettier": "^1.9.0"
}
}

View File

@@ -0,0 +1,46 @@
{
"name": "leafly-scraper",
"version": "0.0.0",
"description": "scrapes strain info, stores for later reference",
"main": "index",
"module": "index.mjs",
"scripts": {
"start": "node .",
"dev": "nodemon --ignore db.json ."
},
"keywords": [],
"files": [
"src/",
"index.js",
"index.mjs",
"CHANGELOG.md",
"AUTHORS.md"
],
"author": "joe fleming (https://github.com/w33ble)",
"license": "MIT",
"lint-staged": {
"*.{js,mjs}": [
"eslint --fix"
],
"*.{js,mjs,json,css}": [
"prettier --write"
]
},
"prettier": {
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5"
},
"esm": {
"cjs": true
},
"dependencies": {
"axios": "^0.18.0",
"esm": "^3.0.17",
"lodash": "^4.17.10",
"lowdb": "^1.0.0"
},
"devDependencies": {
"nodemon": "^1.18.4"
}
}

View File

@@ -20,7 +20,7 @@ const getPage = async num => {
// transform strain data
const strains = response.data.Model.Strains.filter(strain => strain.Name != null).map(strain => ({
id: strain.Id,
id: parseInt(strain.Id, 10),
name: strain.Name,
symbol: strain.Symbol,
category: get(strain, 'Category', 'unknown').toLowerCase(),