Skip to content

Commit

Permalink
version 0.2.0-alpha4
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszPilch committed Dec 11, 2020
1 parent 66d86f5 commit 8b3d8d1
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 14 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ CLIENT_SECRET
CLIENT_ID
NODE_ENV
LOCALE_PASS
APP_TITLE
```

## Link

```
node .\scripts\prelink.js
yarn link @bheui\components
```

## Created from BHE be v1
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
localeSubpaths,
apiUrl: process.env.API_URL,
copyright: process.env.COPYRIGHT,
appTitle: process.env.APP_TITLE || 'DevX BE',
},
serverRuntimeConfig: {
clientSecret: process.env.CLIENT_SECRET,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bhe-be-ui-v2",
"version": "0.2.0-alpha3",
"version": "0.2.0-alpha4",
"private": true,
"scripts": {
"dev": "node server.js",
Expand All @@ -18,8 +18,8 @@
}
},
"dependencies": {
"@bheui/components": "1.0.0-alpha12",
"@bheui/server-functions": "^0.1.2",
"@bheui/components": "1.0.0-alpha13",
"@bheui/server-functions": "^0.1.3",
"@fluentui/react": "^7.153.3",
"@uifabric/experiments": "^7.36.19",
"@uifabric/fluent-theme": "^7.3.47",
Expand Down
6 changes: 5 additions & 1 deletion pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Head from 'next/head'
import App from 'next/app'
import { Provider } from 'react-redux'
import { initializeIcons } from '@uifabric/icons'
import getConfig from 'next/config'

import withReduxAndAxios from '@bheui/components/lib/components/WithReduxAndAxios'

import '../src/styles/main.scss'
Expand All @@ -16,6 +18,8 @@ import createApis from '../src/store/createApis'
type AppTypes = {}

initializeIcons()

const { publicRuntimeConfig } = getConfig()
class MyApp extends App<AppTypes> {
componentDidCatch(error, info) {
console.error(error)
Expand All @@ -28,7 +32,7 @@ class MyApp extends App<AppTypes> {
return (
<>
<Head>
<title>DevX NextJS starterpack</title>
<title>{publicRuntimeConfig.appTitle}</title>
</Head>
<Provider store={store}>
<Component {...pageProps} router={router} setToken={setToken} t={t} />
Expand Down
6 changes: 6 additions & 0 deletions scripts/postlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ const runCommand = (cmd) => {
runCommand('cd node_modules/react & yarn unlink')
runCommand('cd node_modules/react-redux & yarn unlink')
runCommand('cd node_modules/next & yarn unlink')
runCommand('cd node_modules/@fluentui/react & yarn unlink')
runCommand('cd node_modules/@uifabric/experiments & yarn unlink')
runCommand('cd node_modules/office-ui-fabric-core & yarn unlink')
runCommand('cd node_modules/office-ui-fabric-react & yarn unlink')
runCommand('cd node_modules/react & yarn unlink')
runCommand('cd node_modules/react-dom & yarn unlink')
6 changes: 6 additions & 0 deletions scripts/prelink.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ const runCommand = (cmd) => {
runCommand('cd node_modules/react & yarn link')
runCommand('cd node_modules/react-redux & yarn link')
runCommand('cd node_modules/next & yarn link')
runCommand('cd node_modules/@fluentui/react & yarn link')
runCommand('cd node_modules/@uifabric/experiments & yarn link')
runCommand('cd node_modules/office-ui-fabric-core & yarn link')
runCommand('cd node_modules/office-ui-fabric-react & yarn link')
runCommand('cd node_modules/react & yarn link')
runCommand('cd node_modules/react-dom & yarn link')
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const renderPageOrContinue = (req, res, nextCl) => {
return app.render(req, res, req.path, query)
}

app.prepare().then(() => {
processLocale()
app.prepare().then(async () => {
await processLocale()

const server = express()
server.use(`/static`, express.static('public'))
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,10 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@bheui/components@1.0.0-alpha12":
version "1.0.0-alpha12"
resolved "https://registry.yarnpkg.com/@bheui/components/-/components-1.0.0-alpha12.tgz#5778267bf121f5072194b23aaf2a21ce144a7de9"
integrity sha512-k9d6FzgVjnB6WlKBDGXWXMIhiSP7gwvVO8TlDui51SeIHRaNA7aXzh4CDCGhxzIOKYiZuEaTnNizcqoHCMC/fg==
"@bheui/components@1.0.0-alpha13":
version "1.0.0-alpha13"
resolved "https://registry.yarnpkg.com/@bheui/components/-/components-1.0.0-alpha13.tgz#22bcd80513be7d89b7541c10c6332dc902d001f7"
integrity sha512-fv29yr5Fm52OszkqjbXZxTtPBD7Peaj53vTUHKvC+eMQykz3IbU785ellUaml7asUHDX1G80BUpFMIAscI/7cw==
dependencies:
"@uppy/core" "^1.14.0"
"@uppy/react" "^1.10.10"
Expand All @@ -489,10 +489,10 @@
typescript "^4.0.5"
uuid "^8.3.1"

"@bheui/server-functions@^0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@bheui/server-functions/-/server-functions-0.1.2.tgz#739d7c36ad0450b1daea3390df3af38b9ef9fb51"
integrity sha512-4fi9G3xI7jvPOCf2/G9luOgHDMyHU63+hAu10/1AMoR2pJp1AzwqaUVqESqcT63MIsxldYM05dbA6oK5lkdi0g==
"@bheui/server-functions@^0.1.3":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@bheui/server-functions/-/server-functions-0.1.3.tgz#d7b0b9e2a703c978dc78043c2cee5fbae1f28a79"
integrity sha512-8m5NE9PcuL3PUGiw5EZF2vd6VGnfKK1VmCY1vjQ/lrsCMtNH1a9lesxyapaGTuFf9NDci3HCq4RtKEUwAaaKTg==
dependencies:
ramda "^0.27.1"
typescript "^4.1.2"
Expand Down

0 comments on commit 8b3d8d1

Please sign in to comment.