Giter VIP home page Giter VIP logo

rasp's Introduction

rasp

Gitlab pages: https://formatz.gitlab.io/rasp

Requirements

Creating a new project

Replace rasp with the name of your project. (kebab-case)

git clone [email protected]:formatz/rasp.git rasp
cd rasp


# setup git
git add .
git commit -m ":tada:"
git remote add origin [email protected]:formatz/rasp.git
git push origin main

Install dependencies

yarn install

Development

# start development at http://localhost:3000
yarn dev
# check your formatting (prettier)
yarn format --check
# automatically format files (prettier)
yarn format --write
# check your js (eslint)
yarn lint
# check your css (stylelint)
yarn lintcss
# auto fix css if possible (stylelint)
yarn lintcss --fix

Preview build

# build production files for local preview
yarn preview

Build

# build production files
yarn build

Documentation

Anything in the public folder will be copied to the build folder.

Deployment

Gitlab pages (branch test)

When pushing/merging into test, the pipeline will build the project and deploy it to gitlab pages. The url will be https://formatz.gitlab.io/rasp.

Contao website (branch main)

When pushing/merging to main, this will automatically trigger a pipeline that should deploy the project to the contao assets.

Requirements:

  1. Have a main branch ready, protected.
  2. Have an empty contao website ready on infomaniak
  3. Create an SSH key pair (see Notion "Auto deploy gitlab -> infomaniak")
  4. Create a gitlab ssh user in infomaniak
  5. Add the following variables in Gitlab Settings > CI/CD > Variables
  • $DEPLOY_SSH_PRIVATE_KEY
  • $DEPLOY_SSH_USER
  • $DEPLOY_SSH_HOST
  • $DEPLOY_SSH_PATH

Symfony project

  • todo

Dependencies updates

Use npm-check-updates to automatically update dependencies.

npm install -g npm-check-updates

ncu # check for updates
ncu -u # update the whole package.json
ncu swiper # update a specific package
yarn install # after updating, install new dependencies

TODO

  • figure out why is photoswipe is creating file?

rasp's People

Contributors

azecko avatar iamyphar avatar pedrosilva2002 avatar

Stargazers

Nicolas Borboën avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.