Skip to content

Commit

Permalink
feat(resume): Make resume publishable per #67.
Browse files Browse the repository at this point in the history
Big commit – need to actually compile and publish all of `jsonresume-theme-randytarampi`'s dependencies.
  • Loading branch information
randytarampi committed Sep 21, 2018
1 parent ecf1620 commit 7686d58
Show file tree
Hide file tree
Showing 371 changed files with 710 additions and 915 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist
build
docs
coverage
.nyc_output
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jspm_packages

# Compiled resources
dist
build
.webpack
package-lock.json

Expand Down
5 changes: 4 additions & 1 deletion .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"exclude": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/docs/**",
"**/coverage/**",
"**/letters/**",
"**/src/letters/**",
"**/src/resumes/**",
"**/src/resume-custom-content/**",
"**/.nyc_output/**",
"**/test/**",
"packages/*/*.js",
Expand Down
1 change: 0 additions & 1 deletion bin/postinstall-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ REPO_ROOT=${TRAVIS_BUILD_DIR:=$(pwd)}
cd "${REPO_ROOT}";

npx lerna link;
npx lerna run build
1 change: 0 additions & 1 deletion packages/css/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jspm_packages

# Compiled resources
dist
data/flickr

# Environment variables
.env
14 changes: 8 additions & 6 deletions packages/css/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ require("../../babel.register.js");

const gulp = require("gulp");

gulp.task("clean", () => {
const vinylPaths = require("vinyl-paths");
const del = require("del");

return gulp.src(["dist/", "build/", "coverage/", ".nyc_output/"], {allowEmpty: true})
.pipe(vinylPaths(del));
});

gulp.task("sassLint", () => {
const sassLint = require("gulp-sass-lint");

Expand All @@ -13,12 +21,6 @@ gulp.task("sassLint", () => {

gulp.task("lint", gulp.series(["sassLint"]));

gulp.task("clean", (callback) => {
const del = require("del");

del(["dist"], callback);
});

gulp.task("copy", () => {
return gulp
.src([
Expand Down
6 changes: 4 additions & 2 deletions packages/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"scripts": {
"pretest": "gulp -LLLL --color lint",
"build": "gulp -LLLL --color build"
"build": "gulp -LLLL --color build",
"prepare": "npm run build"
},
"description": "Some common styles",
"bugs": {
Expand Down Expand Up @@ -42,7 +43,8 @@
"gulp-sass": "^4.0.1",
"gulp-sass-lint": "^1.4.0",
"gulp-sourcemaps": "^2.6.4",
"materialize-css": "^1.0.0"
"materialize-css": "^1.0.0",
"vinyl-paths": "^2.1.0"
},
"engines": {
"node": ">=8"
Expand Down
3 changes: 1 addition & 2 deletions packages/js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ jspm_packages
.DS_Store

# Compiled resources
dist
data/flickr
build

# Environment variables
.env
1 change: 1 addition & 0 deletions packages/js/.nycrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"exclude": [
"node_modules/**",
"build/**",
"coverage/**",
".nyc_output/**",
"test/**",
Expand Down
15 changes: 12 additions & 3 deletions packages/js/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@ require("../../babel.register.js");

const gulp = require("gulp");

gulp.task("clean", () => {
const vinylPaths = require("vinyl-paths");
const del = require("del");

return gulp.src(["dist/", "build/", "coverage/", ".nyc_output/"], {allowEmpty: true})
.pipe(vinylPaths(del));
});

function isFixed(file) {
return file.eslint !== null && file.eslint.fixed;
return file.eslint && file.eslint.fixed;
}

gulp.task("eslint", () => {
const path = require("path");
const eslint = require("gulp-eslint");
const gulpIf = require("gulp-if");

return gulp.src(["**/*.js", "!./node_modules/**/*", "!./dist/**/*", "!./coverage/**/*"])
.pipe(eslint({fix: true}))
return gulp.src(["**/*.js"])
.pipe(eslint({fix: true, ignorePath: path.join(__dirname, "../../.eslintignore")}))
.pipe(eslint.format())
.pipe(gulpIf(isFixed, gulp.dest("./")))
.pipe(eslint.failAfterError());
Expand Down
13 changes: 13 additions & 0 deletions packages/js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var builtOrUnbuiltModule;

try {
builtOrUnbuiltModule = require("./src");
} catch (error) {
if (error.code === "MODULE_NOT_FOUND") {
builtOrUnbuiltModule = require("./build"); // eslint-disable-line import/no-unresolved
} else {
throw error;
}
}

module.exports = builtOrUnbuiltModule;
16 changes: 12 additions & 4 deletions packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"scripts": {
"pretest": "gulp -LLLL --color lint",
"test": "NODE_ENV=test gulp -LLLL --color test",
"build": "BABEL_ENV=client NODE_ENV=prd babel src --out-dir build --root-mode upward --copy-files",
"prepare": "npm run build",
"cover": "rm -rf coverage/ .nyc_output/; NODE_ENV=test nyc gulp -LLLL --color test"
},
"description": "Some common JS entities",
Expand Down Expand Up @@ -44,21 +46,27 @@
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-minify-replace": "^0.4.3",
"chai": "^4.1.2",
"del": "^3.0.0",
"eslint-plugin-import": "^2.13.0",
"gulp": "^4.0.0",
"gulp-eslint": "^5.0.0",
"gulp-if": "^2.0.2",
"gulp-mocha": "^6.0.0",
"mocha": "^5.2.0",
"nyc": "^13.0.1"
"nyc": "^13.0.1",
"vinyl-paths": "^2.1.0"
},
"engines": {
"node": ">=8"
},
"module": "esm.js",
"main": "esm.js",
"module": "./index.js",
"main": "./index.js",
"directories": {
"lib": "./lib",
"test": "./test"
}
},
"files": [
"build",
"index.js"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/js/test/01_setup.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import "..";
import "../src";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect} from "chai";
import Emoji, {Character, defaultComponents} from "../../lib/emoji";
import Emoji, {Character, defaultComponents} from "../../../../src/lib/emoji";

describe("Emoji", () => {
describe(".fromJS", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {expect} from "chai";
import {formatNumber} from "libphonenumber-js";
import Organization from "../../lib/organization";
import PostalAddress from "../../lib/postalAddress";
import Organization from "../../../../src/lib/organization";
import PostalAddress from "../../../../src/lib/postalAddress";

describe("Organization", function () {
let stubOrganizationJson;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {expect} from "chai";
import {formatNumber} from "libphonenumber-js";
import Person from "../../lib/person";
import PostalAddress from "../../lib/postalAddress";
import Person from "../../../../src/lib/person";
import PostalAddress from "../../../../src/lib/postalAddress";

describe("Person", function () {
let stubPersonJson;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {expect} from "chai";
import {List} from "immutable";
import {DateTime} from "luxon";
import Photo from "../../lib/photo";
import SizedPhoto from "../../lib/sizedPhoto";
import Photo from "../../../../src/lib/photo";
import SizedPhoto from "../../../../src/lib/sizedPhoto";

describe("Photo", () => {
describe("constructor", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {expect} from "chai";
import {formatNumber} from "libphonenumber-js";
import Place from "../../lib/place";
import PostalAddress from "../../lib/postalAddress";
import Place from "../../../../src/lib/place";
import PostalAddress from "../../../../src/lib/postalAddress";

describe("Place", function () {
let stubPlaceJson;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {expect} from "chai";
import {DateTime} from "luxon";
import Post from "../../lib/post";
import Profile from "../../lib/profile";
import {compositeKeySeparator} from "../../lib/util";
import Post from "../../../../src/lib/post";
import Profile from "../../../../src/lib/profile";
import {compositeKeySeparator} from "../../../../src/lib/util";

describe("Post", () => {
describe("constructor", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect} from "chai";
import PostalAddress from "../../lib/postalAddress";
import PostalAddress from "../../../../src/lib/postalAddress";

describe("PostalAddress", function () {
describe("constructor", function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect} from "chai";
import Profile from "../../lib/profile";
import Profile from "../../../../src/lib/profile";

describe("Profile", function () {
describe("constructor", function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect} from "chai";
import SizedPhoto from "../../lib/sizedPhoto";
import SizedPhoto from "../../../../src/lib/sizedPhoto";

describe("SizedPhoto", () => {
describe(".fromJS", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {expect} from "chai";
import {Character} from "../../lib/emoji";
import Photo from "../../lib/photo";
import Post from "../../lib/post";
import * as util from "../../lib/util";
import {Character} from "../../../../src/lib/emoji";
import Photo from "../../../../src/lib/photo";
import Post from "../../../../src/lib/post";
import * as util from "../../../../src/lib/util";

describe("util", function () {
describe(".sortPhotosByWidth", function () {
Expand All @@ -23,7 +23,7 @@ describe("util", function () {
expect(sortedPhotos.map(sortedPhoto => sortedPhoto.id)).to.eql([
stubPhotos[0].id,
stubPhotos[2].id,
stubPhotos[1].id,
stubPhotos[1].id
]);
});
});
Expand All @@ -46,7 +46,7 @@ describe("util", function () {
expect(sortedPhotos.map(sortedPhoto => sortedPhoto.id)).to.eql([
stubPhotos[1].id,
stubPhotos[0].id,
stubPhotos[2].id,
stubPhotos[2].id
]);
});
});
Expand All @@ -69,7 +69,7 @@ describe("util", function () {
expect(sortedCharacters.map(sortedCharacter => sortedCharacter.id)).to.eql([
stubCharacters[1].id,
stubCharacters[0].id,
stubCharacters[2].id,
stubCharacters[2].id
]);
});
});
Expand Down
1 change: 1 addition & 0 deletions packages/jsx/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jspm_packages

# Compiled resources
dist
build
data/flickr

# Environment variables
Expand Down
1 change: 1 addition & 0 deletions packages/jsx/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"exclude": [
"node_modules/**",
"dist/**",
"build/**",
"coverage/**",
".nyc_output/**",
"test/**",
Expand Down
7 changes: 4 additions & 3 deletions packages/jsx/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ require("../../babel.register.js");
const gulp = require("gulp");

function isFixed(file) {
return file.eslint !== null && file.eslint.fixed;
return file.eslint && file.eslint.fixed;
}

gulp.task("eslint", () => {
const path = require("path");
const eslint = require("gulp-eslint");
const gulpIf = require("gulp-if");

return gulp.src(["**/*.js", "!./venv/**/*", "!./node_modules/**/*", "!./dist/**/*", "!./coverage/**/*"])
.pipe(eslint({fix: true}))
return gulp.src(["**/*.js"])
.pipe(eslint({fix: true, ignorePath: path.join(__dirname, "../../.eslintignore")}))
.pipe(eslint.format())
.pipe(gulpIf(isFixed, gulp.dest("./")))
.pipe(eslint.failAfterError());
Expand Down
13 changes: 13 additions & 0 deletions packages/jsx/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var builtOrUnbuiltModule;

try {
builtOrUnbuiltModule = require("./src");
} catch (error) {
if (error.code === "MODULE_NOT_FOUND") {
builtOrUnbuiltModule = require("./build"); // eslint-disable-line import/no-unresolved
} else {
throw error;
}
}

module.exports = builtOrUnbuiltModule;
15 changes: 11 additions & 4 deletions packages/jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"scripts": {
"pretest": "gulp -LLLL --color lint",
"test": "NODE_ENV=test gulp -LLLL --color test",
"build": "gulp -LLLL --color build",
"build": "npm run build:gulp && npm run build:babel",
"build:gulp": "gulp -LLLL --color build",
"build:babel": "BABEL_ENV=client NODE_ENV=prd babel src --out-dir build --root-mode upward --copy-files",
"prepare": "npm run build",
"start": "npm run dev",
"dev": "npm run dev:client",
"dev:client": "rm -rf dist/*.js dist/*.css && webpack-serve ./webpack.client.config.js --hotClient",
Expand Down Expand Up @@ -122,10 +125,14 @@
"engines": {
"node": ">=8"
},
"module": "esm.js",
"main": "esm.js",
"module": "./index.js",
"main": "./index.js",
"directories": {
"lib": "./lib",
"test": "./test"
}
},
"files": [
"build",
"index.js"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7686d58

Please sign in to comment.