This repository includes the initial project data for a new MODX project.
Make sure you have installed the latest version of node.js and npm and also of Gitify.
Start by cloning the repository to your local environment:
git clone git@github.com:chsmedien/MODXInit.git
Then navigate into the main folder of the repository and install node dependencies:
cd MODXinit
npm install
bower install
Afterwards you need to install MODX. Run the setup script.
When you finished the setup you should run Gitify install:package --all
from the command line. This will install all extra packages (NOTE: this does NOT include premium extras by modmore - those need to be manually installed with an api key).
To start developing you simply need to run
npm start
This will start live-reload and start watching the dev files.
npm start
– starts the development task (open:local
,live-reload
,serve
,watch
)npm run clean
– clears the dist/ directorynpm run lint
– runs jshint on all js files in sources/js/npm run build:js
– uses uglifyjs to process all js files,npm run lint
is automatically executed beforenpm run build:css
– uses node-sass to generate all css files, autoprefixer is automatically executed afterwardsnpm run build:svg
– generates a svg sprite from all svg files in sources/svgnpm run build
– runs build:js, build:css and build:svgnpm run watch
– starts watching all files in sources/ and executesnpm run build
after each changenpm run live-reload
– starts live-reload for the dist/ directory
This project uses
- libsass via node-sass
- autoprefixer
- uglifyjs and more (see package.json)
The project has been started by chsmedien. If you need help please contact us via chsmedien.com.