forked from merkle-open/generator-nitro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
177 lines (177 loc) · 6.55 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"name": "project-nitro",
"version": "0.0.0",
"description": "Nitro is a Node.js application for simple and complex frontend development with a tiny footprint. This app is based on generator-nitro 5.10.17",
"license": "UNLICENSED",
"private": true,
"author": "The Nitro Team",
"engines": {
"node": ">=10.15.0 <15",
"npm": ">=6.4.1 <7"
},
"scripts": {
"\n# PROJECT ------- ": "",
"clean": "npx --ignore-existing --quiet npm-run-all clean:*",
"clean:lock": "rimraf package-lock.json",
"clean:modules": "npx --ignore-existing --quiet rimraf node_modules",
"commit": "git-cz",
"nitro:pattern": "yo nitro:pattern",
"nitro:server": "npm run build && rimraf dist/ && yo nitro:server --folder=dist",
"nitro:update": "npm uninstall generator-nitro && npm install generator-nitro@latest --save-dev --save-exact && yo nitro",
"update-dependencies": "npm-check-updates -u -x husky",
"\n# MISC ------- ": "",
"postinstall": "npm rebuild node-sass && env-linter --hooksInstalled --saveExact --lts",
"\n# LINT/TEST ------- ": "",
"check-node-version": "check-node-version --print --package",
"cypress-test": "npm run build && cross-env PORT=8888 NITRO_MODE=test npm-run-all --parallel --race test:cypress:serve cypress-test:open",
"cypress-test:open": "cypress open --project ./tests/cypress/",
"lighthouse-test": "npm run build && cross-env PORT=8890 NITRO_MODE=test npm-run-all --parallel --race lighthouse-test:*",
"lighthouse-test:serve": "npm run prod:serve",
"lighthouse-test:run": "lighthouse http://localhost:8890/example-patterns --quiet --configPath=./tests/lighthouse/lighthouse.config.js --output-path=./public/reports/lighthouse/report.html --view",
"lint": "npm-run-all lint:*",
"lint:css": "stylelint src/**/*.*ss --allow-empty-input",
"lint:data": "nitro-app-validate-pattern-data",
"lint:html": "gulp lint-html",
"lint:js": "eslint ./src --ext .js",
"lint:license": "license-checker --production --summary --exclude \"Apache-2.0, BSD, ISC, LGPL, MIT, MPL\" --failOn \"AGPL; EPL; GPL\"",
"prettier": "prettier --write \"**/*.*(js|jsx|ts|tsx|json|md|mdx|graphql|gql|yml|yaml)\"",
"test": "npm-run-all test:*",
"test:lint": "npm run lint",
"test:cypress": "npm run build && cross-env PORT=8888 NITRO_MODE=test npm-run-all --parallel --race test:cypress:*",
"test:cypress:serve": "npm run prod:serve",
"test:cypress:test": "cypress run --project ./tests/cypress/",
"visual-approve": "backstop approve --config=tests/backstop/backstop.config.js --docker",
"visual-test": "npm run build && cross-env PORT=8889 npm-run-all --parallel --race visual-test:*",
"visual-test:serve": "npm run prod:serve",
"visual-test:test": "backstop test --config=tests/backstop/backstop.config.js --docker",
"\n# BUILD/RELEASE ------- ": "",
"build": "npm-run-all build:*",
"build:clean": "rimraf public/assets",
"build:assets": "gulp assets",
"build:webpack": "npm-run-all build:webpack:*",
"build:webpack:light": "cross-env THEME=light webpack --mode production --config config/webpack/webpack.config.prod.js",
"build:webpack:dark": "cross-env THEME=dark webpack --mode production --config config/webpack/webpack.config.prod.js",
"export": "npm run build && gulp export",
"\n# RUN ------- ": "",
"dashboard": "opener http://localhost:4444 && dash4",
"dev": "npm-run-all check-node-version --parallel --race dev:*",
"dev:serve": "cross-env NODE_ENV=development nitro-app-serve",
"dev:watch": "gulp develop",
"prod": "npm-run-all prod:*",
"prod:check": "npm run check-node-version",
"prod:build": "npm run build",
"prod:serve": "cross-env NODE_ENV=production nitro-app-serve",
"start": "npm run start:light",
"start:light": "cross-env THEME=light PORT=8081 PROXY=8082 npm run dev",
"start:dark": "cross-env THEME=dark PORT=8083 PROXY=8084 npm run dev",
"\n# DOCKER ------- ": "",
"docker:update": "docker-compose build",
"docker:start": "npm run docker:dev:start",
"docker:dev:start": "docker-compose -f docker-compose-dev.yml up",
"docker:dev:console": "docker exec -it project-nitro_server-dev bash",
"docker:prod": "docker-compose up"
},
"keywords": [
"frontend",
"app",
"nitro",
"component",
"pattern",
"modular"
],
"dependencies": {
"@gondel/core": "1.2.7",
"@gondel/plugin-hot": "1.2.7",
"@khanacademy/tota11y": "0.2.0",
"bootstrap": "5.1.3",
"core-js": "3.19.1",
"flatpickr": "4.6.9",
"handlebars": "4.7.7",
"jquery": "3.6.0",
"lazysizes": "5.3.2",
"lottie-web": "5.7.14",
"prevent-window-opener-attacks": "0.3.0",
"regenerator-runtime": "0.13.9",
"slick-carousel": "1.8.1",
"svg4everybody": "2.1.9"
},
"devDependencies": {
"@dash4/plugin-actions": "0.9.3",
"@dash4/plugin-npm-scripts": "0.9.3",
"@dash4/plugin-readme": "0.9.3",
"@dash4/plugin-terminal": "0.9.3",
"@dash4/server": "0.9.3",
"@namics/eslint-config": "9.1.1",
"@namics/prettier-config": "2.0.1",
"@namics/stylelint-config": "1.1.2",
"@namics/ts-config": "1.1.1",
"@nitro/app": "*",
"@nitro/exporter": "*",
"@nitro/gulp": "*",
"@nitro/webpack": "*",
"backstopjs": "5.4.4",
"check-node-version": "4.2.1",
"commitizen": "4.2.4",
"config": "3.3.6",
"cross-env": "7.0.3",
"cypress": "8.7.0",
"cz-conventional-changelog": "3.3.0",
"env-linter": "0.5.1",
"eslint": "7.32.0",
"eslint-plugin-import": "2.25.2",
"extend": "3.0.2",
"generator-nitro": "*",
"gulp": "4.0.2",
"husky": "4.3.8",
"license-checker": "25.0.1",
"lighthouse": "8.6.0",
"lint-staged": "10.5.4",
"node-sass": "5.0.0",
"npm-check-updates": "11.8.5",
"npm-run-all": "4.1.5",
"opener": "1.5.2",
"prettier": "2.4.1",
"rimraf": "3.0.2",
"stylelint": "13.13.1",
"webpack-cli": "4.9.1",
"yo": "3.1.1"
},
"browserslist": [
"> 0.2%",
"last 1 version",
"not dead"
],
"postcss": {},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{css,scss}": [
"stylelint --allow-empty-input"
],
"**/*.json": [
"prettier --write",
"npm run lint:data"
],
"src/**/*.{js,jsx}": [
"prettier --write",
"eslint"
],
"**/*.md": [
"prettier --write"
],
"**/*.yml": [
"prettier --write"
],
"package.json": [
"env-linter --saveExact --dependenciesExactVersion"
]
}
}