72 lines
2.7 KiB
JSON
72 lines
2.7 KiB
JSON
{
|
|
"private": true,
|
|
"name": "jbuk-frontend",
|
|
"version": "0.0.1",
|
|
"repository": "https://github.com/jonnybarnes/jonnybarnes.uk",
|
|
"license": "CC0-1.0",
|
|
"dependencies": {
|
|
"a11y.css": "^4.5.0",
|
|
"alertify.js": "^1.0.12",
|
|
"mapbox-gl": "^0.44.2",
|
|
"marked": "^0.3.19",
|
|
"normalize.css": "^8.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.0.0-beta.44",
|
|
"@babel/preset-env": "^7.0.0-beta.44",
|
|
"ajv": "^6.4.0",
|
|
"ajv-keywords": "^3.1.0",
|
|
"autoprefixer": "^8.3.0",
|
|
"babel-cli": "^6.26.0",
|
|
"babel-loader": "^8.0.0-beta.2",
|
|
"babel-preset-env": "^1.6.1",
|
|
"babel-runtime": "^6.26.0",
|
|
"dotenv-webpack": "^1.5.5",
|
|
"eslint": "^4.19.1",
|
|
"eslint-config-standard": "^11.0.0",
|
|
"eslint-plugin-import": "^2.11.0",
|
|
"eslint-plugin-node": "^6.0.1",
|
|
"eslint-plugin-promise": "^3.7.0",
|
|
"eslint-plugin-standard": "^3.0.1",
|
|
"husky": "^1.0.0-rc.2",
|
|
"lint-staged": "^7.0.4",
|
|
"postcss-cli": "^5.0.0",
|
|
"postcss-sass": "^0.3.0",
|
|
"pre-commit": "^1.1.3",
|
|
"source-list-map": "^2.0.0",
|
|
"stylelint": "^9.2.0",
|
|
"stylelint-config-standard": "^18.2.0",
|
|
"uglify-js": "^3.3.22",
|
|
"webpack": "^4.6.0",
|
|
"webpack-cli": "^2.0.15",
|
|
"webpack-sources": "^1.1.0"
|
|
},
|
|
"scripts": {
|
|
"compress": "scripts/compress",
|
|
"copy-dist": "cp ./node_modules/mapbox-gl/dist/mapbox-gl.css ./public/assets/frontend/ && cp ./node_modules/alertify.js/dist/css/alertify.css ./public/assets/frontend/ && cp ./node_modules/normalize.css/normalize.css ./public/assets/frontend/ && cp ./node_modules/a11y.css/css/*.css ./public/assets/frontend/a11y.css/",
|
|
"lint:es6": "eslint resources/assets/es6/*.js",
|
|
"lint:sass": "stylelint --syntax=scss resources/assets/sass/**/*.scss",
|
|
"make": "npm run make:css && npm run make:js",
|
|
"make:css": "npm run lint:sass && npm run sass && npm run postcss",
|
|
"make:js": "npm run lint:es6 && npm run webpack && npm run uglifyjs",
|
|
"postcss": "postcss public/assets/css/app.css --use autoprefixer --autoprefixer.browsers \"> 5%\" --replace --map",
|
|
"sass": "sassc --style compressed --sourcemap resources/assets/sass/app.scss public/assets/css/app.css",
|
|
"uglifyjs": "scripts/uglifyjs",
|
|
"webpack": "webpack --progress --colors"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"./resources/assets/es6/*.js": [
|
|
"eslint --fix",
|
|
"git add"
|
|
],
|
|
"*.scss": [
|
|
"stylelint --syntax=scss --fix",
|
|
"git add"
|
|
]
|
|
}
|
|
}
|