|
23 | 23 | "!IBM-Plex-Sans-JP/fonts/hinted/**/woff"
|
24 | 24 | ],
|
25 | 25 | "scripts": {
|
26 |
| - "clean": "rimraf css scss", |
27 |
| - "build": "yarn run clean && yarn run build:scss && yarn run build:css", |
| 26 | + "clean": "rimraf css scss deploy-preview", |
| 27 | + "build": "yarn clean && yarn build:scss && yarn build:css && yarn build:deploy-preview", |
28 | 28 | "build:zip": "yarn build && node ./scripts/prepare-zip.js && sh scripts/zip.sh",
|
29 | 29 | "build:css": "node ./scripts/compile-css.js",
|
30 | 30 | "build:scss": "node ./scripts/generate-scss.js",
|
31 |
| - "test": "parcel serve ./test/index.html", |
| 31 | + "build:deploy-preview": "gulp build:deploy-preview", |
| 32 | + "test": "parcel serve ./deploy-preview/index.html", |
32 | 33 | "precommit": "lint-staged",
|
33 | 34 | "prettier": "prettier --write \"**/*.{scss}\"",
|
34 |
| - "prepare": "yarn build" |
| 35 | + "prepare": "husky install && yarn build", |
| 36 | + "test:e2e:local": "start-server-and-test 'http-server -c-1 deploy-preview --silent' 8080 'percy exec --config cypress/.percy.json -- cypress run --config-file cypress/cypress.json'", |
| 37 | + "test:e2e:local:no-percy": "start-server-and-test 'http-server -c-1 deploy-preview --silent' 8080 'cypress run --config-file cypress/cypress.json'" |
35 | 38 | },
|
36 | 39 | "devDependencies": {
|
| 40 | + "@commitlint/cli": "^17.0.1", |
| 41 | + "@commitlint/config-conventional": "^17.0.0", |
37 | 42 | "@parcel/optimizer-cssnano": "2.0.0-nightly.611",
|
38 | 43 | "@parcel/optimizer-htmlnano": "2.0.0-nightly.611",
|
39 | 44 | "@parcel/packager-css": "2.0.0-nightly.611",
|
|
42 | 47 | "@parcel/transformer-html": "2.0.0-nightly.611",
|
43 | 48 | "@parcel/transformer-postcss": "2.0.0-nightly.611",
|
44 | 49 | "@parcel/transformer-posthtml": "2.0.0-nightly.611",
|
| 50 | + "@percy/cli": "^1.2.1", |
| 51 | + "@percy/cypress": "^3.1.1", |
45 | 52 | "archiver": "^3.0.0",
|
| 53 | + "cypress": "^9.7.0", |
| 54 | + "del": "^6.1.1", |
46 | 55 | "fs-extra": "^7.0.0",
|
47 |
| - "husky": "^0.14.3", |
48 |
| - "lint-staged": "^4.3.0", |
| 56 | + "gulp": "^4.0.2", |
| 57 | + "http-server": "^14.1.0", |
| 58 | + "husky": "^7.0.4", |
| 59 | + "lint-staged": "^12.4.2", |
49 | 60 | "parcel": "^2.0.0-beta.1",
|
50 | 61 | "postcss": "^8.2.1",
|
51 | 62 | "prettier": "^1.7.4",
|
52 | 63 | "rimraf": "^2.6.2",
|
53 |
| - "sass": "^1.51.0" |
| 64 | + "sass": "^1.51.0", |
| 65 | + "start-server-and-test": "^1.14.0" |
54 | 66 | },
|
55 | 67 | "prettier": {
|
56 | 68 | "printWidth": 80,
|
|
0 commit comments