mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-31 01:29:53 +02:00
62 lines
2.2 KiB
JSON
62 lines
2.2 KiB
JSON
{
|
|
"name": "csslayout",
|
|
"scripts": {
|
|
"copy": "rimraf dist && mkdir dist && cpx 'public/**/*' dist",
|
|
"dev": "npm run copy && webpack --mode=development",
|
|
"dev-server": "npm run copy && NODE_ENV=development webpack serve",
|
|
"build": "npm run copy && webpack --mode=production && npm run export",
|
|
"export": "react-snap",
|
|
"deploy": "npm run build && netlify deploy --dir=dist --prod",
|
|
"analyse": "NODE_ENV=analyse webpack --config webpack.config.js -p",
|
|
"lint": "tslint -c tslint.json -o tslint.log 'client/**/*.{ts,tsx}'",
|
|
"screenshot": "rm -rf public/assets/patterns && mkdir public/assets/patterns && TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node bin/generateScreenshots.ts"
|
|
},
|
|
"dependencies": {
|
|
"@loadable/component": "^5.14.1",
|
|
"prismjs": "^1.23.0",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2",
|
|
"react-helmet": "^6.1.0",
|
|
"react-router-dom": "^5.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.13.13",
|
|
"@babel/preset-env": "^7.13.12",
|
|
"@babel/preset-react": "^7.13.13",
|
|
"@loadable/babel-plugin": "^5.13.2",
|
|
"@types/loadable__component": "^5.13.3",
|
|
"@types/prismjs": "^1.16.4",
|
|
"@types/react": "^17.0.3",
|
|
"@types/react-dom": "^17.0.3",
|
|
"@types/react-helmet": "^6.1.0",
|
|
"@types/react-router-dom": "^5.1.7",
|
|
"babel-loader": "^8.2.2",
|
|
"babel-plugin-prismjs": "^2.0.1",
|
|
"cpx2": "^3.0.0",
|
|
"css-loader": "^5.2.0",
|
|
"html-webpack-plugin": "^5.3.1",
|
|
"mini-css-extract-plugin": "^1.4.0",
|
|
"puppeteer": "^1.20.0",
|
|
"react-snap": "^1.23.0",
|
|
"rimraf": "^3.0.2",
|
|
"source-map-loader": "^2.0.1",
|
|
"style-loader": "^2.0.0",
|
|
"ts-loader": "^8.1.0",
|
|
"ts-node": "^9.1.1",
|
|
"tslint": "^6.1.3",
|
|
"tslint-react": "^5.0.0",
|
|
"typescript": "^4.2.3",
|
|
"webpack": "^5.28.0",
|
|
"webpack-bundle-analyzer": "^4.4.0",
|
|
"webpack-cli": "^4.6.0",
|
|
"webpack-dev-server": "^3.11.2"
|
|
},
|
|
"reactSnap": {
|
|
"source": "dist",
|
|
"minifyHtml": {
|
|
"collapseWhitespace": false,
|
|
"removeComments": false
|
|
}
|
|
}
|
|
}
|