Skip to content

Commit ba7e02c

Browse files
authored
Merge pull request element-hq#2528 from vector-im/dbkr/package_is_now_dist
Rename the package script/output dir to 'dist'
2 parents 5e84a6c + 622ab27 commit ba7e02c

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/build
22
/cert.pem
3+
/dist
34
/karma-reports
45
/key.pem
56
/lib

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ to build.
5454
&& npm install)`
5555
1. Configure the app by copying `config.sample.json` to `config.json` and
5656
modifying it (see below for details)
57-
1. `npm run package` to build a tarball to deploy. Untaring this file will give
57+
1. `npm run dist` to build a tarball to deploy. Untaring this file will give
5858
a version-specific directory containing all the files that need to go on your
5959
web server.
6060

61-
Note that `npm run package` is not supported on Windows, so Windows users can run `npm
61+
Note that `npm run dist` is not supported on Windows, so Windows users can run `npm
6262
run build`, which will build all the necessary files into the `vector`
6363
directory. The version of Vector will not appear in Settings without
64-
using the package script. You can then mount the vector directory on your
64+
using the dist script. You can then mount the vector directory on your
6565
webserver to actually serve up the app, which is entirely static content.
6666

6767
config.json

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
3434
"build": "node scripts/babelcheck.js && npm run build:emojione && npm run build:css && npm run build:bundle",
3535
"build:dev": "npm run build:emojione && npm run build:css && npm run build:bundle:dev",
36-
"package": "scripts/package.sh",
36+
"dist": "scripts/package.sh",
3737
"start:emojione": "cpx \"node_modules/emojione/assets/svg/*\" vector/emojione/svg/ -w",
3838
"start:js": "webpack -w --progress --no-cache-buster",
3939
"start:js:prod": "NODE_ENV=production webpack -w --progress --no-cache-buster",

scripts/package.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -e
55
version=`git describe --dirty --tags || echo unknown`
66

77
npm run build
8-
mkdir -p packages
8+
mkdir -p dist
99
cp -r vector vector-$version
1010
echo $version > vector-$version/version
11-
tar chvzf packages/vector-$version.tar.gz vector-$version
11+
tar chvzf dist/vector-$version.tar.gz vector-$version
1212
rm -r vector-$version
1313

1414
echo
15-
echo "Packaged packages/vector-$version.tar.gz"
15+
echo "Packaged dist/vector-$version.tar.gz"

0 commit comments

Comments
 (0)