🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@aptuitiv/website-build-tools

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptuitiv/website-build-tools

Build tools to help with building and deploying websites at Aptuitiv

Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

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"
}

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

FAQs

Package last updated on 04 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts