i2tic-monorepo
v0.0.1
Published
Monorepo for vue components
Downloads
1
Readme
Vue Component boilerplate project
- This boilerplate is intended to be used to bootstrap a new front-end component project.
Requirements
- Node version >= 6.2
How to start a new project
The main idea to start a new project is to download the boilerplate code and use it in the new project's repository.
Download the boilerplate as zip file
Extract the zip file
Create a new remote repository in Bitbucket (use the same name you used for the directory <NEW_PROJECT_FOLDER>). NOTE: it is strongly recommended to use a prefix in the name of private repositories to indicate they are private. In our case we use ms-
In the directory where you extracted the code, init the repository:
cd <your-directory>
git init
git remote add origin <repository-origin>
git add .
git commit
git push -u origin master
- Install dependencies
npm i
- Start the development. This will command will start the development server builds, automatic testing and linting.
npm start
- Open
http://localhost:8080/
in a browser.
How to use
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue boilerplate component</title>
<link rel="stylesheet" href="OUR_TRANSPILED_STYLES.css" />
</head>
<body>
<div id="hello-world-app"></div>
<script src="OUR_TRANSPILED_SCRIPT.js"></script>
</body>
</html>
import Render from 'ms-vue-boilerplate';
new Render({
elementToRender: '#hello-world-app',
});
Publish the release of a package
Release a new version of the package:
npm run release:patch
or
npm run release:minor
or
npm run release:major