@andrewmatlock/indux
v0.2.1
Published
A modern, lightweight frontend framework with built-in components and utilities
Downloads
6
Maintainers
Readme
Indux Framework
A lightweight JavaScript framework for building interactive web applications.
Project Structure
indux-monorepo/ ├── packages/ # NPM packages │ ├── core/ # Core framework │ ├── styles/ # CSS utilities │ └── create-/ # Template generators ├── src/ # Source files │ └── scripts/ # Framework source ├── templates/ # Project templates └── package.json # Root configuration
Available Commands
Build Commands
Rollup all Indux plugins into indux.js (in the /development directory):
npx rollup -cClean all build artifacts:
npm run cleanBuild core framework:
npm run build:coreBuild style utilities:
npm run build:stylesBuild template packages:
npm run build:templatesBuild everything:
npm run buildTest Commands
Run all tests:
npm testPublishing
Build and publish latest packages to NPM:
npm run publish-packagesPackage Descriptions
- packages/core: Core framework functionality (indux.min.js)
- packages/styles: CSS utilities and baseline styles (baseline.css, elements.css, styles.css)
- packages/create-starter: Project generator for basic startertemplate
Using Templates
Create New Project
Using npx:
npx packages/create-starter my-appOr install globally:
npm install -g packages/create-starter
create-indux-starter my-appInstall/Update Specific Files
Install core framework:
npm install packages/coreThis creates scripts/indux.min.js. Add to your HTML:
<script src="scripts/indux.min.js"></script>Install/Update Styles Only
Install CSS files:
npm install packages/stylesThis creates or updates styles/baseline.css, elements.css, and styles.css. If updating, your old styles.css is backed up as styles.old.css since that's where your custom CSS should go. Add to your HTML:
<link rel="stylesheet" href="styles/styles.css">Force Update
If an update is not coming through, it may be due to npm caching on your system. Try running:
npm cache clean --force
npm install packages/core
npm install packages/styles