igniteui-theming 1.0.0-alpha

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.
@@ -0,0 +1,39 @@
1
+ name: Npm.js deploy
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-node@v2
13
+ with:
14
+ node-version: 16
15
+ cache: 'npm'
16
+ registry-url: 'https://registry.npmjs.org'
17
+
18
+ - run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
19
+ - run: echo ${VERSION}
20
+
21
+ - name: Install dependencies
22
+ run: npm ci
23
+
24
+ - name: Test package
25
+ run: npm test
26
+
27
+ - name: Define NPM tag
28
+ run: |
29
+ if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
30
+ echo ${NPM_TAG}
31
+ - name: Create package version
32
+ run: npm version ${VERSION} --no-git-tag-version --save --allow-same-version
33
+ working-directory: ./
34
+
35
+ - name: Publish igniteui-theming
36
+ run: npm publish --tag ${NPM_TAG}
37
+ working-directory: ./
38
+ env:
39
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/_index.scss ADDED
@@ -0,0 +1,2 @@
1
+ @forward './sass/functions';
2
+ @forward './sass/mixins';
package/index.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "igniteui-theming",
3
+ "version": "1.0.0-alpha",
4
+ "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "jest"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/IgniteUI/igniteui-theming.git"
12
+ },
13
+ "keywords": [
14
+ "sass",
15
+ "Ignite",
16
+ "UI",
17
+ "theming",
18
+ "palettes",
19
+ "elevations",
20
+ "typography"
21
+ ],
22
+ "author": "Infragistics",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/IgniteUI/igniteui-theming/issues"
26
+ },
27
+ "homepage": "https://github.com/IgniteUI/igniteui-theming#readme",
28
+ "exports": {
29
+ ".": {
30
+ "sass": "./_index.scss"
31
+ },
32
+ "./functions": {
33
+ "sass": "./sass/_functions.scss"
34
+ }
35
+ },
36
+ "devDependencies": {
37
+ "jest": "^28.1.1",
38
+ "sass-true": "^6.1.0"
39
+ },
40
+ "peerDependencies": {
41
+ "sass": "^1.52.3"
42
+ }
43
+ }
@@ -0,0 +1,3 @@
1
+ @function sum($a, $b) {
2
+ @return $a + $b;
3
+ }
@@ -0,0 +1,4 @@
1
+ @mixin test() {
2
+ color: red;
3
+ content: 'I come in peace.';
4
+ }
@@ -0,0 +1,8 @@
1
+ @use '../node_modules/sass-true/' as *;
2
+
3
+ @include describe('Zip [function]') {
4
+ @include it('Zips multiple lists into a single multi-dimensional list') {
5
+ // Assert the expected results
6
+ @include assert-equal(zip(a b c, 1 2 3), (a 1, b 2, c 3));
7
+ }
8
+ }
package/tests/test.js ADDED
@@ -0,0 +1,5 @@
1
+ const path = require('path');
2
+ const sassTrue = require('sass-true');
3
+
4
+ const sassFile = path.join(__dirname, '_index.scss');
5
+ sassTrue.runSass({ file: sassFile }, { describe, it });