makeup-next-id
Advanced tools
Comparing version 0.1.1 to 0.1.2
'use strict'; | ||
var nanoid = require('nanoid'); | ||
var nanoid = require('nanoid/non-secure'); | ||
@@ -5,0 +5,0 @@ var sequenceMap = {}; |
{ | ||
"name": "makeup-next-id", | ||
"description": "Assign the next id in sequence to an element, if an id property does not already exist.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "index.js", | ||
@@ -11,17 +11,18 @@ "repository": "https://github.com/makeup-js/makeup-next-id.git", | ||
"start": "npm run build && parallelshell \"npm run server\" \"npm run watch\"", | ||
"test": "npm run build:module && npm run lasso:tests && karma start --autoWatch false --singleRun true", | ||
"prepublishOnly": "npm run lint && npm run test && npm run clean:tests && npm run build:docs", | ||
"test": "npm run build:module && jest", | ||
"prepublishOnly": "npm run lint && npm run test && npm run build:docs", | ||
"prep": "npm run prepublishOnly", | ||
"build": "npm run build:module && npm run build:docs", | ||
"build:module": "babel src/index.js --out-file index.js", | ||
"build:docs": "babel docs/src/index.js --out-file docs/index.js && npm run lasso:docs && npm run clean:docs", | ||
"fix": "eslint src/index.js --fix", | ||
"lint": "eslint src/index.js > lint.txt && eslint docs/src/index.js > lint.txt", | ||
"lasso:docs": "lasso require-run:./docs/index.js --out docs/static --inject-into docs/index.html --name bundle", | ||
"lasso:tests": "npm run clean:tests && lasso require-run:./test/index.js --name bundle-test --out test/static --config ./test/lasso-config.json", | ||
"clean:docs": "rimraf .cache build docs/index.js", | ||
"clean:tests": "rimraf lint.txt reports", | ||
"server": "browser-sync start -s --ss docs --index docs/index.html --files docs/index.html", | ||
"watch": "onchange src/*.js docs/src/index.js -- npm run build", | ||
"version": "npm run prepublishOnly && git add -A docs/static test/static" | ||
"build:module": "npm run transpile:module", | ||
"build:docs": "npm run transpile:docs && npm run bundle:docs && npm run clean:docs", | ||
"fix": "eslint src/index.js docs/src/index.js test.js --fix", | ||
"lint": "eslint src/index.js > lint.txt && eslint docs/src/index.js > lint.txt && eslint test.js > lint.txt", | ||
"clean:docs": "rimraf docs/_babel", | ||
"jest": "jest --coverage", | ||
"server": "browser-sync start -s --ss docs --index docs/index.html --files docs/index.html docs/dist/bundle.js", | ||
"transpile:module": "babel src/index.js --out-file index.js", | ||
"transpile:docs": "mkdirp docs/_babel && babel docs/src/index.js --out-file docs/_babel/index.js", | ||
"watch": "onchange src/index.js docs/src/index.js -- npm run build", | ||
"bundle:docs": "webpack --config webpack.docs.js", | ||
"version": "npm run prepublishOnly && git add -A docs/dist" | ||
}, | ||
@@ -41,19 +42,16 @@ "keywords": [ | ||
"@babel/preset-env": "^7", | ||
"babel-plugin-transform-object-assign": "^6", | ||
"@ebay/browserslist-config": "^1", | ||
"babel-jest": "^24", | ||
"browser-sync": "^2", | ||
"core-js-pure": "^3", | ||
"coveralls": "^3", | ||
"eslint": "^5", | ||
"eslint": "^6", | ||
"eslint-config-ebay": "^1", | ||
"jasmine-core": "^3", | ||
"karma": "^4", | ||
"karma-chrome-launcher": "^2", | ||
"karma-coverage": "^1", | ||
"karma-html-reporter": "~0.2", | ||
"karma-jasmine": "^2", | ||
"lasso-cli": "^2", | ||
"jest": "^24", | ||
"mkdirp": "~0.5", | ||
"onchange": "^6", | ||
"parallelshell": "^3", | ||
"puppeteer": "^1", | ||
"rimraf": "^2" | ||
"parallelshell": "3.0.1", | ||
"rimraf": "^3", | ||
"webpack": "^4", | ||
"webpack-cli": "^3" | ||
}, | ||
@@ -64,3 +62,6 @@ "files": [ | ||
"yarn.lock" | ||
], | ||
"browserslist": [ | ||
"extends @ebay/browserslist-config" | ||
] | ||
} |
@@ -67,18 +67,6 @@ # makeup-next-id | ||
## Development | ||
## Code Coverage | ||
* `npm start` | ||
* `npm test` | ||
* `npm run lint` | ||
* `npm run fix` | ||
* `npm run build` | ||
* `npm run clean` | ||
Running `yarn test` will generate a code coverage at `./coverage`/ | ||
## Test Reports | ||
Each test run will generate the following reports: | ||
* `/reports/coverage` contains Istanbul code coverage report | ||
* `/reports/html` contains HTML test report | ||
## CI Build | ||
@@ -85,0 +73,0 @@ |
Sorry, the diff of this file is not supported yet
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
310974
17
78