@aptuitiv/website-build-tools

1.14.0 • Public • Published

Aptuitiv website build tools

Build tools to help with building and deploying websites at Aptuitiv.

Install

npm i - D @aptuitiv/website-build-tools

Usage

There are two ways to call the build tools.

The first, and recommended way is to call this from the scripts section of your package.json file.

"scripts": {
    "start": "npm run watch",
    "pull-templates": "aptuitiv-build pull-templates",
    "push-templates": "aptuitiv-build push-templates",
    "watch": "aptuitiv-build watch"
}

See the Package.json page for a full list of recommended scripts.

The other way is using the command line.

aptuitiv-build pull-template

Expected project structure

These build tools expect the following project structure:

  • build - The folder that the CSS, Javscript, templates and other assets are built to. The contents of this folder are uploaded to the website via FTP.
  • src - The source folder for the CSS, Javascript, template, and other assets.
    • config The folder holding the theme configuration files
    • css The CSS files for the project.
    • fonts Any self-hosted fonts needed for the project.
    • icons Any SVG icons to complile into a sprite.
    • js Any Javascript files for the project.
    • templates The Twig template files.
  • .aptuitiv-buildrc.js - The configuration file for the build tools.
  • .env - The environment file that holds the FTP credentials.

You can configure different paths for your assets in the configuration file, but we recommend keeping this structure for consistency between projects.

While not required for the build tools, is recommended that you also have the following configuration files in the root of your project.

  • .editorconfig
  • .gitignore
  • .prettierignore
  • .prettierrc.cjs

More information

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.14.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.14.00
1.13.20
1.13.11
1.13.01
1.12.01
1.11.01
1.10.02
1.9.01
1.8.01
1.7.00
1.6.01
1.5.11
1.5.00
1.4.11
1.3.20
1.3.11
1.3.00
1.2.00
1.1.01
1.0.00

Package Sidebar

Install

npm i @aptuitiv/website-build-tools

Weekly Downloads

13

Version

1.14.0

License

Apache-2.0

Unpacked Size

232 kB

Total Files

55

Last publish

Collaborators

  • erictompkins