This project is open source and contributions are welcomed.
Before you begin, make sure that you have all of the projects (dev-)dependencies installed.
- From terminal, navigate to the project folder.
- Install dependencies with
yarn
in both the root project folder and in/demo/
folder.
- Start the demo environment with
yarn demo:dev
. The demo environment is made for testing purposes and is not showcased on the repo, it's like a sandbox for creating/experimenting withvue-papercss
. - Add the new component inside
/src/components/
. Make sure to export it correctly as it will automatically installs itself as a global Vue component. - Add the docs for the new component, see below on how to contribute on the docs.
The documentation is powered by vuepress, make sure to understand how it works before starting to work on the docs:
- All components related documentation is under
/docs/components/
. - Other pages such as
quick-start
andutilities
are in their own folders. /docs/.vuepress/
contains vuepress configuration and global components for the Vue instance of the docs.
You can start the docs dev-server with docs:dev
.
vue-papercss
build the content of /src
with rollup, rollup configuration is splitted into 4 files under /build
:
rollup.config.base.js
: shared rollup config.rollup.config.browser.js
: creates a.min.js
ready for browser usage without module-bundler.rollup.config.es.js
: creates a.esm.js
for module-bundlers that support ECMAScript Modules.rollup.config.umd.js
: creates a.umd.js
for module-bundlers that doesn't support ECMAScript Modules.
When working with the build scripts, you can use 2 commands:
yarn dev
which will watch/src
and compile it usingrollup.config.es.js
config.yarn build
which will build all variants based on/src
.