4.2.4 • Published 5 years ago

generator-stereobase v4.2.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Logo

generator-stereobase NPM version

Generate a simple project (static or WordPress)

Installation

First if you don't have the rights on your /usr/local folder:

sudo chown -R $USER /usr/local

If you're on High Sierra use instead:

sudo chown -R $(whoami)

Then, install Yeoman and generator-stereobase using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-stereobase

Then, you need to create a new host in Mamp called yourProjectName.local, and start the servers.

After that you can generate your project:

yo stereobase

And finally launch the dev server:

npm run dev

When you need to build use:

npm run build

You'll have your files in the dest directory.

WordPress project installation

If you need to install a WordPress project, follow these steps before launching Yeoman.

Install wp-cli if you don't have it already (https://make.wordpress.org/cli/handbook/installing/):

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp

You can now launch Yeoman, and answer Y to the WordPress question. You need to have mysql server started to allow Yeoman to automatically create the database!

Finally, install TGMPA to manage plugins: http://tgmpluginactivation.com/installation/ : once you've downloaded the file, place it in a directory called "mu-plugins" in /wp-content, and decomment the code to handle plugins regsitration in functions.php.

Change configstore files owner

sudo chown -R userMachine /Users/userMachine/.config/configstore/

Installation of an existing WordPress project

First you need to install wp-cli as above.

After that, you can install npm modules:

cd project-name
npm i

Then you need to install the WordPress:

wp core download --locale=en_US
wp db create
wp core install --url=localhost --title=Stereosuper --admin_user=adminStereo --admin_password=azerty --admin_email=bisou@stereosuper.fr

Finally, launch the server:

npm run dev

You also probably will need to connect to the admin, and install required plugins. If TGMPA was installed, go directly to Appearance > Install plugins.

Thanks

License

MIT © Adrien Le Menthéour | Elisabeth Hamel | Clément Lemoine | Alban Mezino

4.2.4

5 years ago

4.2.3

5 years ago

4.2.2

5 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.1.3

6 years ago

4.1.2

6 years ago

4.1.1

6 years ago

4.1.0

6 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.8.0

7 years ago

2.7.0

8 years ago

2.5.1

8 years ago

2.5.0

8 years ago

2.4.1

8 years ago

2.4.0

8 years ago

2.3.1

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.3

9 years ago

1.4.2

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago