mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-08 17:12:25 +05:30
Rename ./dist to ./build
This commit is contained in:
parent
03e26209f4
commit
4d8704f17c
@ -1,2 +1,2 @@
|
|||||||
dist
|
build
|
||||||
node_modules
|
node_modules
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
dist
|
build
|
||||||
dll
|
dll
|
||||||
node_modules
|
node_modules
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
node_modules
|
node_modules
|
||||||
/dist
|
/build
|
||||||
/dll
|
/dll
|
||||||
config/*
|
config/*
|
||||||
!config/template.*
|
!config/template.*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
dist
|
build
|
||||||
dll
|
dll
|
||||||
*.jpg
|
*.jpg
|
||||||
*.png
|
*.png
|
||||||
|
20
.travis.yml
20
.travis.yml
@ -28,24 +28,24 @@ before_deploy:
|
|||||||
- chmod 600 /tmp/deploy_rsa
|
- chmod 600 /tmp/deploy_rsa
|
||||||
- ssh-add /tmp/deploy_rsa
|
- ssh-add /tmp/deploy_rsa
|
||||||
# Removing unneeded files
|
# Removing unneeded files
|
||||||
- rm -rf dist/messages
|
- rm -rf build/messages
|
||||||
- rm -rf dist/*.css.map
|
- rm -rf build/*.css.map
|
||||||
# Move all source maps to it's own directory
|
# Move all source maps to it's own directory
|
||||||
- mkdir -p source-maps
|
- mkdir -p source-maps
|
||||||
- mv dist/*.js.map source-maps/ 2>/dev/null; true
|
- mv build/*.js.map source-maps/ 2>/dev/null; true
|
||||||
- cp dist/*.js source-maps/
|
- cp build/*.js source-maps/
|
||||||
# Creating tar.gz and zip archives
|
# Creating tar.gz and zip archives
|
||||||
- cd dist
|
- cd build
|
||||||
- tar -zcf ../dist.tar.gz --exclude="*.map" *
|
- tar -zcf ../build.tar.gz --exclude="*.map" *
|
||||||
- zip -rq ../dist.zip * -x "*.map"
|
- zip -rq ../build.zip * -x "*.map"
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
api_key: "$GITHUB_TOKEN"
|
api_key: "$GITHUB_TOKEN"
|
||||||
file:
|
file:
|
||||||
- dist.tar.gz
|
- build.tar.gz
|
||||||
- dist.zip
|
- build.zip
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
draft: true
|
draft: true
|
||||||
on:
|
on:
|
||||||
@ -53,7 +53,7 @@ deploy:
|
|||||||
|
|
||||||
# - provider: script
|
# - provider: script
|
||||||
# skip_cleanup: true
|
# skip_cleanup: true
|
||||||
# script: echo "put -r $TRAVIS_BUILD_DIR/dist/* accounts-frontend/" | sftp deploy@account.ely.by
|
# script: echo "put -r $TRAVIS_BUILD_DIR/build/* accounts-frontend/" | sftp deploy@account.ely.by
|
||||||
# on:
|
# on:
|
||||||
# branch: master
|
# branch: master
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ module.exports = {
|
|||||||
corejs: 3,
|
corejs: 3,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
['react-intl', { messagesDir: './dist/messages/' }],
|
['react-intl', { messagesDir: './build/messages/' }],
|
||||||
],
|
],
|
||||||
env: {
|
env: {
|
||||||
webpack: {
|
webpack: {
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "yarn run clean && yarn run build:dll && webpack-dev-server --colors",
|
"start": "yarn run clean && yarn run build:dll && webpack-dev-server --colors",
|
||||||
"clean": "rm -rf ./dist && mkdir ./dist",
|
"clean": "rm -rf ./build && mkdir ./build",
|
||||||
"e2e": "yarn --cwd ./tests-e2e test",
|
"e2e": "yarn --cwd ./tests-e2e test",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "yarn test --watch",
|
"test:watch": "yarn test --watch",
|
||||||
@ -43,7 +43,7 @@
|
|||||||
"build:webpack": "NODE_ENV=production webpack --colors -p --bail",
|
"build:webpack": "NODE_ENV=production webpack --colors -p --bail",
|
||||||
"build:quiet": "yarn run clean && yarn run build:webpack --quiet",
|
"build:quiet": "yarn run clean && yarn run build:webpack --quiet",
|
||||||
"build:dll": "node ./packages/scripts/build-dll.js",
|
"build:dll": "node ./packages/scripts/build-dll.js",
|
||||||
"build:serve": "http-server --proxy https://dev.account.ely.by ./dist",
|
"build:serve": "http-server --proxy https://dev.account.ely.by ./build",
|
||||||
"sb": "start-storybook -p 9009 --ci",
|
"sb": "start-storybook -p 9009 --ci",
|
||||||
"build-storybook": "build-storybook"
|
"build-storybook": "build-storybook"
|
||||||
},
|
},
|
||||||
|
@ -7,7 +7,7 @@ import chalk from 'chalk';
|
|||||||
import prompt from 'prompt';
|
import prompt from 'prompt';
|
||||||
import localesMap from 'app/i18n';
|
import localesMap from 'app/i18n';
|
||||||
|
|
||||||
const MESSAGES_PATTERN = `${__dirname}/../../dist/messages/**/*.json`;
|
const MESSAGES_PATTERN = `${__dirname}/../../build/messages/**/*.json`;
|
||||||
const LANG_DIR = `${__dirname}/../app/i18n`;
|
const LANG_DIR = `${__dirname}/../app/i18n`;
|
||||||
const DEFAULT_LOCALE = 'en';
|
const DEFAULT_LOCALE = 'en';
|
||||||
const SUPPORTED_LANGS = [DEFAULT_LOCALE, ...Object.keys(localesMap)];
|
const SUPPORTED_LANGS = [DEFAULT_LOCALE, ...Object.keys(localesMap)];
|
||||||
|
@ -19,7 +19,7 @@ const config = require('./config');
|
|||||||
const SUPPORTED_LANGUAGES = Object.keys(require('app/i18n'));
|
const SUPPORTED_LANGUAGES = Object.keys(require('app/i18n'));
|
||||||
const localeFlags = require('app/components/i18n/localeFlags').default;
|
const localeFlags = require('app/components/i18n/localeFlags').default;
|
||||||
const rootPath = path.resolve('./packages');
|
const rootPath = path.resolve('./packages');
|
||||||
const outputPath = path.join(__dirname, 'dist');
|
const outputPath = path.join(__dirname, 'build');
|
||||||
|
|
||||||
const isProduction = process.env.NODE_ENV === 'production';
|
const isProduction = process.env.NODE_ENV === 'production';
|
||||||
const isAnalyze = process.argv.some(arg => arg === '--analyze');
|
const isAnalyze = process.argv.some(arg => arg === '--analyze');
|
||||||
|
Loading…
Reference in New Issue
Block a user