aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 15:19:43 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 15:19:43 +0200
commit1840c2f7c91f5f89602a3683d85b0a9df1454855 (patch)
tree7efc223222e2d318abfaef0839a79e23be727cea /scripts
parent8635a2c70cc24a4c52558162ac058de95750271f (diff)
downloadPeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.gz
PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.zst
PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.zip
Update webpack stack
Diffstat (limited to 'scripts')
-rw-r--r--scripts/danger/clean/cleaner.ts (renamed from scripts/danger/clean/cleaner.js)12
-rwxr-xr-xscripts/danger/clean/dev.sh2
-rwxr-xr-xscripts/watch/client.sh2
3 files changed, 8 insertions, 8 deletions
diff --git a/scripts/danger/clean/cleaner.js b/scripts/danger/clean/cleaner.ts
index 1a1e3dee7..d1dba4650 100644
--- a/scripts/danger/clean/cleaner.js
+++ b/scripts/danger/clean/cleaner.ts
@@ -1,16 +1,16 @@
1const eachSeries = require('async/eachSeries') 1import * as eachSeries from 'async/eachSeries'
2const rimraf = require('rimraf') 2import * as rimraf from 'rimraf'
3 3
4const constants = require('../../../server/initializers/constants') 4import { CONFIG } from '../../../server/initializers/constants'
5const db = require('../../../server/initializers/database') 5import { database as db } from '../../../server/initializers/database'
6 6
7db.init(true, function () { 7db.init(true, function () {
8 db.sequelize.drop().asCallback(function (err) { 8 db.sequelize.drop().asCallback(function (err) {
9 if (err) throw err 9 if (err) throw err
10 10
11 console.info('Tables of %s deleted.', db.sequelize.config.database) 11 console.info('Tables of %s deleted.', CONFIG.DATABASE.DBNAME)
12 12
13 const STORAGE = constants.CONFIG.STORAGE 13 const STORAGE = CONFIG.STORAGE
14 eachSeries(Object.keys(STORAGE), function (storage, callbackEach) { 14 eachSeries(Object.keys(STORAGE), function (storage, callbackEach) {
15 const storageDir = STORAGE[storage] 15 const storageDir = STORAGE[storage]
16 16
diff --git a/scripts/danger/clean/dev.sh b/scripts/danger/clean/dev.sh
index f4a5d1e8a..270ca0a2e 100755
--- a/scripts/danger/clean/dev.sh
+++ b/scripts/danger/clean/dev.sh
@@ -4,5 +4,5 @@ read -p "This will remove all directories and SQL tables. Are you sure? (y/*) "
4echo 4echo
5 5
6if [[ "$REPLY" =~ ^[Yy]$ ]]; then 6if [[ "$REPLY" =~ ^[Yy]$ ]]; then
7 NODE_ENV=test node "./scripts/danger/clean/cleaner" 7 NODE_ENV=test npm run ts-node "./scripts/danger/clean/cleaner"
8fi 8fi
diff --git a/scripts/watch/client.sh b/scripts/watch/client.sh
index 3e4522547..c99ed14e6 100755
--- a/scripts/watch/client.sh
+++ b/scripts/watch/client.sh
@@ -2,4 +2,4 @@
2 2
3cd client || exit -1 3cd client || exit -1
4 4
5npm run webpack -- --config config/webpack.dev.js --progress --profile --colors --display-error-details --display-cached --watch 5npm run webpack-dev-server -- --config config/webpack.dev.js --progress --profile --colors --watch --content-base src/ --inline --hot