2.0.8 • Published 2 years ago

twk-boilerplate v2.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

twk-boilerplate

Front-end boilerplate for projects by The Web Kitchen.

Installation

Installs a global version of the npm package so you can use it anywhere

npm install twk-boilerplate -g

Usage

# navigate to the directory you want to install the boilerplate in, e.g:
cd /Applications/MAMP/htdocs/<project-name>/wp-content/themes/<theme-name>

# run the boilerplate command - npm packages will be automatically installed
create-twk-boilerplate

# run a script to start compiling
npm run dev

Scripts

# dev: watches files for changes, compiles SCSS and JS, and uploads all files
npm run dev

# prod: the same as dev but minifies the css & javascript and excludes source maps
npm run prod

Upload via FTP & SFTP

This boilerplate will work locally by default. To automatically upload files via FTP or SFTP, add the FTP or SFTP details to the javascript object in twk-boilerplate.config.js. All details must be entered correctly for it to work.

module.exports = {
    ftpDetails: {
        sftp: false,
        host: "HOST",
        port: 21,
        username: "USERNAME",
        password: "PASSWORD",
        remotePath: "REMOTE PATH"
    }
};

Note

FTP/SFTP details should only be changed when no script is running. Changing them whilst a script is running means you will have to exit the script (CTRL + C) and restart it.

Update

npm update twk-boilerplate -g

.gitignore

This boilerplate automatically creates a .gitignore file containing the following:

node_modules/

Note

Any existing .gitignore files in the directory will be replaced

Bugs/Feature Requests

Please add any bugs you find along with any new features you want to the page on Notion.

ask JJ for access to write if you don't have it.

2.0.7

2 years ago

2.0.8

2 years ago

2.0.6

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago