How to use webpack resolve-alias to solve relative paths.
npm install
mkdir -p src/components/Header
mv index.jsx src/components/Header
mkdir -p src/utils
mv myUtils.js src/utils
npm run build
#!/usr/bin/env python | |
import sys | |
from subprocess import check_output, call | |
if len(sys.argv) > 2: | |
sys.exit('Usage: {0} svn-folder'.format(sys.argv[0])) | |
svn_folder = sys.argv[1] if len(sys.argv) == 2 else '.' | |
output = check_output(['svn', 'status', svn_folder]) |
import scrapy | |
from scrapy.contrib.spiders import CrawlSpider, Rule | |
from scrapy.contrib.linkextractors import LinkExtractor | |
class HackerNewsItem(scrapy.Item): | |
title = scrapy.Field() | |
comment = scrapy.Field() | |
class HackerNewsSpider(CrawlSpider): |
<html> | |
<head> | |
</head> | |
<body> | |
<script src="lib/yourlib.js"></script> | |
<script> | |
window.onload = function () { | |
EntryPoint.run(); | |
}; | |
</script> |
How to use webpack resolve-alias to solve relative paths.
npm install
mkdir -p src/components/Header
mv index.jsx src/components/Header
mkdir -p src/utils
mv myUtils.js src/utils
npm run build
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |