From acd7d616067ed45fd23e39a8d95314bf2d76f4f0 Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 19:30:21 +0200 Subject: [PATCH 01/10] Refactor UI --- example/component/body.css | 12 ++++++++---- example/component/nav.css | 14 +++++++------- src/cjss.js | 2 ++ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/example/component/body.css b/example/component/body.css index d2a7f14..fc867da 100644 --- a/example/component/body.css +++ b/example/component/body.css @@ -22,6 +22,10 @@ body { margin: 0 10%; background-image: linear-gradient( 70.6deg, rgba(172,30,255,1) 0.3%, rgba(65,35,251,1) 55.8%, rgba(35,251,224,1) 105.1% ); color: white; + display: flex; + align-items: center; + justify-content: center; + height: 100%; } html { @@ -39,9 +43,9 @@ body h3 { } .center { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); + /*! position: absolute; */ + /*! top: 50%; */ + /*! left: 50%; */ + /*! transform: translate(-50%, -50%); */ text-align: center; } \ No newline at end of file diff --git a/example/component/nav.css b/example/component/nav.css index 5bad47c..6ce4a44 100644 --- a/example/component/nav.css +++ b/example/component/nav.css @@ -1,7 +1,8 @@ nav { + display: flex; + justify-content: center; --data: json({ - "name": ["one", "two", "three"], - "link": [] /* This array is filled with content in --prepare */ + "name": ["one", "two", "three"] }); --prepare: js( @@ -20,13 +21,12 @@ nav { } nav .item { - cursor: pointer; - padding: 6px 8px; - margin: 0 5px; + padding: 0.3em 0.5em; + margin: 0 0.3em; color: white; text-decoration: none; - font-size: 21px; - border-radius: 3px; + font-size: 1.2em; + border-radius: 0.2em; box-shadow: 0 0 0 1px white; --script: js( diff --git a/src/cjss.js b/src/cjss.js index 2db1610..2b25f2d 100644 --- a/src/cjss.js +++ b/src/cjss.js @@ -8,6 +8,8 @@ import CJSSError from './CJSSError'; * Run one CJSS rule, handling the properties `--html`, `--js` and `--data`. * * @param {CSSRule} rule The rule to parse. + * @returns {CompiledRule[]} Zero or one compiled rule, depending on whethere any CJSS code is + * present. */ function processRule(rule) { const selector = rule.style.parentRule.selectorText; From cfbe6dab9c1f92e7d3470b7c33c20d7ea97c7b60 Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 20:15:36 +0200 Subject: [PATCH 02/10] Prepare for travis web deployment --- .eslintignore | 1 + .eslintrc => .eslintrc.json | 0 .travis.yml | 22 +-- demo/.gitignore | 1 + demo/Gemfile | 2 + demo/Gemfile.lock | 248 ++++++++++++++++++++++++++++ demo/component/body.css | 47 ++++++ {example => demo}/component/nav.css | 0 {example => demo}/index.html | 0 {example => demo}/style.css | 0 example/component/body.css | 4 - package.json | 4 +- rollup.config.js | 44 +++-- 13 files changed, 339 insertions(+), 34 deletions(-) create mode 100644 .eslintignore rename .eslintrc => .eslintrc.json (100%) create mode 100644 demo/.gitignore create mode 100644 demo/Gemfile create mode 100644 demo/Gemfile.lock create mode 100644 demo/component/body.css rename {example => demo}/component/nav.css (100%) rename {example => demo}/index.html (100%) rename {example => demo}/style.css (100%) diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..efd261b --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +demo \ No newline at end of file diff --git a/.eslintrc b/.eslintrc.json similarity index 100% rename from .eslintrc rename to .eslintrc.json diff --git a/.travis.yml b/.travis.yml index ad4d574..6531e33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,15 @@ language: node_js -node_js: - - '7' +node_js: node - after_success: +script: + - npm run eslint - npm run build -before_deploy: - - cd dist + deploy: - provider: npm - skip_cleanup: true - on: - branch: master - tags: true - repo: kargjonas/CJSS \ No newline at end of file + - provider: pages + skip_cleanup: true + github_token: $GH_KEY # Set in the settings page of your repository as a secure variable + keep_history: true + local_dir: ./demo + on: + branch: landing-screen \ No newline at end of file diff --git a/demo/.gitignore b/demo/.gitignore new file mode 100644 index 0000000..c08f9ad --- /dev/null +++ b/demo/.gitignore @@ -0,0 +1 @@ +_site \ No newline at end of file diff --git a/demo/Gemfile b/demo/Gemfile new file mode 100644 index 0000000..37f5eaa --- /dev/null +++ b/demo/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'github-pages', group: :jekyll_plugins diff --git a/demo/Gemfile.lock b/demo/Gemfile.lock new file mode 100644 index 0000000..00247e4 --- /dev/null +++ b/demo/Gemfile.lock @@ -0,0 +1,248 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (4.2.11.1) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.11.1) + colorator (1.1.0) + commonmarker (0.17.13) + ruby-enum (~> 0.5) + concurrent-ruby (1.1.5) + dnsruby (1.61.2) + addressable (~> 2.5) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + ethon (0.12.0) + ffi (>= 1.3.0) + eventmachine (1.2.7) + execjs (2.7.0) + faraday (0.15.4) + multipart-post (>= 1.2, < 3) + ffi (1.11.1) + forwardable-extended (2.6.0) + gemoji (3.0.1) + github-pages (198) + activesupport (= 4.2.11.1) + github-pages-health-check (= 1.16.1) + jekyll (= 3.8.5) + jekyll-avatar (= 0.6.0) + jekyll-coffeescript (= 1.1.1) + jekyll-commonmark-ghpages (= 0.1.5) + jekyll-default-layout (= 0.1.4) + jekyll-feed (= 0.11.0) + jekyll-gist (= 1.5.0) + jekyll-github-metadata (= 2.12.1) + jekyll-mentions (= 1.4.1) + jekyll-optional-front-matter (= 0.3.0) + jekyll-paginate (= 1.1.0) + jekyll-readme-index (= 0.2.0) + jekyll-redirect-from (= 0.14.0) + jekyll-relative-links (= 0.6.0) + jekyll-remote-theme (= 0.3.1) + jekyll-sass-converter (= 1.5.2) + jekyll-seo-tag (= 2.5.0) + jekyll-sitemap (= 1.2.0) + jekyll-swiss (= 0.4.0) + jekyll-theme-architect (= 0.1.1) + jekyll-theme-cayman (= 0.1.1) + jekyll-theme-dinky (= 0.1.1) + jekyll-theme-hacker (= 0.1.1) + jekyll-theme-leap-day (= 0.1.1) + jekyll-theme-merlot (= 0.1.1) + jekyll-theme-midnight (= 0.1.1) + jekyll-theme-minimal (= 0.1.1) + jekyll-theme-modernist (= 0.1.1) + jekyll-theme-primer (= 0.5.3) + jekyll-theme-slate (= 0.1.1) + jekyll-theme-tactile (= 0.1.1) + jekyll-theme-time-machine (= 0.1.1) + jekyll-titles-from-headings (= 0.5.1) + jemoji (= 0.10.2) + kramdown (= 1.17.0) + liquid (= 4.0.0) + listen (= 3.1.5) + mercenary (~> 0.3) + minima (= 2.5.0) + nokogiri (>= 1.8.5, < 2.0) + rouge (= 2.2.1) + terminal-table (~> 1.4) + github-pages-health-check (1.16.1) + addressable (~> 2.3) + dnsruby (~> 1.60) + octokit (~> 4.0) + public_suffix (~> 3.0) + typhoeus (~> 1.3) + html-pipeline (2.11.0) + activesupport (>= 2) + nokogiri (>= 1.4) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-avatar (0.6.0) + jekyll (~> 3.0) + jekyll-coffeescript (1.1.1) + coffee-script (~> 2.2) + coffee-script-source (~> 1.11.1) + jekyll-commonmark (1.3.1) + commonmarker (~> 0.14) + jekyll (>= 3.7, < 5.0) + jekyll-commonmark-ghpages (0.1.5) + commonmarker (~> 0.17.6) + jekyll-commonmark (~> 1) + rouge (~> 2) + jekyll-default-layout (0.1.4) + jekyll (~> 3.0) + jekyll-feed (0.11.0) + jekyll (~> 3.3) + jekyll-gist (1.5.0) + octokit (~> 4.2) + jekyll-github-metadata (2.12.1) + jekyll (~> 3.4) + octokit (~> 4.0, != 4.4.0) + jekyll-mentions (1.4.1) + html-pipeline (~> 2.3) + jekyll (~> 3.0) + jekyll-optional-front-matter (0.3.0) + jekyll (~> 3.0) + jekyll-paginate (1.1.0) + jekyll-readme-index (0.2.0) + jekyll (~> 3.0) + jekyll-redirect-from (0.14.0) + jekyll (~> 3.3) + jekyll-relative-links (0.6.0) + jekyll (~> 3.3) + jekyll-remote-theme (0.3.1) + jekyll (~> 3.5) + rubyzip (>= 1.2.1, < 3.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.5.0) + jekyll (~> 3.3) + jekyll-sitemap (1.2.0) + jekyll (~> 3.3) + jekyll-swiss (0.4.0) + jekyll-theme-architect (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-cayman (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-dinky (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-hacker (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-leap-day (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-merlot (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-midnight (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-minimal (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-modernist (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-primer (0.5.3) + jekyll (~> 3.5) + jekyll-github-metadata (~> 2.9) + jekyll-seo-tag (~> 2.0) + jekyll-theme-slate (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-tactile (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-time-machine (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-titles-from-headings (0.5.1) + jekyll (~> 3.3) + jekyll-watch (2.2.1) + listen (~> 3.0) + jemoji (0.10.2) + gemoji (~> 3.0) + html-pipeline (~> 2.2) + jekyll (~> 3.0) + kramdown (1.17.0) + liquid (4.0.0) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + mini_portile2 (2.4.0) + minima (2.5.0) + jekyll (~> 3.5) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + minitest (5.11.3) + multipart-post (2.1.1) + nokogiri (1.10.3) + mini_portile2 (~> 2.4.0) + octokit (4.14.0) + sawyer (~> 0.8.0, >= 0.5.3) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (3.1.0) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + rouge (2.2.1) + ruby-enum (0.7.2) + i18n + ruby_dep (1.5.0) + rubyzip (1.2.3) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + thread_safe (0.3.6) + typhoeus (1.3.1) + ethon (>= 0.9.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + unicode-display_width (1.6.0) + +PLATFORMS + ruby + +DEPENDENCIES + github-pages + +BUNDLED WITH + 2.0.1 diff --git a/demo/component/body.css b/demo/component/body.css new file mode 100644 index 0000000..ecbfa55 --- /dev/null +++ b/demo/component/body.css @@ -0,0 +1,47 @@ +@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap'); + +body { + /* Data */ + --data: js-expr({ + name: 'world', + }); + + /* Markup */ + --body: html( +
+

Hello ${data.name}!

+

This page was constructed entirely within CSS files. That includes all the data, markup, scripts, and also styles.

+ +

Click the items below to toggle.

+ +
+ ); + + /* Just some regular old CSS */ + font-family: Roboto, sans-serif; + margin: 0 10%; + background-image: linear-gradient( 70.6deg, rgba(172,30,255,1) 0.3%, rgba(65,35,251,1) 55.8%, rgba(35,251,224,1) 105.1% ); + color: white; + display: flex; + align-items: center; + justify-content: center; + height: 100%; +} + +html { + height: 100%; +} + +body h1 { + font-size: 50px; + margin: 0; +} + +body h3 { + opacity: 0.6; + margin: 30px 0 20px 0; +} + +.center { + text-align: center; +} \ No newline at end of file diff --git a/example/component/nav.css b/demo/component/nav.css similarity index 100% rename from example/component/nav.css rename to demo/component/nav.css diff --git a/example/index.html b/demo/index.html similarity index 100% rename from example/index.html rename to demo/index.html diff --git a/example/style.css b/demo/style.css similarity index 100% rename from example/style.css rename to demo/style.css diff --git a/example/component/body.css b/example/component/body.css index fc867da..ecbfa55 100644 --- a/example/component/body.css +++ b/example/component/body.css @@ -43,9 +43,5 @@ body h3 { } .center { - /*! position: absolute; */ - /*! top: 50%; */ - /*! left: 50%; */ - /*! transform: translate(-50%, -50%); */ text-align: center; } \ No newline at end of file diff --git a/package.json b/package.json index 690c366..5a3bd79 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "scripts": { "build": "rollup -c", "dev": "rollup -c -w", - "lint": "eslint src", + "eslint": "eslint src", + "install-jekyll": "cd demo && bundle install", + "jekyll": "cd demo && bundle exec jekyll serve", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { diff --git a/rollup.config.js b/rollup.config.js index e378456..b4cdefc 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,19 +1,27 @@ -import {terser} from 'rollup-plugin-terser'; +import { terser } from 'rollup-plugin-terser'; -export default { - input: './src/index.js', - plugins: [terser()], - output: [ - { - file: './dist/cjss.min.js', - format: 'iife', - name: 'cjss' - }, - { - file: './dist/cjss.js', - format: 'iife', - name: 'cjss', - sourcemap: 'inline' - } - ] -}; \ No newline at end of file +export default [ + { + input: './src/index.js', + plugins: [], + output: [ + { + file: './demo/dist/cjss.js', + format: 'iife', + name: 'cjss', + sourcemap: 'inline', + }, + ], + }, + { + input: './src/index.js', + plugins: [terser()], + output: [ + { + file: './demo/dist/cjss.min.js', + format: 'iife', + name: 'cjss', + }, + ], + }, +]; From 4f3e1f9e0982ffc7eb3a237aa24837fce5b4324b Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 20:32:17 +0200 Subject: [PATCH 03/10] Fix link to script --- demo/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/index.html b/demo/index.html index 4b24ed8..c3e5c4e 100644 --- a/demo/index.html +++ b/demo/index.html @@ -7,7 +7,7 @@ CJSS - + From be4fe98fbf0ae11b1091c06d9326ab66aa721029 Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 21:51:41 +0200 Subject: [PATCH 04/10] Add links to download the source --- demo/component/body.css | 4 +- demo/component/buttons.css | 14 +++++++ demo/component/{nav.css => click-demo.css} | 21 ++++------ demo/component/downloads.css | 35 ++++++++++++++++ demo/style.css | 3 +- example/component/body.css | 47 ---------------------- 6 files changed, 61 insertions(+), 63 deletions(-) create mode 100644 demo/component/buttons.css rename demo/component/{nav.css => click-demo.css} (61%) create mode 100644 demo/component/downloads.css delete mode 100644 example/component/body.css diff --git a/demo/component/body.css b/demo/component/body.css index ecbfa55..694ef1d 100644 --- a/demo/component/body.css +++ b/demo/component/body.css @@ -13,7 +13,9 @@ body {

This page was constructed entirely within CSS files. That includes all the data, markup, scripts, and also styles.

Click the items below to toggle.

- + +

Download CJSS for your own project (please don’t!)

+ ); diff --git a/demo/component/buttons.css b/demo/component/buttons.css new file mode 100644 index 0000000..bedb636 --- /dev/null +++ b/demo/component/buttons.css @@ -0,0 +1,14 @@ +.buttons { + display: flex; + justify-content: center; +} + +.buttons > * { + padding: 0.3em 0.5em; + margin: 0 0.3em; + color: white; + text-decoration: none; + font-size: 1.2em; + border-radius: 0.2em; + box-shadow: 0 0 0 1px white; +} \ No newline at end of file diff --git a/demo/component/nav.css b/demo/component/click-demo.css similarity index 61% rename from demo/component/nav.css rename to demo/component/click-demo.css index 6ce4a44..c5605e6 100644 --- a/demo/component/nav.css +++ b/demo/component/click-demo.css @@ -1,17 +1,18 @@ -nav { - display: flex; - justify-content: center; +@import url('buttons.css'); + +.click-demo { --data: json({ "name": ["one", "two", "three"] }); --prepare: js( + this.classList.add('buttons'); data.link = data.name.map((name, index) => (`#${name}-${index + 1}`)); ); --body: js-expr( [0, 1, 2].map(i => ` - ${data.name[i]} + ${data.name[i]} `).join('') ); @@ -20,15 +21,7 @@ nav { ); } -nav .item { - padding: 0.3em 0.5em; - margin: 0 0.3em; - color: white; - text-decoration: none; - font-size: 1.2em; - border-radius: 0.2em; - box-shadow: 0 0 0 1px white; - +.click-demo > * { --script: js( function toggle() { this.classList.toggle('active'); @@ -38,7 +31,7 @@ nav .item { ); } -nav .item.active { +.click-demo > .active { outline: none; text-shadow: 0 0 5px white; box-shadow: 0 0 5px white; diff --git a/demo/component/downloads.css b/demo/component/downloads.css new file mode 100644 index 0000000..b9cdb2c --- /dev/null +++ b/demo/component/downloads.css @@ -0,0 +1,35 @@ +@import url('buttons.css'); + +.downloads { + display: flex; + justify-content: center; + --data: js-expr( + JSON.parse(this.dataset.links) + ); + + --prepare: js( + this.classList.add('buttons'); + ); + + --body: js-expr( + data.map(({ title, name }) => ` + ${title} (${name}) + `).join('') + ); +} + +.downloads > * { + --script: js( + function toggle() { + this.classList.toggle('active'); + } + + this.addEventListener('click', toggle); + ); +} + +.downloads > :hover { + outline: none; + text-shadow: 0 0 5px white; + box-shadow: 0 0 5px white; +} \ No newline at end of file diff --git a/demo/style.css b/demo/style.css index 408c0e3..8d34468 100644 --- a/demo/style.css +++ b/demo/style.css @@ -1,5 +1,6 @@ @import url('component/body.css'); -@import url('component/nav.css'); +@import url('component/click-demo.css'); +@import url('component/downloads.css'); /* Run a global script */ script { diff --git a/example/component/body.css b/example/component/body.css deleted file mode 100644 index ecbfa55..0000000 --- a/example/component/body.css +++ /dev/null @@ -1,47 +0,0 @@ -@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap'); - -body { - /* Data */ - --data: js-expr({ - name: 'world', - }); - - /* Markup */ - --body: html( -
-

Hello ${data.name}!

-

This page was constructed entirely within CSS files. That includes all the data, markup, scripts, and also styles.

- -

Click the items below to toggle.

- -
- ); - - /* Just some regular old CSS */ - font-family: Roboto, sans-serif; - margin: 0 10%; - background-image: linear-gradient( 70.6deg, rgba(172,30,255,1) 0.3%, rgba(65,35,251,1) 55.8%, rgba(35,251,224,1) 105.1% ); - color: white; - display: flex; - align-items: center; - justify-content: center; - height: 100%; -} - -html { - height: 100%; -} - -body h1 { - font-size: 50px; - margin: 0; -} - -body h3 { - opacity: 0.6; - margin: 30px 0 20px 0; -} - -.center { - text-align: center; -} \ No newline at end of file From 392207cdb89e508ddcd1ec87bf743a40bafbd509 Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 21:52:02 +0200 Subject: [PATCH 05/10] Update travis to work on the master branch --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6531e33..4489341 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ deploy: keep_history: true local_dir: ./demo on: - branch: landing-screen \ No newline at end of file + branch: master \ No newline at end of file From be4b60352caaf7c844eb0abd9f117a181e31fd16 Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 22:11:12 +0200 Subject: [PATCH 06/10] Add demo website to the readme, and remove Jekyll --- README.md | 2 + demo/.gitignore | 1 - demo/Gemfile | 2 - demo/Gemfile.lock | 248 ---------------------------------------------- package.json | 2 - 5 files changed, 2 insertions(+), 253 deletions(-) delete mode 100644 demo/.gitignore delete mode 100644 demo/Gemfile delete mode 100644 demo/Gemfile.lock diff --git a/README.md b/README.md index 309254f..9ac2358 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ To install CJSS, add the [JavaScript](https://github.com/scottkellum/CJSS/blob/m Your editor probably has [a plugin](https://eslint.org/docs/user-guide/integrations) for automatically linting as you type. +The demo website can be built by leaving `npm run dev` running, and opening `demo/index.html` in your web browser. + ## Using CJSS First off, everything happens in your CSS file. You can layer this into your websites as you see fit. You can use this to layer on just a little bit more functionality in your CSS here and there or construct an entire page. It’s up to you! diff --git a/demo/.gitignore b/demo/.gitignore deleted file mode 100644 index c08f9ad..0000000 --- a/demo/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_site \ No newline at end of file diff --git a/demo/Gemfile b/demo/Gemfile deleted file mode 100644 index 37f5eaa..0000000 --- a/demo/Gemfile +++ /dev/null @@ -1,2 +0,0 @@ -source 'https://rubygems.org' -gem 'github-pages', group: :jekyll_plugins diff --git a/demo/Gemfile.lock b/demo/Gemfile.lock deleted file mode 100644 index 00247e4..0000000 --- a/demo/Gemfile.lock +++ /dev/null @@ -1,248 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - activesupport (4.2.11.1) - i18n (~> 0.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - addressable (2.6.0) - public_suffix (>= 2.0.2, < 4.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.11.1) - colorator (1.1.0) - commonmarker (0.17.13) - ruby-enum (~> 0.5) - concurrent-ruby (1.1.5) - dnsruby (1.61.2) - addressable (~> 2.5) - em-websocket (0.5.1) - eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) - ethon (0.12.0) - ffi (>= 1.3.0) - eventmachine (1.2.7) - execjs (2.7.0) - faraday (0.15.4) - multipart-post (>= 1.2, < 3) - ffi (1.11.1) - forwardable-extended (2.6.0) - gemoji (3.0.1) - github-pages (198) - activesupport (= 4.2.11.1) - github-pages-health-check (= 1.16.1) - jekyll (= 3.8.5) - jekyll-avatar (= 0.6.0) - jekyll-coffeescript (= 1.1.1) - jekyll-commonmark-ghpages (= 0.1.5) - jekyll-default-layout (= 0.1.4) - jekyll-feed (= 0.11.0) - jekyll-gist (= 1.5.0) - jekyll-github-metadata (= 2.12.1) - jekyll-mentions (= 1.4.1) - jekyll-optional-front-matter (= 0.3.0) - jekyll-paginate (= 1.1.0) - jekyll-readme-index (= 0.2.0) - jekyll-redirect-from (= 0.14.0) - jekyll-relative-links (= 0.6.0) - jekyll-remote-theme (= 0.3.1) - jekyll-sass-converter (= 1.5.2) - jekyll-seo-tag (= 2.5.0) - jekyll-sitemap (= 1.2.0) - jekyll-swiss (= 0.4.0) - jekyll-theme-architect (= 0.1.1) - jekyll-theme-cayman (= 0.1.1) - jekyll-theme-dinky (= 0.1.1) - jekyll-theme-hacker (= 0.1.1) - jekyll-theme-leap-day (= 0.1.1) - jekyll-theme-merlot (= 0.1.1) - jekyll-theme-midnight (= 0.1.1) - jekyll-theme-minimal (= 0.1.1) - jekyll-theme-modernist (= 0.1.1) - jekyll-theme-primer (= 0.5.3) - jekyll-theme-slate (= 0.1.1) - jekyll-theme-tactile (= 0.1.1) - jekyll-theme-time-machine (= 0.1.1) - jekyll-titles-from-headings (= 0.5.1) - jemoji (= 0.10.2) - kramdown (= 1.17.0) - liquid (= 4.0.0) - listen (= 3.1.5) - mercenary (~> 0.3) - minima (= 2.5.0) - nokogiri (>= 1.8.5, < 2.0) - rouge (= 2.2.1) - terminal-table (~> 1.4) - github-pages-health-check (1.16.1) - addressable (~> 2.3) - dnsruby (~> 1.60) - octokit (~> 4.0) - public_suffix (~> 3.0) - typhoeus (~> 1.3) - html-pipeline (2.11.0) - activesupport (>= 2) - nokogiri (>= 1.4) - http_parser.rb (0.6.0) - i18n (0.9.5) - concurrent-ruby (~> 1.0) - jekyll (3.8.5) - addressable (~> 2.4) - colorator (~> 1.0) - em-websocket (~> 0.5) - i18n (~> 0.7) - jekyll-sass-converter (~> 1.0) - jekyll-watch (~> 2.0) - kramdown (~> 1.14) - liquid (~> 4.0) - mercenary (~> 0.3.3) - pathutil (~> 0.9) - rouge (>= 1.7, < 4) - safe_yaml (~> 1.0) - jekyll-avatar (0.6.0) - jekyll (~> 3.0) - jekyll-coffeescript (1.1.1) - coffee-script (~> 2.2) - coffee-script-source (~> 1.11.1) - jekyll-commonmark (1.3.1) - commonmarker (~> 0.14) - jekyll (>= 3.7, < 5.0) - jekyll-commonmark-ghpages (0.1.5) - commonmarker (~> 0.17.6) - jekyll-commonmark (~> 1) - rouge (~> 2) - jekyll-default-layout (0.1.4) - jekyll (~> 3.0) - jekyll-feed (0.11.0) - jekyll (~> 3.3) - jekyll-gist (1.5.0) - octokit (~> 4.2) - jekyll-github-metadata (2.12.1) - jekyll (~> 3.4) - octokit (~> 4.0, != 4.4.0) - jekyll-mentions (1.4.1) - html-pipeline (~> 2.3) - jekyll (~> 3.0) - jekyll-optional-front-matter (0.3.0) - jekyll (~> 3.0) - jekyll-paginate (1.1.0) - jekyll-readme-index (0.2.0) - jekyll (~> 3.0) - jekyll-redirect-from (0.14.0) - jekyll (~> 3.3) - jekyll-relative-links (0.6.0) - jekyll (~> 3.3) - jekyll-remote-theme (0.3.1) - jekyll (~> 3.5) - rubyzip (>= 1.2.1, < 3.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) - jekyll-seo-tag (2.5.0) - jekyll (~> 3.3) - jekyll-sitemap (1.2.0) - jekyll (~> 3.3) - jekyll-swiss (0.4.0) - jekyll-theme-architect (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-cayman (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-dinky (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-hacker (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-leap-day (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-merlot (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-midnight (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-minimal (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-modernist (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-primer (0.5.3) - jekyll (~> 3.5) - jekyll-github-metadata (~> 2.9) - jekyll-seo-tag (~> 2.0) - jekyll-theme-slate (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-tactile (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-theme-time-machine (0.1.1) - jekyll (~> 3.5) - jekyll-seo-tag (~> 2.0) - jekyll-titles-from-headings (0.5.1) - jekyll (~> 3.3) - jekyll-watch (2.2.1) - listen (~> 3.0) - jemoji (0.10.2) - gemoji (~> 3.0) - html-pipeline (~> 2.2) - jekyll (~> 3.0) - kramdown (1.17.0) - liquid (4.0.0) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - mercenary (0.3.6) - mini_portile2 (2.4.0) - minima (2.5.0) - jekyll (~> 3.5) - jekyll-feed (~> 0.9) - jekyll-seo-tag (~> 2.1) - minitest (5.11.3) - multipart-post (2.1.1) - nokogiri (1.10.3) - mini_portile2 (~> 2.4.0) - octokit (4.14.0) - sawyer (~> 0.8.0, >= 0.5.3) - pathutil (0.16.2) - forwardable-extended (~> 2.6) - public_suffix (3.1.0) - rb-fsevent (0.10.3) - rb-inotify (0.10.0) - ffi (~> 1.0) - rouge (2.2.1) - ruby-enum (0.7.2) - i18n - ruby_dep (1.5.0) - rubyzip (1.2.3) - safe_yaml (1.0.5) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sawyer (0.8.2) - addressable (>= 2.3.5) - faraday (> 0.8, < 2.0) - terminal-table (1.8.0) - unicode-display_width (~> 1.1, >= 1.1.1) - thread_safe (0.3.6) - typhoeus (1.3.1) - ethon (>= 0.9.0) - tzinfo (1.2.5) - thread_safe (~> 0.1) - unicode-display_width (1.6.0) - -PLATFORMS - ruby - -DEPENDENCIES - github-pages - -BUNDLED WITH - 2.0.1 diff --git a/package.json b/package.json index 9be2084..0bbb503 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,6 @@ "dev": "rollup -c -w", "eslint": "eslint src", "tidy": "eslint --fix src", - "install-jekyll": "cd demo && bundle install", - "jekyll": "cd demo && bundle exec jekyll serve", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { From a5adb51a6051da890a6b8975b3004833c99aae70 Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 22:23:49 +0200 Subject: [PATCH 07/10] Keep committer name and email for web deployment --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index c81269d..65975dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ deploy: skip_cleanup: true github_token: $GH_KEY # Set in the settings page of your repository as a secure variable keep_history: true + committer_from_gh: true local_dir: ./demo on: branch: master From 55c163497007431ceb61e04d153a312418edbbc0 Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sat, 22 Jun 2019 23:08:14 +0200 Subject: [PATCH 08/10] Add link to GitHub --- demo/component/body.css | 66 +++++++++++++++++++++++++++++++++------ demo/media/github.png | Bin 0 -> 1193 bytes demo/media/github@2x.png | Bin 0 -> 5239 bytes demo/media/github@3x.png | Bin 0 -> 7674 bytes 4 files changed, 57 insertions(+), 9 deletions(-) create mode 100644 demo/media/github.png create mode 100644 demo/media/github@2x.png create mode 100644 demo/media/github@3x.png diff --git a/demo/component/body.css b/demo/component/body.css index 694ef1d..7cc3cdc 100644 --- a/demo/component/body.css +++ b/demo/component/body.css @@ -8,26 +8,74 @@ body { /* Markup */ --body: html( -
-

Hello ${data.name}!

-

This page was constructed entirely within CSS files. That includes all the data, markup, scripts, and also styles.

- -

Click the items below to toggle.

- -

Download CJSS for your own project (please don’t!)

- + + scottkellum/CJSS + + +
+
+

Hello ${data.name}!

+

This page was constructed entirely within CSS files. That includes all the data, markup, scripts, and also styles.

+ +

Click the items below to toggle.

+ +

Download CJSS for your own project (please don’t!)

+ +
); /* Just some regular old CSS */ font-family: Roboto, sans-serif; - margin: 0 10%; + margin: 0; background-image: linear-gradient( 70.6deg, rgba(172,30,255,1) 0.3%, rgba(65,35,251,1) 55.8%, rgba(35,251,224,1) 105.1% ); color: white; display: flex; align-items: center; justify-content: center; height: 100%; + flex-direction: column; + flex: 1; +} + +body > .github-link { + padding: 1rem; + align-self: flex-end; + text-decoration: none; + color: inherit; + font-size: 1.5em; + display: flex; + align-items: center; +} + +body > .github-link > span { + overflow: hidden; + margin-right: -5px; +} +body > .github-link > img { + position: relative; + z-index: 1; + width: 64px; +} + +body > .github-link > span > code { + padding: 1rem; + display: inline-block; + transition: transform 0.5s ease-out; +} + +body > .github-link:not(:hover) > span > code { + transform: translateX(100%); + transition-timing-function: ease-in; +} + +body > .spacer { + flex: 1; + display: flex; + align-items: center; } html { diff --git a/demo/media/github.png b/demo/media/github.png new file mode 100644 index 0000000000000000000000000000000000000000..6a5376a3f060987faaca883302b27fb8b0644b4f GIT binary patch literal 1193 zcmV;a1XlZrP)&kHm!sZ8zDq4gqT^byJ&|0+29(kd5YEqzK=Ah zy%0rxmlj6GqNTx|8->oJ?gbVO^}96O>26UMz>>JpnK3dRsJyJ&0>~JdoO2eygNhK9 z0CHnW7@YqM1vdX(1h6(n#si0!!=6-_;Tiuz+rJ?^^7Fa`bHn01Us ztKTc4<`OdGX|7eA`)bv>{dE74#nFAMs!BCHHKRHlQ}gHGs5nY3kLTLljd9ftTT?@b z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rP_ge^IHx% z1KDMj&54O@%Pb|G=0wBx9({wgVu3MCidj(@iUWNNe>24y;HD5+WR@b) z&bCE@vof7~64rS^ib%I6gSiXV$0>ur?ThBik|#YDHWJ^vT@7SWLT|eegMw-LT>=1#6= zO32x;Pea73s)S4!YSx$kX`rYOf0SpdIMPpob670CTtkj__9L>s(LYc?!nTb4!mycM zB-BekxANFP@*N!-GWYsdL-F@g@NExR0x%QG5oy~t=?@PvB?X(Yhp=SJ7Tcx^D^yT` zJ~1f9^UkrIXJe*gfEgjybqnsCzhxPz9+(fUW@ZDw?=x`y z-Rp9noU%_&Yx@^}@y|O^jK}4o;EWt}fQs|)V81{~_M2J6+CAweKG6#K0117O@!pL@lkC@JU?jF!1}%FJjU?W} Date: Sun, 23 Jun 2019 05:14:40 +0200 Subject: [PATCH 09/10] Fix typo in Rollup config following merge --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index ac2f5d7..a2c11bb 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -4,7 +4,7 @@ export default [ { input: './src/index.js', plugins: [], - output: [ + output: { file: './demo/dist/cjss.js', format: 'iife', name: 'cjss', From e22c9ff0a52fa0fdb1dd62fb56b9e5a405e8038c Mon Sep 17 00:00:00 2001 From: Charlie Harding Date: Sun, 23 Jun 2019 05:31:33 +0200 Subject: [PATCH 10/10] Add CNAME for js.org hosting --- demo/CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 demo/CNAME diff --git a/demo/CNAME b/demo/CNAME new file mode 100644 index 0000000..451c69e --- /dev/null +++ b/demo/CNAME @@ -0,0 +1 @@ +cjss.js.org