package.json 4.9 KB
Newer Older
C
codecalm 已提交
1
{
P
Paweł Kuna 已提交
2
  "name": "tabler",
C
chomik 已提交
3 4
  "version": "1.0.0",
  "description": "Premium and Open Source dashboard template with responsive and high quality UI.",
C
codecalm 已提交
5
  "scripts": {
C
chomik 已提交
6
    "start": "npm-run-all --parallel browsersync watch html-watch",
7
    "build": "npm-run-all html-build css js",
C
chomik 已提交
8
    "bundlesize": "bundlesize",
C
chomik 已提交
9
    "browsersync": "node build/browsersync.js",
C
chomik 已提交
10
    "html-watch": "JEKYLL_ENV=development bundle exec jekyll build --watch",
C
chomik 已提交
11
    "html-build": "JEKYLL_ENV=production bundle exec jekyll build",
C
chomik 已提交
12
    "lint": "npm-run-all --parallel js-lint css-lint",
13
    "clean": "rm -rf dist/* && mkdir dist/css && mkdir dist/js",
14
    "css": "npm-run-all css-compile css-prefix css-minify",
15
    "css-compile": "node build/scss-compile.js",
C
chomik 已提交
16
    "css-prefix": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"",
17
    "css-minify": "for i in dist/css/tabler*.css;do echo $i; N=`echo $i | sed -e 's/^dist\\/css\\///g' | sed -e 's/\\\\.css//g'`; echo $N; cleancss --level 1 --format breakWith=lf --source-map --source-map-inline-sources --output dist/css/$N.min.css dist/css/$N.css; done",
C
chomik 已提交
18
    "css-lint": "stylelint \"scss/**/*.scss\" --cache --cache-location .cache/.stylelintcache",
C
chomik 已提交
19
    "css-main": "npm-run-all css-compile css-prefix",
C
chomik 已提交
20
    "css-main-build": "npm-run-all css-lint css-compile css-prefix css-minify",
C
chomik 已提交
21 22
    "watch": "npm-run-all --parallel watch-*",
    "watch-css": "nodemon --watch scss/ --ext scss --exec \"npm run css-main\"",
C
chomik 已提交
23
    "watch-js": "nodemon --watch js/ --ext js --exec \"npm run js-compile-standalone\"",
24
    "js": "npm-run-all js-compile js-minify",
C
chomik 已提交
25 26
    "js-lint": "eslint --cache --cache-location .cache/.eslintcache js build/",
    "js-compile": "npm-run-all --parallel js-compile-* --sequential js-minify",
C
chomik 已提交
27
    "js-compile-standalone": "rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap",
C
chomik 已提交
28 29 30
    "js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap",
    "js-minify": "npm-run-all js-minify-standalone* js-minify-bundle",
    "js-minify-standalone": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/tabler.js.map,includeSources,url=tabler.min.js.map\" --output dist/js/tabler.min.js dist/js/tabler.js",
C
chomik 已提交
31
    "js-minify-bundle": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/tabler.bundle.js.map,includeSources,url=tabler.bundle.min.js.map\" --output dist/js/tabler.bundle.min.js dist/js/tabler.bundle.js",
C
chomik 已提交
32 33
    "svg-svgo": "svgo -f svg/fe --pretty && svgo -f svg/brand --pretty",
    "svg-iconfont": "mkdir -p svg-tmp && for i in svg/*/*.svg;do N=`echo $i | sed -e 's/^svg\\///g' | sed -e 's/\\\\.svg$//g' | sed -e 's/\\//-/g'`; echo $i; rsvg-convert $i -o svg-tmp/$N.svg -f svg -w 1000; done && svgo ./svg-tmp/*.svg --disable={removeViewBox} && icon-font-generator ./svg-tmp/*.svg -o fonts/tabler-webfont --html false --csstp build/tabler-webfont.hbs --csspath scss/fonts/_tabler-webfont.scss --center --normalize --name tabler-webfont --types svg,eot,ttf,woff,woff2 --json false && rm -rf svg-tmp && node build/generate-font-codepoints.js"
C
codecalm 已提交
34 35 36
  },
  "repository": {
    "type": "git",
C
codecalm 已提交
37
    "url": "git+https://github.com/tabler/tabler.git"
C
codecalm 已提交
38
  },
C
chomik 已提交
39
  "keywords": [],
C
codecalm 已提交
40
  "author": "codecalm",
C
chomik 已提交
41
  "license": "ISC",
C
codecalm 已提交
42
  "bugs": {
C
codecalm 已提交
43
    "url": "https://github.com/tabler/tabler/issues"
C
codecalm 已提交
44
  },
C
chomik 已提交
45 46 47 48 49 50 51 52
  "engines": {
    "node": ">=8"
  },
  "files": [
    "dist/{css,js}/*.{css,js,map}",
    "js/{src,dist}/**/*.{js,map}",
    "scss/**/*.scss"
  ],
C
chomik 已提交
53
  "homepage": "https://tabler.io",
C
codecalm 已提交
54
  "devDependencies": {
C
chomik 已提交
55 56
    "browser-sync": "2.26.7",
    "bundlesize": "0.17.2",
C
chomik 已提交
57
    "clean-css-cli": "4.3.0",
C
chomik 已提交
58
    "cross-env": "5.2.0",
C
chomik 已提交
59 60
    "eslint": "5.16.0",
    "eslint-config-xo": "0.26.0",
C
chomik 已提交
61 62
    "eslint-plugin-import": "2.17.3",
    "eslint-plugin-unicorn": "9.1.0",
C
chomik 已提交
63
    "http-server": "0.11.1",
C
chomik 已提交
64 65
    "icon-font-generator": "2.1.10",
    "node-sass": "4.12.0",
C
chomik 已提交
66
    "nodemon": "1.19.1",
C
chomik 已提交
67 68
    "npm-run-all": "4.1.5",
    "popper.js": "1.15.0",
C
chomik 已提交
69
    "postcss-cli": "6.1.2",
C
chomik 已提交
70
    "rollup": "1.15.6",
C
chomik 已提交
71
    "rollup-plugin-babel": "4.3.2",
C
chomik 已提交
72
    "rollup-plugin-node-resolve": "5.0.3",
C
chomik 已提交
73
    "shx": "0.3.2",
C
chomik 已提交
74 75
    "stylelint": "10.1.0",
    "stylelint-config-twbs-bootstrap": "0.3.1",
C
chomik 已提交
76
    "svgo": "1.2.2",
C
chomik 已提交
77
    "terser": "4.0.0",
C
chomik 已提交
78
    "yaml": "1.6.0"
C
chomik 已提交
79 80
  },
  "dependencies": {
C
chomik 已提交
81
    "apexcharts": "3.8.0",
C
chomik 已提交
82
    "autosize": "4.0.2",
83
    "bootstrap": "twbs/bootstrap#4b3d263",
C
chomik 已提交
84 85
    "imask": "5.1.5",
    "selectize": "0.12.6"
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
  },
  "bundlesize": [
    {
      "path": "./dist/css/tabler.css",
      "maxSize": "50 kB"
    },
    {
      "path": "./dist/css/tabler.min.css",
      "maxSize": "45 kB"
    },
    {
      "path": "./dist/js/tabler.js",
      "maxSize": "2 kB"
    },
    {
      "path": "./dist/js/tabler.min.js",
      "maxSize": "1.5 kB"
    },
    {
      "path": "./dist/js/tabler.bundle.js",
      "maxSize": "1.5 kB"
    },
    {
      "path": "./dist/js/tabler.bundle.min.js",
      "maxSize": "1.1 kB"
    }
  ]
C
codecalm 已提交
113
}