Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiaragrouwstra/front
https://github.com/kiaragrouwstra/front
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kiaragrouwstra/front
- Owner: KiaraGrouwstra
- Created: 2015-11-05T23:19:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-30T05:40:31.000Z (over 8 years ago)
- Last Synced: 2024-10-31T15:52:49.378Z (3 months ago)
- Language: TypeScript
- Size: 1010 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[update node](https://nodejs.org/dist/latest/)
```
// update npm:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install --global --production npm-windows-upgrade
npm-windows-upgrade
// install global packages
npm i -g gulp cnpm typings
// install packages
npm i
npm i --save
npm update
// install type definitions
typings install npm:@angular --save
// ^ ?
typings update
```// `tsconfig.json` after upgrading to TypeScript 2.0:
// "rootDirs": ["./app", "./codegen"],// patch `./node_modules/angular2/typings/node/node.d.ts`: types of global/module/require -> `: any` to prevent clash with `./typings/webpack.d.ts`.
- patch `babel-plugin-transform-runtime/lib/definitions.js`: comment `defineProperty: "object/define-property"`
- patch materialize js: https://github.com/Dogfalo/materialize/issues/1537
- patch karma-jasmine: make lib/adapter.js using /src/ version wrapped in wrapper: https://github.com/karma-runner/karma-jasmine/blob/master/tasks/build.js
//- patch [toHaveText](https://github.com/angular/angular/blob/master/modules/%40angular/core/testing/matchers.ts#L159-L169):
// - `var show = function(str) { return JSON.stringify(str.split('').map(x => x.charCodeAt(0))); }`
// - `get message() { return 'Expected ' + actualText + ' ' + show(actualText) + ' to be equal to ' + expectedText + ' ' + show(expectedText); }`
- copy over materialize.css as .less, cuz Less never realized you might wanna import css from a Sass project.
- build dependencies:
* core-decorators: `npm build````
# ./node_modules/karma/bin/karma start
# npm install -g karma-cli
webpack --entry karma-test-shim.js --output-filename foo.js --verbose
node dist/foo.js
karma start
# karma start --help
# karma start my.conf.js --log-level debug --single-run
# karma run -- --grep=
# file:///C:/Users/T/Desktop/ng2/app/unit-tests.html
# C:\Users\T\Desktop\ng2
# live-server --port=8070
# http://127.0.0.1:8070/app/unit-tests.html
http://127.0.0.1:8090/tests.html# Build angular2
gulp build.js.cjs
# Build the compiler
./node_modules/.bin/tsc -p tools/compiler_cli/src
# Run it on the test project
node ./node_modules/@angular/compiler/dist/js/cjs/compiler_cli -p ./tsconfig.json
`import {} from './foo.ngfactory'`# gulp index && webpack --watch
# gulp index
npm run-script index
webpack --watch# cd dist
# live-server --port=8090
node server.js
# node-ts server.ts
# apache: https://gist.github.com/leocaseiro/4305e06948aa97e77c93
```file:///C:/Users/T/Desktop/ng2/coverage/