q2-tecton-theme 1.12.0-alpha.0 → 1.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q2-tecton-theme",
3
- "version": "1.12.0-alpha.0",
3
+ "version": "1.13.0",
4
4
  "description": "Default theme for tecton",
5
5
  "main": "./dist/q2-tecton-theme.css",
6
6
  "publishConfig": {
@@ -8,15 +8,18 @@
8
8
  "access": "public"
9
9
  },
10
10
  "scripts": {
11
- "build": "cp -r ./src/ ./dist",
12
- "build:dev": "yarn build",
13
- "build:local": "parcel -p 2020 src/q2-tecton-theme.css",
14
- "build:prod": "cp -r ./src/ ./dist"
11
+ "build": "npm run clean && rollup --config rollup.config.js",
12
+ "build:dev": "npm run build",
13
+ "build:local": "npm run clean && rollup --config rollup.config.js -w",
14
+ "build:prod": "npm run build",
15
+ "clean": "rm -rf ./dist"
15
16
  },
16
17
  "author": "Q2 Tecton Team",
17
18
  "license": "ISC",
18
19
  "dependencies": {
19
- "parcel": "next"
20
+ "rollup": "^2.74.1",
21
+ "rollup-plugin-scss": "^3.0.0",
22
+ "rollup-plugin-serve": "^1.1.0"
20
23
  },
21
- "gitHead": "53a294a7c6d99627238ca4be9d2a21a0bc027b10"
24
+ "gitHead": "bf740931d97f900acd7e110602f11d77742201e9"
22
25
  }
@@ -0,0 +1,21 @@
1
+ import scss from "rollup-plugin-scss";
2
+ import serve from "rollup-plugin-serve";
3
+
4
+ const isWatching = process.env.ROLLUP_WATCH;
5
+ export default {
6
+ input: "src/index.js",
7
+ output: {
8
+ dir: "dist"
9
+ },
10
+ plugins: [
11
+ scss({
12
+ output: "dist/q2-tecton-theme.css",
13
+ outputStyle: "compressed"
14
+ }),
15
+ isWatching &&
16
+ serve({
17
+ port: 2020,
18
+ contentBase: "dist"
19
+ })
20
+ ]
21
+ };
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import "./q2-tecton-theme.scss"
2
+ console.warn("This file is only meant for compilation do not use it directly")