-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from vinaysharma14/development
Development
- Loading branch information
Showing
8 changed files
with
63 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,38 @@ | ||
# Road Map :construction: | ||
|
||
It's great to see you interested in what **Rapid React** holds for the future! You are always welcome for your inputs on the road map. Below is the curated list of upcoming changes lined up: | ||
It's great to see you interested in what **Rapid React** holds for the future! You are always welcome to pitch in your ideas on the road map. Below is the curated list of upcoming changes lined up: | ||
|
||
### New Features | ||
## New Features | ||
|
||
- There would be a dedicated prompt to choose from and scaffold commonly used design libraries: | ||
- A dedicated setup to choose from and setup popular design libraries: | ||
|
||
- [Reactstrap](https://reactstrap.github.io/) | ||
- [React Bootstrap](https://react-bootstrap.github.io/) | ||
- [Ant Design](https://ant.design/) | ||
- [Styled Components](https://styled-components.com/) | ||
- [Material UI](https://material-ui.com/) | ||
- [Tailwind CSS](https://tailwindcss.com/) | ||
- [Chakra UI](https://chakra-ui.com/) | ||
|
||
### Minor changes: | ||
- Support for Internationalization with | ||
|
||
- Invalid names would be logged if entered for any of these: `Route`, `Folder`, `Reducer`, `MobX Store`, `Dependency`, `Dev Dependency`, etc. | ||
- [React Intl](https://formatjs.io/docs/react-intl/) | ||
- [React i8n Next](https://react.i18next.com/) | ||
|
||
- Setting up [Husky Git Hooks](https://typicode.github.io/husky/#/) with [Lint Staged](https://www.npmjs.com/package/lint-staged). | ||
|
||
- Setting up [ESLint](https://eslint.org/) with commonly used configs and plugins such as: | ||
|
||
- [eslint-config-airbnb-typescript](https://www.npmjs.com/package/eslint-config-airbnb-typescript) | ||
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import) | ||
- [eslint-plugin-jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y) | ||
- [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) | ||
- [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks) | ||
|
||
- Setting up [code splitting](https://reactjs.org/docs/code-splitting.html) with Lazy Loading and suspense. | ||
|
||
- Support for [dockerizing](https://www.docker.com/) the app. | ||
|
||
### Minor changes | ||
|
||
- Logging invalid names entered for any of these: `Route`, `Folder`, `Reducer`, `MobX Store`, `Dependency`, `Dev Dependency`, etc. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
import os from 'os'; | ||
import { exec } from 'child_process'; | ||
|
||
const player = require('play-sound')(); | ||
const asyncExec = require('util').promisify(exec); | ||
|
||
export const notify = async() => { | ||
const assetPath = __dirname.replace('scripts', 'assets/notification.mp3'); | ||
|
||
if (os.platform() === 'win32') { | ||
// handle audio playback on windows machine explicitly | ||
// code reference has been taken from https://github.com/nomadhoc/sound-play | ||
|
||
const command = 'powershell -c'; | ||
const playAudio = '$player.Play();'; | ||
const setVolume = '$player.Volume = 1;'; | ||
const loadAudioFile = `$player.open('${assetPath}');`; | ||
const addPresentationCore = 'Add-Type -AssemblyName presentationCore;'; | ||
const createMediaPlayer = '$player = New-Object system.windows.media.mediaplayer;'; | ||
const stopAudio = 'Start-Sleep 1; Start-Sleep -s $player.NaturalDuration.TimeSpan.TotalSeconds;Exit;'; | ||
|
||
export const notify = () => { | ||
player.play(`${__dirname.replace('scripts', 'assets/notification.mp3')}`, function(error: string) { | ||
error && console.error(error); | ||
}); | ||
await asyncExec( `${command} ${addPresentationCore} ${createMediaPlayer} ${loadAudioFile} ${setVolume} ${playAudio} ${stopAudio}`); | ||
} else { | ||
player.play(assetPath, function(error: string) { | ||
error && console.error(error); | ||
}); | ||
} | ||
}; |