Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit bd1cc89

Browse files
authored
Merge pull request #133 from geotrev/develop
Release: 4.5.0
2 parents dc5c10d + ef02290 commit bd1cc89

40 files changed

+69
-3038
lines changed

.circleci/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@ version: 2
88
jobs:
99
build:
1010
docker:
11-
- image: circleci/node:9.8.0
11+
- image: circleci/node:10.16.0
1212

1313
working_directory: ~/undernet
14-
1514
steps:
1615
- checkout
1716
- restore_cache:
1817
keys:
1918
- v1-dependencies-{{ checksum "package.json" }}
2019
- v1-dependencies-
2120

22-
- run: npm install
21+
- run: yarn install && yarn js:build
2322
- save_cache:
2423
paths:
2524
- node_modules
2625
key: v1-dependencies-{{ checksum "package.json" }}
2726

28-
- run: npm test
27+
- run: yarn test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
yarn-error.log*
33
npm-error.log*
44

5+
/js/esm/
6+
/js/cjs/
57
/build/
68
/node_modules/
79

.npmignore

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
.DS_store
2+
yarn-error.log*
23
npm-error.log*
34

4-
/.circleci/
55
/.sass-cache/
6+
/.circleci/
7+
/app/
8+
/bin/
69
/build/
710
/config/
8-
/dist/undernet.css.zip
9-
/dist/undernet.js.zip
10-
/dist/undernet.modules.js.zip
11-
/dist/undernet.scss.zip
12-
/docs/
11+
/js/test/
12+
/dist/*.zip
13+
/node_modules/
1314
/public/
14-
/src/
1515

16-
.sass-cache
16+
.browserslistrc
17+
.eslintignore
18+
.eslintrc.js
1719
.prettierrc
1820
babel.config.js
1921
netlify.toml

ROADMAP.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/components/SideNav/__snapshots__/SideNav.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ exports[`<SideNav /> matches snapshot 1`] = `
124124
className="version-text has-no-padding has-gray800-text xsmall-12 columns"
125125
>
126126
Version
127-
4.4.1
127+
4.5.0
128128
</p>
129129
<div
130130
className="accordion-row"

app/docs/download.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ The quickest way to use Undernet is to link the bundled js and minified css usin
77
```html
88
<link
99
rel="stylesheet"
10-
href="https://cdn.jsdelivr.net/npm/undernet@4.4.1/dist/undernet.min.css"
11-
integrity="sha256-KAkOhhbOk89pSIdeP0FSuYDVBy6vldISb+BKlNr+wbs="
10+
href="https://cdn.jsdelivr.net/npm/undernet@4.5.0/dist/undernet.min.css"
11+
integrity="sha256-lpQ4AF+Mzlonw6AIGEURg3/TuNGRwNqzoL2KHub8YEU="
1212
crossorigin="anonymous"
1313
/>
1414
```
1515

1616
```html
1717
<script
1818
type="text/javascript"
19-
src="https://cdn.jsdelivr.net/npm/undernet@4.4.1/dist/undernet.bundle.min.js"
20-
integrity="sha256-bsY+VnWNN4w3Up6W+HKi4nyIovEO9CW+zkrlW4JwD2g="
19+
src="https://cdn.jsdelivr.net/npm/undernet@4.5.0/dist/undernet.bundle.min.js"
20+
integrity="sha256-8CZr3jilCWu7b4gpoLsTFVjMxmVv98h9m4U2BheNIgw="
2121
crossorigin="anonymous"
2222
></script>
2323
<script type="text/javascript">
@@ -27,14 +27,14 @@ The quickest way to use Undernet is to link the bundled js and minified css usin
2727

2828
## Minified & Compiled
2929

30-
Grab compiled assets if you need them statically.
30+
Use these assets if you need static instances of the CDN bundled files.
3131

3232
- CSS: [Download](https://github.com/geotrev/undernet/raw/master/dist/undernet.css.zip)
3333
- JS: [Download](https://github.com/geotrev/undernet/raw/master/dist/undernet.js.zip)
3434

3535
## Uncompiled & Unminified
3636

37-
Going this route allows for far more customization. These should also grant better debugging during development.
37+
Going this route allows for far more customization. Use this option if you intend to remove or customize your build by removing components and features you don't need.
3838

3939
- SCSS: [Download](https://github.com/geotrev/undernet/raw/master/dist/undernet.scss.zip)
4040
- JS: [Download](https://github.com/geotrev/undernet/raw/master/dist/undernet.modules.js.zip)

app/pages/Docs/__snapshots__/Docs.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ exports[`<Docs /> renders 1`] = `
217217
className="version-text has-no-padding has-gray800-text xsmall-12 columns"
218218
>
219219
Version
220-
4.4.1
220+
4.5.0
221221
</p>
222222
<div
223223
className="accordion-row xsmall-12 columns has-no-padding"

babel.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ let plugins = [
77

88
module.exports = api => {
99
const test = api.env("test")
10-
const dist = api.env("dist")
10+
const cjs = api.env("cjs")
11+
const esm = api.env("esm")
12+
const rollup = api.env("rollup")
1113

1214
if (test) {
1315
presets = ["@babel/preset-react", ["@babel/preset-env", { targets: { node: "current" } }]]
@@ -16,9 +18,12 @@ module.exports = api => {
1618
"dynamic-import-node",
1719
["babel-plugin-webpack-aliases", { config: "config/webpack.dev.js" }],
1820
]
19-
} else if (dist) {
21+
} else if (cjs || rollup) {
2022
presets = ["@babel/preset-env"]
2123
plugins = []
24+
} else if (esm) {
25+
presets = [["@babel/preset-env", { modules: false }]]
26+
plugins = []
2227
}
2328

2429
return { plugins, presets }

bin/create-hashes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Hashes = require("jshashes")
88

99
const distJsFilePath = path.resolve(__dirname, "../dist/undernet.bundle.min.js")
1010
const distCssFilePath = path.resolve(__dirname, "../dist/undernet.min.css")
11-
const downloadArticleFilePath = path.resolve(__dirname, "../site/docs/download.md")
11+
const downloadArticleFilePath = path.resolve(__dirname, "../app/docs/download.md")
1212
const readFormat = "utf-8"
1313

1414
// update hashes in docs/download.md
@@ -39,11 +39,11 @@ function getNewIntroductionArticle() {
3939
return downloadArticleFile.replace(currentJsHash, newJsHash).replace(currentCssHash, newCssHash)
4040
}
4141

42-
fs.writeFileSync("site/docs/download.md", getNewIntroductionArticle(), readFormat)
42+
fs.writeFileSync("app/docs/download.md", getNewIntroductionArticle(), readFormat)
4343
console.log(`
4444
#========================================#
4545
46-
-> New content hashes created! They're used in site/docs/download.md.
46+
-> New content hashes created! They're used in app/docs/download.md.
4747
- CSS: ${newCssHash}
4848
- JS: ${newJsHash}
4949
`)

bin/update-version.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const packageFilePath = path.resolve(__dirname, "../package.json")
99
const pkg = require(packageFilePath)
1010

1111
const undernetScssFilePath = path.resolve(__dirname, "../scss/undernet.scss")
12-
const downloadArticleFilePath = path.resolve(__dirname, "../site/docs/download.md")
12+
const downloadArticleFilePath = path.resolve(__dirname, "../app/docs/download.md")
1313
const readFormat = "utf-8"
1414

1515
const versionRegEx = /[0-9]\.[0-9]\.[0-9]/g
@@ -21,7 +21,7 @@ function setNewScssVersion() {
2121
return undernetScssFile.replace(versionRegEx, pkg.version)
2222
}
2323

24-
// get update for site/docs/download.md
24+
// get update for app/docs/download.md
2525

2626
function setNewDlArticleVersion() {
2727
const downloadArticleFile = fs.readFileSync(downloadArticleFilePath, readFormat)
@@ -34,4 +34,4 @@ fs.writeFileSync(undernetScssFilePath, setNewScssVersion(), readFormat)
3434
console.log(`-> scss/undernet.scss version updated to ${pkg.version}!`)
3535

3636
fs.writeFileSync(downloadArticleFilePath, setNewDlArticleVersion(), readFormat)
37-
console.log(`-> site/docs/download.md version updated to ${pkg.version}!`)
37+
console.log(`-> app/docs/download.md version updated to ${pkg.version}!`)

0 commit comments

Comments
 (0)