main

animate-css/animate.css

Last updated at: 29/12/2023 09:20

package.json

TLDR

The package.json file is the configuration file for the "animate.css" project. It contains information about the project, its dependencies, scripts, and other settings.

Scripts

start

Starts the development server by running the raw, prod, and compat scripts.

compat

Converts the source/animate.css file to animate.compat.css with compatibility environment settings.

dev

Converts the source/animate.css file to animate.css with development environment settings and watches for changes.

raw

Converts the source/animate.css file to animate.css with development environment settings.

prod

Converts the source/animate.css file to animate.min.css with production environment settings.

format

Formats the .js, .json, .md, and .css files using prettier.

docs:library

Converts the source/animate.css file to ./docs/animate.min.css with production environment settings.

docs:pages

Runs the ./docsSource/index.js script.

docs

Runs the docs:library and docs:pages scripts.

version

Runs the start and docs scripts, and adds all changed files to the git repository.

postversion

Pushes the changes and tags to the git repository.

prepare

Installs the husky pre-commit hooks.

Dev Dependencies

  • autoprefixer: ^10.4.7
  • cssnano: ^5.0.17
  • eslint: ^7.32.0
  • husky: ^7.0.4
  • lint-staged: ^11.2.6
  • markdown-it: ^12.3.2
  • npm-run-all: ^4.1.5
  • postcss: ^8.4.14
  • postcss-cli: ^8.3.1
  • postcss-header: ^3.0.1
  • postcss-import: ^14.0.2
  • postcss-prefixer: ^2.1.3
  • postcss-preset-env: ^6.7.0
  • prettier: ^2.7.1
{
  "name": "animate.css",
  "version": "4.1.1",
  "description": "A cross-browser library of CSS animations",
  "main": "animate.css",
  "repository": {
    "type": "git",
    "url": "https://github.com/animate-css/animate.css.git"
  },
  "author": {
    "name": "Animate.css"
  },
  "homepage": "https://animate.style/",
  "license": "Hippocratic-2.1",
  "animateConfig": {
    "prefix": "animate__"
  },
  "scripts": {
    "start": "npm-run-all raw prod compat",
    "compat": "npx postcss source/animate.css -o animate.compat.css --no-map --env compat",
    "dev": "npx postcss source/animate.css -o animate.css --no-map --env development -w",
    "raw": "npx postcss source/animate.css -o animate.css --no-map --env development",
    "prod": "npx postcss source/animate.css -o animate.min.css --no-map --env production",
    "format": "prettier --write \"**/*.{js,json,md,css}\"",
    "docs:library": "npx postcss source/animate.css -o ./docs/animate.min.css --no-map --env production",
    "docs:pages": "node ./docsSource/index.js",
    "docs": "npm-run-all docs:library docs:pages",
    "version": "npm-run-all start docs && git add -A docs animate.css animate.min.css animate.compat.css",
    "postversion": "git push && git push --tags",
    "prepare": "husky install"
  },
  "browserslist": [
    "> 3%",
    "last 2 versions"
  ],
  "style": "./animate.css",
  "jspm": {
    "main": "animate.css!",
    "format": "global",
    "directories": {
      "lib": "./"
    }
  },
  "devDependencies": {
    "autoprefixer": "^10.4.7",
    "cssnano": "^5.0.17",
    "eslint": "^7.32.0",
    "husky": "^7.0.4",
    "lint-staged": "^11.2.6",
    "markdown-it": "^12.3.2",
    "npm-run-all": "^4.1.5",
    "postcss": "^8.4.14",
    "postcss-cli": "^8.3.1",
    "postcss-header": "^3.0.1",
    "postcss-import": "^14.0.2",
    "postcss-prefixer": "^2.1.3",
    "postcss-preset-env": "^6.7.0",
    "prettier": "^2.7.1"
  },
  "lint-staged": {
    "*.{mjs,js,json,md,css}": "prettier --write"
  },
  "files": [
    "animate.compat.css",
    "animate.min.css",
    "animate.css",
    "source/**/*.css"
  ]
}