0.11.0 ā¢ Published 3 years ago
@cremalab/scripts-web v0.11.0
Scripts š
Packages containing config, scripts, and dependencies for Crema apps.
š§° Tools Used
- lerna A tool for managing JavaScript projects with multiple packages.
- ESLint for code linting
- Jest for unit tests
- Prettier for code formatting (via ESLint plugin)
- TypeScript for Static Typing in JavaScript (Learn)
š Setup
- Install Node/NPM
- Install NVM (Node Version Manager)
nvm install 'lts/*' && nvm use
npm i
(install project dependencies)- Install the ESLint plugin for
your editorVS Code - Enable "Auto-Fix on Save" in
settings.json
:
{
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
]
}
š Run
Run the following scripts with npm run <SCRIPT_HERE>
:
TBD
These scripts are located in
package.json
and do not represent the entirety of available scripts, but are the most commonly used.
š Structure
.
āāā README.md
āāā consumers
āĀ Ā āāā app-web
āāā lerna.json
āāā package-lock.json
āāā package.json
āāā packages
āāā scripts
āĀ Ā āāā configs
āĀ Ā āāā package.json
āāā scripts-mobile
āĀ Ā āāā configs
āĀ Ā āāā package.json
āāā scripts-web
āāā configs
āāā package.json
š¦ Distribution
TBD