|
19 | 19 | "main": "lib/index.js", |
20 | 20 | "browser": "lib/index.browser.js", |
21 | 21 | "scripts": { |
22 | | - "build": "gulp build", |
23 | | - "examples": "gulp examples", |
24 | | - "gh-deploy": "gulp build-gh-pages && bash ./gh-deploy.sh", |
25 | | - "prepublishOnly": "gulp build", |
26 | | - "test": "gulp test-script" |
| 22 | + "build-less": "lessc src/less/react-dual-listbox.less .css-compare/less.css", |
| 23 | + "build-script": "npm run build-script-node && npm run build-script-web", |
| 24 | + "build-script-node": "webpack --env=target=node", |
| 25 | + "build-script-web": "webpack --env=target=web", |
| 26 | + "build-sass": "sass src/scss/react-dual-listbox.scss lib/react-dual-listbox.css && cp lib/react-dual-listbox.css .css-compare/scss.css", |
| 27 | + "build-style": "npm run build-less && npm run build-sass && npm run build-style-autoprefix", |
| 28 | + "build-style-autoprefix": "postcss lib/react-dual-listbox.css --use autoprefixer --output lib/react-dual-listbox.css", |
| 29 | + "build": "npm run build-script && npm run build-style", |
| 30 | + "examples": "webpack serve --config=webpack.config.test.js", |
| 31 | + "gh-build": "webpack --config=webpack.config.test.js --mode=production", |
| 32 | + "gh-deploy": "npm run gh-build && bash ./gh-deploy.sh", |
| 33 | + "prepublishOnly": "npm run release", |
| 34 | + "release": "npm run test && npm run build && npm run test-style-equivalence", |
| 35 | + "test": "npm run test-script && npm run test-style", |
| 36 | + "test-script": "npm run test-script-format && npm run test-script-mocha", |
| 37 | + "test-script-format": "eslint src/**/*.{js,jsx} examples/src/**/*.{js,jsx} test/**/*.{js,jsx} *.{js,jsx}", |
| 38 | + "test-script-mocha": "cross-env NODE_PATH=./src mocha test/**/*.{js,jsx} --exit", |
| 39 | + "test-style": "stylelint src/scss/**/*.scss examples/src/scss/**/*.scss", |
| 40 | + "test-style-equivalence": "postcss .css-compare/less.css --output .css-compare/less.css && postcss .css-compare/scss.css --output .css-compare/scss.css && cmp .css-compare/less.css .css-compare/scss.css" |
27 | 41 | }, |
28 | 42 | "peerDependencies": { |
29 | 43 | "react": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" |
|
38 | 52 | "@testing-library/react": "^13.4.0", |
39 | 53 | "@testing-library/user-event": "^14.4.3", |
40 | 54 | "@types/react": "^18.0.18", |
| 55 | + "autoprefixer": "^10.4.13", |
41 | 56 | "babel-loader": "^9.0.0", |
42 | 57 | "browser-sync": "^2.18.6", |
43 | 58 | "chai": "^4.0.0", |
| 59 | + "cross-env": "^7.0.3", |
| 60 | + "css-loader": "^6.7.3", |
| 61 | + "cssnano": "^5.1.15", |
44 | 62 | "eslint": "^8.23.0", |
45 | 63 | "eslint-config-takiyon-react": "^3.0.0", |
46 | 64 | "eslint-import-resolver-webpack": "^0.13.0", |
|
49 | 67 | "eslint-plugin-react": "^7.10.0", |
50 | 68 | "eslint-plugin-react-hooks": "^4.2.0", |
51 | 69 | "global-jsdom": "^8.6.0", |
52 | | - "gulp": "^4.0.0", |
53 | | - "gulp-autoprefixer": "^8.0.0", |
54 | | - "gulp-clean-css": "^4.0.0", |
55 | | - "gulp-dart-sass": "^1.0.2", |
56 | | - "gulp-eslint-new": "^1.6.0", |
57 | | - "gulp-exec": "^5.0.0", |
58 | | - "gulp-header": "^2.0.5", |
59 | | - "gulp-less": "^5.0.0", |
60 | | - "gulp-mocha": "^8.0.0", |
61 | | - "gulp-stylelint": "^13.0.0", |
| 70 | + "html-webpack-plugin": "^5.5.0", |
62 | 71 | "jsdom": "^21.0.0", |
| 72 | + "less": "^4.1.3", |
| 73 | + "mini-css-extract-plugin": "^2.7.2", |
63 | 74 | "mocha": "^10.0.0", |
| 75 | + "postcss": "^8.4.21", |
| 76 | + "postcss-cli": "^10.1.0", |
64 | 77 | "react": "^18.2.0", |
65 | 78 | "react-dom": "^18.2.0", |
66 | | - "sass": "^1.28.0", |
| 79 | + "sass": "^1.58.2", |
| 80 | + "sass-loader": "^13.2.0", |
67 | 81 | "stylelint": "^15.1.0", |
68 | 82 | "stylelint-config-takiyon": "^2.0.4", |
69 | 83 | "webpack": "^5.3.2", |
| 84 | + "webpack-cli": "^5.0.1", |
| 85 | + "webpack-dev-server": "^4.11.1", |
| 86 | + "webpack-remove-empty-scripts": "^1.0.1", |
70 | 87 | "webpack-stream": "^7.0.0" |
71 | 88 | }, |
72 | 89 | "dependencies": { |
|
0 commit comments