Skip to content

Commit

Permalink
UI-458: Added style package to packages (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosarabi authored Sep 5, 2024
1 parent 32c2a89 commit b9c6f58
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 0 deletions.
100 changes: 100 additions & 0 deletions packages/styles/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions packages/styles/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "@youcan/styles",
"version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"keywords": [],
"scripts": {
"build:scss": "sass src/scss:src/css src/scss/components:src/css --no-source-map",
"build": "pnpm build:scss && postcss 'src/css/*.css' --dir dist/",
"watch": "sass --watch src/scss:src/css src/scss/components:src/css --no-source-map",
"ship": "pnpm build && bumpp package.json --commit \"[chore]: Release v\" --push --tag && pnpm publish --access public"
},
"dependencies": {
"cssnano": "^7.0.5",
"postcss-cli": "^11.0.0",
"postcss-prefixer": "^3.0.0"
},
"devDependencies": {
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"sass": "1.54.8"
}
}
10 changes: 10 additions & 0 deletions packages/styles/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
plugins: [
require('autoprefixer'),
require('cssnano')({
preset: 'default',
}),

require('postcss-prefixer')({ prefix: 'yc-' }),
],
};
Empty file.
1 change: 1 addition & 0 deletions packages/styles/src/scss/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'components/buttons';

0 comments on commit b9c6f58

Please sign in to comment.