@cycjimmy/sass-lib 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,18 +1,16 @@
1
1
  # sass-lib
2
-
3
- [![NPM version][npm-image]][npm-url]
4
- [![npm download][download-image]][download-url]
2
+ [![libraries dependency status][libraries-status-image]][libraries-status-url]
3
+ [![libraries sourcerank][libraries-sourcerank-image]][libraries-sourcerank-url]
4
+ [![Release date][release-date-image]][release-url]
5
+ [![semantic-release][semantic-image]][semantic-url]
5
6
  [![npm license][license-image]][download-url]
6
7
 
7
- [npm-image]: https://img.shields.io/npm/v/@cycjimmy/sass-lib.svg?style=flat-square
8
- [npm-url]: https://npmjs.org/package/@cycjimmy/sass-lib
9
- [download-image]: https://img.shields.io/npm/dm/@cycjimmy/sass-lib.svg?style=flat-square
10
- [download-url]: https://npmjs.org/package/@cycjimmy/sass-lib
11
- [license-image]: https://img.shields.io/npm/l/@cycjimmy/sass-lib.svg?style=flat-square
12
-
13
8
  Personal collection of sass.
14
9
 
15
10
  ## Install
11
+ [![NPM version][npm-image]][npm-url]
12
+ [![npm download][download-image]][download-url]
13
+
16
14
  ```shell
17
15
  # via npm
18
16
  $ npm install @cycjimmy/sass-lib --save
@@ -25,3 +23,23 @@ $ yarn add @cycjimmy/sass-lib
25
23
  ```scss
26
24
  @import "~@cycjimmy/sass-lib";
27
25
  ```
26
+
27
+ <!-- Links: -->
28
+ [npm-image]: https://img.shields.io/npm/v/@cycjimmy/sass-lib
29
+ [npm-url]: https://npmjs.org/package/@cycjimmy/sass-lib
30
+
31
+ [download-image]: https://img.shields.io/npm/dt/@cycjimmy/sass-lib
32
+ [download-url]: https://npmjs.org/package/@cycjimmy/sass-lib
33
+
34
+ [libraries-status-image]: https://img.shields.io/librariesio/release/npm/@cycjimmy/sass-lib
35
+ [libraries-sourcerank-image]: https://img.shields.io/librariesio/sourcerank/npm/@cycjimmy/sass-lib
36
+ [libraries-status-url]: https://libraries.io/github/cycjimmy/sass-lib
37
+ [libraries-sourcerank-url]: https://libraries.io/npm/@cycjimmy%2Fsass-lib
38
+
39
+ [release-date-image]: https://img.shields.io/github/release-date/cycjimmy/sass-lib
40
+ [release-url]: https://github.com/cycjimmy/sass-lib/releases
41
+
42
+ [semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
43
+ [semantic-url]: https://github.com/semantic-release/semantic-release
44
+
45
+ [license-image]: https://img.shields.io/npm/l/@cycjimmy/sass-lib
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
  /**
10
- * calc vw
10
+ * designPx2VW
11
11
  * $designDrawingLength
12
12
  * $designDrawingWidth
13
13
  *
@@ -19,3 +19,24 @@
19
19
  @function designPx2VW($designDrawingLength:0, $designDrawingWidth:750) {
20
20
  @return strip-units($designDrawingLength) / strip-units($designDrawingWidth) * 100vw;
21
21
  }
22
+
23
+ /**
24
+ * designPx2Px
25
+ * $designDrawingLength
26
+ * $designDrawingWidth
27
+ *
28
+ * Usage:
29
+ * @function calcPX($designDrawingLength:0) {
30
+ * @return call(
31
+ * get_function("designPx2Px"),
32
+ * $designDrawingLength,
33
+ * $designDrawingWidth,
34
+ * $pcRootWidth,
35
+ * );
36
+ * }
37
+ */
38
+ @function designPx2Px($designDrawingLength:0, $designDrawingWidth:750, $pcRootWidth:500) {
39
+ @return round(strip-units($designDrawingLength)
40
+ / strip-units($designDrawingWidth)
41
+ * strip-units($pcRootWidth)) * 1px;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cycjimmy/sass-lib",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Personal collection of sass.",
5
5
  "main": "index.scss",
6
6
  "repository": {
@@ -17,16 +17,16 @@
17
17
  "url": "https://github.com/cycjimmy/sass-lib/issues"
18
18
  },
19
19
  "homepage": "https://github.com/cycjimmy/sass-lib#readme",
20
- "devDependencies": {
21
- "@cycjimmy/config-lib": "^1.1.1",
22
- "cz-conventional-changelog": "^3.0.2"
23
- },
20
+ "files": [
21
+ "/functions",
22
+ "/mixins",
23
+ "/placeholders",
24
+ "/reset"
25
+ ],
24
26
  "publishConfig": {
25
27
  "access": "public"
26
28
  },
27
- "config": {
28
- "commitizen": {
29
- "path": "./node_modules/cz-conventional-changelog"
30
- }
29
+ "devDependencies": {
30
+ "@cycjimmy/config-lib": "^2.0.0"
31
31
  }
32
32
  }
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
@@ -1,46 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- ## Our Standards
8
-
9
- Examples of behavior that contributes to creating a positive environment include:
10
-
11
- * Using welcoming and inclusive language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
- * Showing empathy towards other community members
16
-
17
- Examples of unacceptable behavior by participants include:
18
-
19
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
- * Trolling, insulting/derogatory comments, and personal or political attacks
21
- * Public or private harassment
22
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
- * Other conduct which could reasonably be considered inappropriate in a professional setting
24
-
25
- ## Our Responsibilities
26
-
27
- Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
-
29
- 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, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
-
31
- ## Scope
32
-
33
- This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
-
35
- ## Enforcement
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at cycjimmy@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
-
39
- Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
-
41
- ## Attribution
42
-
43
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
-
45
- [homepage]: http://contributor-covenant.org
46
- [version]: http://contributor-covenant.org/version/1/4/
package/docs/CHANGELOG.md DELETED
@@ -1,6 +0,0 @@
1
- # 1.0.0 (2019-10-21)
2
-
3
-
4
- ### Features
5
-
6
- * **release:** start to use semantic release ([6a8a747](https://github.com/cycjimmy/sass-lib/commit/6a8a747f28d993c326a7cf18d61d7c89cc0124aa))
package/release.config.js DELETED
@@ -1,3 +0,0 @@
1
- const makeCommonConfig = require('@cycjimmy/config-lib/semanticRelease/15.x/makeCommonConfig');
2
-
3
- module.exports = makeCommonConfig();