Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 26c4a7c

Browse files
committed
wip
0 parents  commit 26c4a7c

22 files changed

+8188
-0
lines changed

.github/CONDUCT.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
* The use of sexualized language or imagery
10+
* Personal attacks
11+
* Trolling or insulting/derogatory comments
12+
* Public or private harassment
13+
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
14+
* Other unethical or unprofessional conduct.
15+
16+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17+
18+
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.
19+
20+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21+
22+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

.github/CONTRIBUTING.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be **credited**.
4+
5+
We accept contributions via Pull Requests on [Github](https://github.com/znck/rollup-plugin-vue).
6+
7+
## Pull Requests
8+
9+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
10+
- **Document any change in behavior** - Make sure the `README.md` and any other relevant documentation is kept up-to-date.
11+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
12+
- **Create feature branches** - Don't ask us to pull from your master branch.
13+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
14+
- **Send coherent history** - Make sure each commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing.
15+
- **Tip** to pass lint tests easier use the `npm run lint:fix` command.
16+
17+
**Happy coding**!

.github/ISSUE_TEMPLATE.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
USE https://new-issue.vuejs.org/?repo=vuejs/rollup-plugin-vue

.github/PULL_REQUEST_TEMPLATE.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Fixes #.
2+
3+
Changes proposed in this pull request:
4+
-
5+
-
6+
-
7+
8+
/ping @znck

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.log
2+
.DS_Store
3+
node_modules
4+
dist

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/test/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Rahul Kadyan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# TSDX Bootstrap
2+
3+
This project was bootstrapped with [TSDX](https://github.com/jaredpalmer/tsdx).
4+
5+
## Local Development
6+
7+
Below is a list of commands you will probably find useful.
8+
9+
### `npm start` or `yarn start`
10+
11+
Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for your convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.
12+
13+
<img src="https://user-images.githubusercontent.com/4060187/52168303-574d3a00-26f6-11e9-9f3b-71dbec9ebfcb.gif" width="600" />
14+
15+
Your library will be rebuilt if you make edits.
16+
17+
### `npm run build` or `yarn build`
18+
19+
Bundles the package to the `dist` folder.
20+
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
21+
22+
<img src="https://user-images.githubusercontent.com/4060187/52168322-a98e5b00-26f6-11e9-8cf6-222d716b75ef.gif" width="600" />
23+
24+
### `npm test` or `yarn test`
25+
26+
Runs the test watcher (Jest) in an interactive mode.
27+
By default, runs tests related to files changed since the last commit.

examples/css-modules/package.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"private": true,
3+
"dependencies": {
4+
"rollup-plugin-postcss": "^2.0.4"
5+
},
6+
"scripts": {
7+
"build": "rollup -c"
8+
}
9+
}

examples/css-modules/rollup.config.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import vue from '../../dist/rollup-plugin-vue.esm'
2+
import postcss from 'rollup-plugin-postcss'
3+
4+
export default [
5+
{
6+
input: 'src/App.vue',
7+
output: {
8+
file: 'dist/app.js',
9+
format: 'esm',
10+
sourcemap: true,
11+
},
12+
plugins: [
13+
vue(),
14+
postcss({
15+
modules: {
16+
generateScopedName: '[local]___[hash:base64:5]',
17+
},
18+
include: /&module=.*\.css$/,
19+
}),
20+
postcss({ include: /(?<!&module=.*)\.css$/ }),
21+
],
22+
external: ['vue'],
23+
},
24+
]

examples/css-modules/src/App.vue

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script>
2+
export default {
3+
name: 'App',
4+
}
5+
</script>
6+
7+
<template>
8+
<div :class="$style.red">
9+
Hello <span class="green">World</span>!
10+
</div>
11+
</template>
12+
13+
<style module>
14+
.red {
15+
color: red;
16+
}
17+
</style>
18+
19+
<style scoped>
20+
.green {
21+
color: red;
22+
}
23+
</style>

0 commit comments

Comments
 (0)