updated buildspec
This commit is contained in:
@@ -10,8 +10,6 @@ phases:
|
|||||||
- yarn -v
|
- yarn -v
|
||||||
pre_build:
|
pre_build:
|
||||||
commands:
|
commands:
|
||||||
- echo "@sinossi:registry=https://git.sinossi.it/api/v4/projects/271/packages/npm/" > .npmrc
|
|
||||||
- echo "//git.sinossi.it/api/v4/projects/271/packages/npm/:_authToken=kdP6WxGtg71-MzJZDRe9" >> .npmrc
|
|
||||||
- yarn install
|
- yarn install
|
||||||
build:
|
build:
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
@@ -3,23 +3,11 @@ version: 0.2
|
|||||||
phases:
|
phases:
|
||||||
install:
|
install:
|
||||||
runtime-versions:
|
runtime-versions:
|
||||||
nodejs: 18
|
nodejs: 20
|
||||||
commands:
|
|
||||||
- npm install -g yarn
|
|
||||||
- echo yarn -v
|
|
||||||
- yarn -v
|
|
||||||
pre_build:
|
|
||||||
commands:
|
|
||||||
- echo "@sinossi:registry=https://git.sinossi.it/api/v4/projects/271/packages/npm/" > .npmrc
|
|
||||||
- echo "//git.sinossi.it/api/v4/projects/271/packages/npm/:_authToken=kdP6WxGtg71-MzJZDRe9" >> .npmrc
|
|
||||||
- yarn install
|
|
||||||
build:
|
build:
|
||||||
commands:
|
commands:
|
||||||
- yarn extract
|
- npm install && npm run build:staging
|
||||||
- yarn compile
|
|
||||||
- mkdir -pv public/loaded-files
|
|
||||||
- yarn build:staging
|
|
||||||
artifacts:
|
artifacts:
|
||||||
files:
|
files:
|
||||||
- '**/*'
|
- '**/*'
|
||||||
base-directory: 'build'
|
base-directory: 'build'
|
||||||
|
|||||||
@@ -7,12 +7,10 @@ import { I18nProvider } from '@wordpress/react-i18n';
|
|||||||
const i18n = createI18n({}, 'gepafin');
|
const i18n = createI18n({}, 'gepafin');
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
console.log('mount')
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch('/languages/en_US.json')
|
fetch('/languages/en_US.json')
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log('loaded')
|
|
||||||
setLocaleData(res.locale_data['gepafin'], 'gepafin')
|
setLocaleData(res.locale_data['gepafin'], 'gepafin')
|
||||||
})
|
})
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user