imgix.js

v4.0.1
imgix.js is a dependency-free JavaScript library that allows you to easily use the imgix API to make images on your site or app responsive to device size and pixel density. imgix.js allows for intuitive use of imgix features such as text formatting, color

test

npm run build && ./node_modules/jasmine/bin/jasmine.js & npm run cy:runOnly

build

mkdir -p dist && ./node_modules/browserify/bin/cmd.js ./src/imgix.js > ./dist/imgix.js && ./node_modules/uglify-js/bin/uglifyjs ./dist/imgix.js --mangle > ./dist/imgix.min.js

start

npx browser-sync start --server --files '*.html, js/*.js'

cy:run

npm run build && cypress run

pretty

prettier --write "src/**/*.js" "spec/**/*.js"

prepare

npm run build

release

npm run build && git add dist src/imgix.js && standard-version -a

cy:watch

npx nodemon -w cypress/integration -w cypress/fixtures -w src -x 'npm run cy:run'

cy:runOnly

cypress run

test:watch

chokidar "src/*.js" "spec/*.js" -c "npm run test"

build:watch

npx nodemon -w src -x 'npm run build'

prepublishOnly

npm run build

release:dryRun

npx node-env-run --exec 'semantic-release --dryRun'

release:publish

semantic-release
npm i imgix.js

Metadata

Downloads