Skip to content

Commit

Permalink
Merge 6f3ab4d into e038db7
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremythuff committed Sep 2, 2021
2 parents e038db7 + 6f3ab4d commit 90303bf
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/bazel-out

# dependencies
/node_modules
node_modules

# profiling files
chrome-profiler-events*.json
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"build:docs-setup": "node scripts/build-tl-components-docs.js",
"build:docs-usage": "wvr-ud",
"build:docker": "node scripts/build-docker.js",
"build:link": "npm run build && node scripts/link-self",
"build:link-wvr": "node scripts/link-wvr.js",
"build:static": "npm run build:static-docs && npm run build:static-reports",
"build:static-setup": "node scripts/build-tl-components-static.js",
"build:static-docs": "npm run test:audit && npm run build:static-setup && npm run build:docs-setup && npm run build:docs-development && npm run build:docs-usage",
Expand All @@ -34,7 +36,6 @@
"publish:docker": "node scripts/docker-push.js",
"publish:npm": "npm run build && node scripts/build-publish.js $1",
"publish:npm-next": "npm run publish:npm next",
"link": "npm link @wvr/elements",
"lint": "ng lint",
"ng": "ng",
"start": "node ./scripts/build-tl-components-configuration.js defaults-dev-overrides.env && ng serve --port 3000",
Expand Down Expand Up @@ -68,7 +69,7 @@
"@ngrx/store-devtools": "^12.0.0",
"@tinymce/tinymce-angular": "^4.2.3",
"@ungap/custom-elements": "^1.0.0",
"@wvr/elements": "^1.12.0-rc.4",
"@wvr/elements": "next",
"bootstrap": "^4.6.0",
"css-element-queries": "^1.2.3",
"handlebars": "^4.7.7",
Expand Down
2 changes: 1 addition & 1 deletion projects/tl-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@angular/common": "^11.2.11",
"@angular/core": "^11.2.11",
"@tinymce/tinymce-angular": "^4.2.1",
"@wvr/elements": "^1.12.0-rc.3",
"@wvr/elements": "next",
"ng-inline-svg": "^12.1.0"
}
}
3 changes: 2 additions & 1 deletion projects/tl-elements/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"emitDecoratorMetadata": false
},
"angularCompilerOptions": {
"enableIvy": false
"enableIvy": false,
"preserveSymlinks": true
},
"exclude": [
"src/test.ts",
Expand Down
18 changes: 18 additions & 0 deletions scripts/link-self.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env node

const fs = require('fs-extra');
const shell = require('shelljs')
const angularCli = require('@angular/cli');
const elementsPath = 'dist/tl-elements';

angularCli.default({
cliArgs: ['b', '--project=tl-elements'],
inputStream: process.stdin,
outputStream: process.stdout
}).then(c => {
fs.copySync('projects/tl-elements/src/lib/shared/styles', `${elementsPath}/styles`);
fs.copySync('scripts', `${elementsPath}/scripts`);
fs.copySync('.wvr-ud', `${elementsPath}/.wvr-ud`);
shell.exec(`npm link ./${elementsPath}`);
shell.exit();
});
16 changes: 16 additions & 0 deletions scripts/link-wvr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env node

const fs = require('fs-extra');
const shell = require('shelljs')
const angularCli = require('@angular/cli');
const elementsPath = 'dist/tl-elements';

shell.exec('npm link @wvr/elements');

angularCli.default({
cliArgs: ['b'],
inputStream: process.stdin,
outputStream: process.stdout
}).then(c => {
shell.exit();
});
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
}
},
"angularCompilerOptions": {
"ivyCompiler": true
"ivyCompiler": true,
"preserveSymlinks": true
}
}

0 comments on commit 90303bf

Please sign in to comment.