Browse Source

rename command

pull/4259/head
bakaneko 4 months ago
parent
commit
6f226ef542
4 changed files with 4 additions and 3 deletions
  1. 1
    1
      bin/update_locales_and_routes_js
  2. 1
    1
      build.sh
  3. 0
    0
      generate-localizations.js
  4. 2
    1
      package.json

+ 1
- 1
bin/update_locales_and_routes_js View File

@@ -7,6 +7,6 @@ cd "$(dirname "${0}")/.."
7 7
 
8 8
 php artisan laroute:generate
9 9
 
10
-yarn run extract-locales
10
+yarn run generate-localizations
11 11
 # triggers yarn rebuild
12 12
 touch resources/assets/coffee/main.coffee

+ 1
- 1
build.sh View File

@@ -44,5 +44,5 @@ php artisan laroute:generate
44 44
 
45 45
 command -v yarn || npm install -g yarn
46 46
 yarn
47
-yarn run extract-locales
47
+yarn run generate-localizations
48 48
 yarn run production

extract-locales.js → generate-localizations.js View File


+ 2
- 1
package.json View File

@@ -3,9 +3,10 @@
3 3
   "scripts": {
4 4
     "dev": "yarn run development",
5 5
     "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=webpack.config.js",
6
-    "extract-locales": "node extract-locales.js",
6
+    "generate-localizations": "node generate-localizations.js",
7 7
     "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=webpack.config.js",
8 8
     "lint": "tslint --fix -c tslint.json 'resources/assets/lib/**/*.ts' 'resources/assets/lib/**/*.tsx'",
9
+    "localize": "yarn run generate-localizations",
9 10
     "prod": "yarn run production",
10 11
     "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=webpack.config.js",
11 12
     "watch": "yarn run development --watch",

Loading…
Cancel
Save