-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
38 lines (38 loc) · 3 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
{
"name": "wp-hotelier-hello-elementor",
"description": "WP Hotelier Integration For Hello Theme.",
"version": "1.1.0",
"homepage": "https://wphotelier.com/hello-elementor/",
"author": "Benito Lopez http://lopezb.com/",
"scripts": {
"run:sass": "node-sass --output .tmp assets/sass --output-style expanded",
"run:pot": "rm -rf dist; wp-pot --src '**/*.php' --dest-file languages/wp-hotelier-hello-elementor.pot --domain wp-hotelier-hello-elementor --package 'WP Hotelier - Hello Elementor' --bug-report https://github.com/wp-hotelier/wp-hotelier-hello-elementor --team 'WP Hotelier <support@wphotelier.com>' --write-file",
"run:sync": "rsync -azP -e \"ssh -p ${npm_config_p_sshport}\" --delete --exclude='package.json' --exclude='postcss.config.js' --exclude='.*/' --exclude='.*' --exclude='node_modules/' --exclude='dist/' --exclude='assets/sass/' . \"${npm_config_p_syncdest}\"",
"minify:js": "rm -f assets/js/frontend/*.min.js; for f in assets/js/frontend/*.js; do short=${f%.js}; uglifyjs $f > $short.min.js; done",
"run:js": "npm-run-all --silent --parallel minify:js",
"build:pot": "onchange '**/*.php' --await-write-finish 2000 -i -- npm run run:pot",
"build:js": "onchange 'assets/js/**/*.js' --await-write-finish 2000 -e 'assets/js/**/*.min.js' -e 'assets/js/lib' -i -- npm run run:js",
"build:css": "postcss --no-map -w .tmp/**/*.css --base .tmp -d assets/css",
"build:scss": "npm run run:sass && npm run run:sass -- -w",
"sync": "onchange '**/*' --await-write-finish 100 -e 'dist' -e 'assets/sass' -e '.git' -e 'languages' -e 'assets/js/*.min.js' -e '.tmp' -- npm run run:sync",
"server": "browser-sync start --proxy $npm_config_p_url --host $npm_config_p_url --reload-delay 200 --files 'assets/sass/**/*.scss'",
"zip": "rsync -azP -e --delete --exclude='package.json' --exclude='package-lock.json' --exclude='README.md' --exclude='postcss.config.js' --exclude='.*/' --exclude='.*' --exclude='node_modules/' --exclude='dist/' --exclude='assets/sass/' . dist/wp-hotelier-hello-elementor; cd dist; zip -r wp-hotelier-hello-elementor.$npm_package_version.zip wp-hotelier-hello-elementor; cd ..",
"build": "npm-run-all --silent --parallel build:*",
"build-sync": "npm-run-all --silent --parallel build:* sync",
"build-server": "npm-run-all --silent --parallel build:* server",
"build-sync-server": "npm-run-all --silent --parallel build:* sync server",
"dist": "rm -rf dist; mkdir -p dist/wp-hotelier-hello-elementor; npm run zip -s",
"deploy": "rsync -azP -e \"ssh -p ${npm_config_p_deployport}\" --delete --exclude='package.json' --exclude='package-lock.json' --exclude='README.md' --exclude='postcss.config.js' --exclude='.*/' --exclude='.*' --exclude='node_modules/' --exclude='dist/' --exclude='assets/sass/' . \"${npm_config_p_deploydest}\""
},
"devDependencies": {
"autoprefixer": "^10.4.4",
"browser-sync": "^2.27.9",
"css-mqpacker": "^7.0.0",
"node-sass": "^7.0.1",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"postcss-cli": "^9.1.0",
"uglify-js": "^3.15.3",
"wp-pot-cli": "^1.5.0"
}
}